From 363bc4eb8642d464cc0c099f7ab72a425b56b463 Mon Sep 17 00:00:00 2001
From: banux <banux@helheim.net>
Date: Sun, 27 Oct 2013 07:37:05 +0100
Subject: 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.

---
 themes/default/js/autoClose.js | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 themes/default/js/autoClose.js

(limited to 'themes/default/js')

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 @@
+$(document).ready(function() {
+	current_url = window.location.href
+	if (current_url.match("&autoclose=true")) {
+		window.close();
+	}
+});
\ No newline at end of file
-- 
cgit v1.2.3


From f616ab60efc502b919b9b72f81aee2975b2e8465 Mon Sep 17 00:00:00 2001
From: banux <banux@helheim.net>
Date: Sun, 27 Oct 2013 07:47:14 +0100
Subject: use 2 seprate variable for autoclosing windows to avoid to quick
 closing when sharing, the popup can be close before the link is save

---
 themes/default/js/autoClose.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'themes/default/js')

diff --git a/themes/default/js/autoClose.js b/themes/default/js/autoClose.js
index 3035d423..e9145b7e 100644
--- a/themes/default/js/autoClose.js
+++ b/themes/default/js/autoClose.js
@@ -1,6 +1,6 @@
 $(document).ready(function() {
 	current_url = window.location.href
-	if (current_url.match("&autoclose=true")) {
+	if (current_url.match("&closewin=true")) {
 		window.close();
 	}
-});
\ No newline at end of file
+});
-- 
cgit v1.2.3