diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/_head.twig | 1 | ||||
-rw-r--r-- | themes/default/js/autoClose.js | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/_head.twig b/themes/default/_head.twig index d0cbd320..577cc693 100644 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig | |||
@@ -8,3 +8,4 @@ | |||
8 | <link rel="stylesheet" href="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/css/messages.css" media="all"> | 8 | <link rel="stylesheet" href="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/css/messages.css" media="all"> |
9 | <link rel="stylesheet" href="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/css/print.css" media="print"> | 9 | <link rel="stylesheet" href="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/css/print.css" media="print"> |
10 | <script src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/js/jquery-2.0.3.min.js"></script> | 10 | <script src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/js/jquery-2.0.3.min.js"></script> |
11 | <script src="{{ poche_url }}/themes/{{ constant('DEFAULT_THEME') }}/js/autoClose.js"></script> \ No newline at end of file | ||
diff --git a/themes/default/js/autoClose.js b/themes/default/js/autoClose.js new file mode 100644 index 00000000..e9145b7e --- /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("&closewin=true")) { | ||
4 | window.close(); | ||
5 | } | ||
6 | }); | ||