]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - themes/default/js/popupForm.js
fix for #830
[github/wallabag/wallabag.git] / themes / default / js / popupForm.js
index a32e6e70aa9f0471d659f169c368a43598ea2642..eb6d1ae203657e17d94c6519a22c8c324ef8463c 100644 (file)
@@ -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();
     });