aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-22 06:27:13 +0100
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2012-03-22 06:27:13 +0100
commit5189a56ef832e1c5c6976f87d77d218bf4a6c221 (patch)
tree4c1aa63a36eeaadab00c61eb05f3f9f5ae0da095 /mod/photos.php
parent751e4181e5e875b9f9850700a3687774e4c53ab3 (diff)
parentd81256d7b051d9a76b087feeb64ac79fb4aeff4d (diff)
downloadvolse-hubzilla-5189a56ef832e1c5c6976f87d77d218bf4a6c221.tar.gz
volse-hubzilla-5189a56ef832e1c5c6976f87d77d218bf4a6c221.tar.bz2
volse-hubzilla-5189a56ef832e1c5c6976f87d77d218bf4a6c221.zip
Merge branch 'master' of https://github.com/friendica/friendica
Diffstat (limited to 'mod/photos.php')
-rwxr-xr-xmod/photos.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index e40ae0d74..b294f0a66 100755
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1081,6 +1081,17 @@ function photos_content(&$a) {
}
+ if(! $cmd !== 'edit') {
+ $a->page['htmlhead'] .= '<script>
+ $(document).keydown(function(event) {' . "\n";
+
+ if($prevlink)
+ $a->page['htmlhead'] .= 'if(event.ctrlKey && event.keyCode == 37) { event.preventDefault(); window.location.href = \'' . $prevlink . '\'; }' . "\n";
+ if($nextlink)
+ $a->page['htmlhead'] .= 'if(event.ctrlKey && event.keyCode == 39) { event.preventDefault(); window.location.href = \'' . $nextlink . '\'; }' . "\n";
+ $a->page['htmlhead'] .= '});</script>';
+ }
+
if($prevlink)
$prevlink = array($prevlink, '<div class="icon prev"></div>') ;