diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-02-18 19:17:31 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-02-18 19:17:31 +0100 |
commit | 4b1fa4c2febc7abbc6da3d65e4e760949a55843c (patch) | |
tree | a93ec906dbb03ec70e9cdc5dc876392c6d758e97 /themes/_global/js/autoClose.js | |
parent | 364953ede585b75fb29dc94b1c5f853053eaed0b (diff) | |
parent | df89c6f71adebfdb754ec3eb2fd775d8efbdb280 (diff) | |
download | wallabag-1.9.tar.gz wallabag-1.9.tar.zst wallabag-1.9.zip |
Merge pull request #1081 from wallabag/dev1.9
Version 1.9.0
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 | }); | ||