diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-11-24 13:23:53 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-11-24 13:23:53 +0100 |
commit | 485d57972ee3c3219652454ff6d7d82a3602bd34 (patch) | |
tree | 9f765654886b8fba8c1d8159fff6adc2b4b5aefc /themes/_global/js/autoClose.js | |
parent | 7b8bb75228fff2a629388313a3d12cd63c846ad6 (diff) | |
parent | 6062f74c6b9344473c36b9b290aa9dece0464854 (diff) | |
download | wallabag-485d57972ee3c3219652454ff6d7d82a3602bd34.tar.gz wallabag-485d57972ee3c3219652454ff6d7d82a3602bd34.tar.zst wallabag-485d57972ee3c3219652454ff6d7d82a3602bd34.zip |
Merge pull request #939 from jsit/globaljs
_global-izing some more js & css
Diffstat (limited to 'themes/_global/js/autoClose.js')
-rw-r--r-- | themes/_global/js/autoClose.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/_global/js/autoClose.js b/themes/_global/js/autoClose.js new file mode 100644 index 00000000..e9145b7e --- /dev/null +++ b/themes/_global/js/autoClose.js | |||
@@ -0,0 +1,6 @@ | |||
1 | $(document).ready(function() { | ||
2 | current_url = window.location.href | ||
3 | if (current_url.match("&closewin=true")) { | ||
4 | window.close(); | ||
5 | } | ||
6 | }); | ||