diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-06-09 19:02:38 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-06-09 19:02:38 +0200 |
commit | 0743287f955fd19fd1a04c91f3b40a4ac2236423 (patch) | |
tree | 42d9f4efef7c8099416e24ce751de78524b9a58a /app/Resources/static/themes/baggy/js/autoClose.js | |
parent | 5ecdfcd041767c9e3244a92bb0a6cc3c3f80fea3 (diff) | |
download | wallabag-0743287f955fd19fd1a04c91f3b40a4ac2236423.tar.gz wallabag-0743287f955fd19fd1a04c91f3b40a4ac2236423.tar.zst wallabag-0743287f955fd19fd1a04c91f3b40a4ac2236423.zip |
clean & lint stuff
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 | }); |