Mercurial > hg > mgallery
changeset 43:fc8e6a056016
Indentation fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 May 2016 23:32:21 +0300 |
parents | 002c19b4618b |
children | bc9da3b71888 |
files | mgallery.php |
diffstat | 1 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/mgallery.php Wed May 04 12:57:59 2016 +0300 +++ b/mgallery.php Thu May 12 23:32:21 2016 +0300 @@ -419,29 +419,29 @@ ?> function mgalNavigateTo(url) { - if (url != "") - window.location = url; + if (url != "") + window.location = url; } function mgalProcessKeyPress(ev) { - ev = ev || window.event; - var key = ev.keyCode ? ev.keyCode : ev.which; - switch (key) - { - case 37: - case 65: - // left - mgalNavigateTo(mgalPrevURL); - break; + ev = ev || window.event; + var key = ev.keyCode ? ev.keyCode : ev.which; + switch (key) + { + case 37: + case 65: + // left + mgalNavigateTo(mgalPrevURL); + break; - case 39: - case 68: - // right - mgalNavigateTo(mgalNextURL); - break; - } + case 39: + case 68: + // right + mgalNavigateTo(mgalNextURL); + break; + } } document.onkeypress = mgalProcessKeyPress;