]> git.sesse.net Git - pr0n/commitdiff
Only use space for select if sel=1.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 23:41:13 +0000 (01:41 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 23:41:13 +0000 (01:41 +0200)
files/pr0n-fullscreen.js
perl/Sesse/pr0n/Index.pm
templates/default/fullscreen-footer

index 1e2e8f0eec1615d8e6fe22716fd86c95bb82ee74..a3573c793f66dad1d3cffba691c26f427bd2b9e0 100644 (file)
@@ -234,7 +234,7 @@ function key_up(which) {
        } else if (which == 27) {   // escape
                set_opacity("close", 0.7);
                do_close();
-       } else if (which == 32) {   // space
+       } else if (which == 32 && global_select) {   // space
                select_image(global_image_list[global_image_num]);
        }
 }
index cbdb93c4172f80b0341c9afeee5ce64eaa74b215..b21a39a9adc69dede8a514ca9dd156d5560fd9ca 100644 (file)
@@ -123,7 +123,8 @@ sub handler {
                        vhost => $r->get_server_name,
                        event => $event,
                        start => $settings{'start'} - 1,
-                       returnurl => $returnurl
+                       returnurl => $returnurl,
+                       sel => $settings{'sel'},
                });
        } else {
                Sesse::pr0n::Common::header($r, "$name [$event]");
index 872440fcf81f3a7ea0b1318011306a4b4bfdb87c..2947cfa97d0a29bebabbdc6ef33664d9fcc7694a 100644 (file)
@@ -3,6 +3,7 @@ var global_vhost = "%VHOST%";
 var global_evt = "%EVENT%";
 var global_return_url = "%RETURNURL%";
 var global_image_num = %START%;
+var global_select = %SEL%;
 //-->
     </script>
     <script type="text/JavaScript" src="/pr0n-fullscreen.js"></script>