]> git.mxchange.org Git - friendica.git/blob - view/smarty3/photo_edit_head.tpl
50e680295718000448caef7dfed9b4840a1c1082
[friendica.git] / view / smarty3 / photo_edit_head.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6
7 <script>
8
9         $(document).keydown(function(event) {
10
11                 if("{{$prevlink}}" != '') { if(event.ctrlKey && event.keyCode == 37) { event.preventDefault(); window.location.href = "{{$prevlink}}"; }}
12                 if("{{$nextlink}}" != '') { if(event.ctrlKey && event.keyCode == 39) { event.preventDefault(); window.location.href = "{{$nextlink}}"; }}
13
14         });
15
16 </script>