From 48fb171d7a64dbd1036f9e17cbf4c14304483817 Mon Sep 17 00:00:00 2001 From: tcit Date: Wed, 15 Oct 2014 16:47:38 +0200 Subject: fix for #830 --- themes/default/js/popupForm.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'themes/default/js/popupForm.js') 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() { $("#search").click(function(){ closeSearch(); + // if other popup is already shown + if ($("#bagit-form").length != 0) { + $("#bagit").removeClass("active-current"); + $('#content').removeClass("opacity03"); + $("#bagit").removeClass("current"); + $("#bagit-arrow").removeClass("arrow-down"); + $("#bagit-form").hide(); + } $('#searchfield').focus(); }); -- cgit v1.2.3