diff options
Diffstat (limited to 'app/Resources/static/themes/baggy/js/autoClose.js')
-rw-r--r-- | app/Resources/static/themes/baggy/js/autoClose.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/Resources/static/themes/baggy/js/autoClose.js b/app/Resources/static/themes/baggy/js/autoClose.js index e9145b7e..b0dafab2 100644 --- a/app/Resources/static/themes/baggy/js/autoClose.js +++ b/app/Resources/static/themes/baggy/js/autoClose.js | |||
@@ -1,6 +1,8 @@ | |||
1 | $(document).ready(function() { | 1 | var $ = global.jquery = require('jquery'); |
2 | current_url = window.location.href | 2 | |
3 | if (current_url.match("&closewin=true")) { | 3 | $(document).ready(function () { |
4 | window.close(); | 4 | var currentUrl = window.location.href; |
5 | } | 5 | if (currentUrl.match('&closewin=true')) { |
6 | window.close(); | ||
7 | } | ||
6 | }); | 8 | }); |