1. ehsan
  2. bugzilla-tweaks

Commits

Matt Brubeck  committed 49d183f

Remove quicksearch field filling which is now built in to Bugzilla

  • Participants
  • Parent commits 1993407
  • Branches default

Comments (0)

Files changed (1)

File data/js/bug-page-mod.js

View file
     if (!onBugzillaPage(d.URL))
         return;
 
-    // Put the quicksearch text in the quicksearch boxes
-    quicksearchHandler(d);
-
     if (!d.getElementById("comments")) // don't process the mid-air collision pages
       return;
 
   }
 }
 
-function quicksearchHandler(doc) {
-  var win = doc.defaultView;
-  var match = /quicksearch=([^&]+)/i.exec(win.location.search);
-  if (match) {
-    var quicksearch = unescape(match[1].replace('+', ' ', 'g'));
-    var quicksearchBox = doc.querySelectorAll("input[name=quicksearch]");
-    if (quicksearchBox) {
-      for (var i = 0; i < quicksearchBox.length; ++i) {
-        quicksearchBox[i].value = quicksearch;
-      }
-    }
-  }
-}
-
 function AttachmentFlagHandlerCtor() {
     this._db = {};
     this._interestingFlags = {};