]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix for #830 868/head
authortcit <tcit@tcit.fr>
Wed, 15 Oct 2014 14:47:38 +0000 (16:47 +0200)
committertcit <tcit@tcit.fr>
Wed, 15 Oct 2014 14:47:38 +0000 (16:47 +0200)
themes/default/js/popupForm.js
themes/default/js/saveLink.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();
     });
 
index 6dbce97eac5cf1ba1a62be4091750de86473e706..b52b8a2c2bb0c35156cd66efe2c004f66417ff1e 100755 (executable)
@@ -13,7 +13,7 @@ $.fn.ready(function() {
 
     $bagit.toggleClass("active-current");
 
-    //only if bagiti link is not presented on page
+    //only if bag-it link is not presented on page
     if ( $bagit.length === 0 ) {
       if ( event !== 'undefined' && event ) {
         $bagitForm.css( {position:"absolute", top:event.pageY, left:event.pageX-200});
@@ -23,6 +23,11 @@ $.fn.ready(function() {
       }
     }
 
+    if ($("#search-form").length != 0) {
+       $("#search").removeClass("current");
+       $("#search-arrow").removeClass("arrow-down");
+       $("#search-form").hide();
+    }
     $bagitForm.toggle();
     $('#content').toggleClass("opacity03");
     if (url !== 'undefined' && url) {