From f616ab60efc502b919b9b72f81aee2975b2e8465 Mon Sep 17 00:00:00 2001 From: banux Date: Sun, 27 Oct 2013 07:47:14 +0100 Subject: [PATCH] use 2 seprate variable for autoclosing windows to avoid to quick closing when sharing, the popup can be close before the link is save --- inc/poche/Poche.class.php | 2 +- themes/default/js/autoClose.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 5d80726..3ecaf08 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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; diff --git a/themes/default/js/autoClose.js b/themes/default/js/autoClose.js index 3035d42..e9145b7 100644 --- a/themes/default/js/autoClose.js +++ b/themes/default/js/autoClose.js @@ -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 +});