aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/_global/js/autoClose.js
diff options
context:
space:
mode:
authorJay Sitter <jsitter@gmail.com>2014-11-18 10:01:37 -0500
committerJay Sitter <jsitter@gmail.com>2014-11-18 10:01:37 -0500
commiteb365a01fb9b0fa29f88f4cdd0e09b8d4ec76dfd (patch)
tree53d959e5f96dd8e3dc8ef87e07d121f4dea0e1f8 /themes/_global/js/autoClose.js
parentdb3bffa284012aec4f96c851c413e435080fed02 (diff)
downloadwallabag-eb365a01fb9b0fa29f88f4cdd0e09b8d4ec76dfd.tar.gz
wallabag-eb365a01fb9b0fa29f88f4cdd0e09b8d4ec76dfd.tar.zst
wallabag-eb365a01fb9b0fa29f88f4cdd0e09b8d4ec76dfd.zip
_global-izing some more js & css
Diffstat (limited to 'themes/_global/js/autoClose.js')
-rw-r--r--themes/_global/js/autoClose.js6
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});