diff options
Diffstat (limited to 'app/Resources/static/themes/baggy/js/autoClose.js')
-rw-r--r-- | app/Resources/static/themes/baggy/js/autoClose.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Resources/static/themes/baggy/js/autoClose.js b/app/Resources/static/themes/baggy/js/autoClose.js new file mode 100644 index 00000000..b0dafab2 --- /dev/null +++ b/app/Resources/static/themes/baggy/js/autoClose.js | |||
@@ -0,0 +1,8 @@ | |||
1 | var $ = global.jquery = require('jquery'); | ||
2 | |||
3 | $(document).ready(function () { | ||
4 | var currentUrl = window.location.href; | ||
5 | if (currentUrl.match('&closewin=true')) { | ||
6 | window.close(); | ||
7 | } | ||
8 | }); | ||