]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for but 76073: - and + didn't work in quicksearch in IE and Opera
authorjustdave%syndicomm.com <>
Thu, 28 Jun 2001 23:27:37 +0000 (23:27 +0000)
committerjustdave%syndicomm.com <>
Thu, 28 Jun 2001 23:27:37 +0000 (23:27 +0000)
Patch by Andreas Franke <afranke@ags.uni-sb.de>
r= justdave@syndicomm.com

quicksearch.js

index 7fa9a02f5bf6972a55e5a97e557edbe7a79740f0..7e4b851395712caff20cc0efe273bf7611729cc1 100644 (file)
@@ -453,12 +453,12 @@ function make_query_URL(url, input, searchLong) {
         w = word[i];
         
         negation = false;
-        if (w[0] == "-") {
+        if (w.charAt(0) == "-") {
             negation = true;
             w = w.substring(1);
         }
 
-        switch (w[0]) {
+        switch (w.charAt(0)) {
             case "+":
                 alternative = w.substring(1).split(/[|,]/);
                 for (j=0; j<alternative.length; j++)