aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/js/autoClose.js
diff options
context:
space:
mode:
authorbanux <banux@helheim.net>2013-10-27 07:37:05 +0100
committerbanux <banux@helheim.net>2013-10-27 07:37:05 +0100
commit363bc4eb8642d464cc0c099f7ab72a425b56b463 (patch)
treea749a4b5da749826752aaeb2ab8ee1c6c683427d /themes/default/js/autoClose.js
parent2b191d8c37bd774bd3eecbf42a5ac9d948ee61a9 (diff)
downloadwallabag-363bc4eb8642d464cc0c099f7ab72a425b56b463.tar.gz
wallabag-363bc4eb8642d464cc0c099f7ab72a425b56b463.tar.zst
wallabag-363bc4eb8642d464cc0c099f7ab72a425b56b463.zip
Add a autoclose parameters. When we use sharing method in plugins like the tiny tiny rss one or the firefox plugins we can passe the autoclose=true parameters that close the popup.
Diffstat (limited to 'themes/default/js/autoClose.js')
-rw-r--r--themes/default/js/autoClose.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/themes/default/js/autoClose.js b/themes/default/js/autoClose.js
new file mode 100644
index 00000000..3035d423
--- /dev/null
+++ b/themes/default/js/autoClose.js
@@ -0,0 +1,6 @@
1$(document).ready(function() {
2 current_url = window.location.href
3 if (current_url.match("&autoclose=true")) {
4 window.close();
5 }
6}); \ No newline at end of file