aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-03-19 12:24:40 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-03-19 12:24:40 +0100
commitea4be0db89b5e95b50211e023e94aa008aadae46 (patch)
tree2d0654cae606cb3e543463e5569c2b2e689e45d6 /mod/photos.php
parentc30342e2f7bde6fda899193f97ce3051cd8b2fdd (diff)
parent2349852b4abd1638624b541f173f51d1fb1ea011 (diff)
downloadvolse-hubzilla-ea4be0db89b5e95b50211e023e94aa008aadae46.tar.gz
volse-hubzilla-ea4be0db89b5e95b50211e023e94aa008aadae46.tar.bz2
volse-hubzilla-ea4be0db89b5e95b50211e023e94aa008aadae46.zip
Merge remote-tracking branch 'friendica/master'
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>') ;