]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - themes/default/js/autoClose.js
Add a autoclose parameters. When we use sharing method in plugins like the tiny tiny...
[github/wallabag/wallabag.git] / themes / default / js / autoClose.js
diff --git a/themes/default/js/autoClose.js b/themes/default/js/autoClose.js
new file mode 100644 (file)
index 0000000..3035d42
--- /dev/null
@@ -0,0 +1,6 @@
+$(document).ready(function() {
+       current_url = window.location.href
+       if (current_url.match("&autoclose=true")) {
+               window.close();
+       }
+});
\ No newline at end of file