From 79e051a1f216704752e05f5174633abf20dde582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 20 Jan 2015 14:11:26 +0100 Subject: restructure folders --- themes/_global/public/js/autoClose.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 themes/_global/public/js/autoClose.js (limited to 'themes/_global/public/js/autoClose.js') diff --git a/themes/_global/public/js/autoClose.js b/themes/_global/public/js/autoClose.js new file mode 100644 index 00000000..e9145b7e --- /dev/null +++ b/themes/_global/public/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