]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - themes/default/js/saveLink.js
fix for #830
[github/wallabag/wallabag.git] / themes / default / js / saveLink.js
index bee453c09f9bce6f926d69800469a313fbcd5a1c..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) {
@@ -88,7 +93,7 @@ $.fn.ready(function() {
    ========================================================================== */
 
   $("article a[href^='http']").after(function() {
-    return " <a href=\"" + $(this).attr('href') + "\" class=\"add-to-wallabag-link-after\" alt=\"add to wallabag\" title=\"add to wallabag\">w</a> ";
+    return " <a href=\"" + $(this).attr('href') + "\" class=\"add-to-wallabag-link-after\" alt=\"add to wallabag\" title=\"add to wallabag\"></a> ";
   });
 
   $(".add-to-wallabag-link-after").click(function(event){