From c1dc065287d3d9167178b5477731868e597f1240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Fri, 4 Dec 2009 14:18:53 +0000 Subject: Make all autocompletes in there case insensitive. --- usr/local/www/javascript/firewall_shaper_edit/suggestions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/javascript/firewall_shaper_edit') diff --git a/usr/local/www/javascript/firewall_shaper_edit/suggestions.js b/usr/local/www/javascript/firewall_shaper_edit/suggestions.js index 1b30fff..4d1e127 100644 --- a/usr/local/www/javascript/firewall_shaper_edit/suggestions.js +++ b/usr/local/www/javascript/firewall_shaper_edit/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 +}; -- cgit v1.1