]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
use 2 seprate variable for autoclosing windows to avoid to quick closing when sharing... 291/head
authorbanux <banux@helheim.net>
Sun, 27 Oct 2013 06:47:14 +0000 (07:47 +0100)
committerbanux <banux@helheim.net>
Sun, 27 Oct 2013 06:47:14 +0000 (07:47 +0100)
inc/poche/Poche.class.php
themes/default/js/autoClose.js

index 5d807268e3a48f36b386537dca8fc0640d1531b3..3ecaf084a7347c737e78e8e1fd3bf87615b8377d 100644 (file)
@@ -361,7 +361,7 @@ class Poche
                     if ($autoclose == TRUE) {
                       Tools::redirect('?view=home');
                     } else {
-                      Tools::redirect('?view=home&autoclose=true');
+                      Tools::redirect('?view=home&closewin=true');
                     }
                 }
                 break;
index 3035d423fc82a69f7ecafd4c3e41fbc1f9032efc..e9145b7e2e091b5443fc39b1d9a336a5180b8fdb 100644 (file)
@@ -1,6 +1,6 @@
 $(document).ready(function() {
        current_url = window.location.href
-       if (current_url.match("&autoclose=true")) {
+       if (current_url.match("&closewin=true")) {
                window.close();
        }
-});
\ No newline at end of file
+});