1
0
Fork 0
friendica_2020-09-1_sharedH.../view/smarty3/photo_edit_head.tpl
2012-12-22 12:57:29 -07:00

12 lines
348 B
Smarty

<script>
$(document).keydown(function(event) {
if("{{$prevlink}}" != '') { if(event.ctrlKey && event.keyCode == 37) { event.preventDefault(); window.location.href = "{{$prevlink}}"; }}
if("{{$nextlink}}" != '') { if(event.ctrlKey && event.keyCode == 39) { event.preventDefault(); window.location.href = "{{$nextlink}}"; }}
});
</script>