summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-23 21:32:37 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-23 21:32:37 +0000
commit7581a05043051f2cce37749a99d8c3d2e65db6c5 (patch)
tree483235e5e2e8976943255e42a2c04b745e0043d8 /usr
parent3c4a3d965fd4cc99745866ed8aaa22a5848cbf9c (diff)
downloadpfsense-7581a05043051f2cce37749a99d8c3d2e65db6c5.zip
pfsense-7581a05043051f2cce37749a99d8c3d2e65db6c5.tar.gz
Make matching on autosuggestion case insensitive.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/javascript/suggestions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/javascript/suggestions.js b/usr/local/www/javascript/suggestions.js
index 1b30fff..682a352 100644
--- a/usr/local/www/javascript/suggestions.js
+++ b/usr/local/www/javascript/suggestions.js
@@ -22,7 +22,7 @@ StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*
//search for matching states
for (var i=0; i < this.states.length; i++) {
- if (this.states[i].indexOf(sTextboxValue) == 0) {
+ if (this.states[i].toLowerCase().indexOf(sTextboxValue.toLowerCase()) == 0) {
aSuggestions.push(this.states[i]);
}
}
@@ -30,4 +30,4 @@ StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*
//provide suggestions to the control
oAutoSuggestControl.autosuggest(aSuggestions, bTypeAhead);
-}; \ No newline at end of file
+};
OpenPOWER on IntegriCloud