aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/picture_nav_buttons.tpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--themes/default/template/picture_nav_buttons.tpl19
1 files changed, 9 insertions, 10 deletions
diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl
index 03000676b..1a0e2c315 100644
--- a/themes/default/template/picture_nav_buttons.tpl
+++ b/themes/default/template/picture_nav_buttons.tpl
@@ -84,7 +84,7 @@
{/if}
</div>
-<script type="text/javascript">// <![CDATA[ {literal}
+{footer_script}{literal}
document.onkeydown = function(e)
{
e=e||window.event;
@@ -97,29 +97,28 @@ document.onkeydown = function(e)
switch(keyCode) {
{/literal}
{if isset($next)}
- case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG|@escape:jasvascript}"; break;
+ case 63235: case 39: if (e.ctrlKey || docElem.scrollLeft==docElem.scrollWidth-docElem.clientWidth)url="{$next.U_IMG}"; break;
{/if}
{if isset($previous)}
- case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG|@escape:jasvascript}"; break;
+ case 63234: case 37: if (e.ctrlKey || docElem.scrollLeft==0)url="{$previous.U_IMG}"; break;
{/if}
{if isset($first)}
- /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG|@escape:jasvascript}"; break;
+ /*Home*/case 36: if (e.ctrlKey)url="{$first.U_IMG}"; break;
{/if}
{if isset($last)}
- /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG|@escape:jasvascript}"; break;
+ /*End*/case 35: if (e.ctrlKey)url="{$last.U_IMG}"; break;
{/if}
{if isset($U_UP) and !isset($slideshow)}
- /*Up*/case 38: if (e.ctrlKey)url="{$U_UP|@escape:jasvascript}"; break;
+ /*Up*/case 38: if (e.ctrlKey)url="{$U_UP}"; break;
{/if}
-
{if isset($slideshow.U_START_PLAY)}
- /*Pause*/case 32: url="{$slideshow.U_START_PLAY|@escape:jasvascript}"; break;
+ /*Pause*/case 32: url="{$slideshow.U_START_PLAY}"; break;
{/if}
{if isset($slideshow.U_STOP_PLAY)}
- /*Play*/case 32: url="{$slideshow.U_STOP_PLAY|@escape:jasvascript}"; break;
+ /*Play*/case 32: url="{$slideshow.U_STOP_PLAY}"; break;
{/if}
}
if (url) {ldelim}window.location=url.replace("&amp;","&"); return false;}
return true;
}
-// ]]></script>
+{/footer_script}