diff options
Diffstat (limited to 'themes/default/js/popupForm.js')
-rw-r--r-- | themes/default/js/popupForm.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js index a32e6e70..eb6d1ae2 100644 --- a/themes/default/js/popupForm.js +++ b/themes/default/js/popupForm.js | |||
@@ -10,6 +10,14 @@ $(document).ready(function() { | |||
10 | 10 | ||
11 | $("#search").click(function(){ | 11 | $("#search").click(function(){ |
12 | closeSearch(); | 12 | closeSearch(); |
13 | // if other popup is already shown | ||
14 | if ($("#bagit-form").length != 0) { | ||
15 | $("#bagit").removeClass("active-current"); | ||
16 | $('#content').removeClass("opacity03"); | ||
17 | $("#bagit").removeClass("current"); | ||
18 | $("#bagit-arrow").removeClass("arrow-down"); | ||
19 | $("#bagit-form").hide(); | ||
20 | } | ||
13 | $('#searchfield').focus(); | 21 | $('#searchfield').focus(); |
14 | }); | 22 | }); |
15 | 23 | ||