aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorThomas <rat@rlyeh-military-affairs>2012-03-19 21:53:13 +0000
committerThomas <rat@rlyeh-military-affairs>2012-03-19 21:53:13 +0000
commit4f927392f8d3791e55d9bf695a967a28d6dbceb0 (patch)
treedb91bcfa5db7f11bae45f1bc2b622ca540be3eb9 /mod/photos.php
parenteb84a22da749264fa79829d27471002d9f1e287f (diff)
parent139a86dbd395f4601b29b9af97ac8ea190cce9f9 (diff)
downloadvolse-hubzilla-4f927392f8d3791e55d9bf695a967a28d6dbceb0.tar.gz
volse-hubzilla-4f927392f8d3791e55d9bf695a967a28d6dbceb0.tar.bz2
volse-hubzilla-4f927392f8d3791e55d9bf695a967a28d6dbceb0.zip
Merge remote-tracking branch 'main/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>') ;