From eb365a01fb9b0fa29f88f4cdd0e09b8d4ec76dfd Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Tue, 18 Nov 2014 10:01:37 -0500 Subject: _global-izing some more js & css --- themes/_global/js/autoClose.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 themes/_global/js/autoClose.js (limited to 'themes/_global/js/autoClose.js') 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 @@ +$(document).ready(function() { + current_url = window.location.href + if (current_url.match("&closewin=true")) { + window.close(); + } +}); -- cgit v1.2.3