BUG 8160 Fix Bug in the search for component Suggest.

This commit is contained in:
Hector Cortez
2011-12-16 12:30:57 -04:00
parent 5ef3bdbfc2
commit 724bbabedd
2 changed files with 39 additions and 5 deletions

View File

@@ -179,7 +179,9 @@ _b.AutoSuggest.prototype.getSuggestions = function (val)
var arr = [];
for (var i=0;i<l;i++)
{
if (this.aSug[i].value.substr(0,val.length).toLowerCase() == val.toLowerCase())
// if (this.aSug[i].value.substr(0,val.length).toLowerCase() == val.toLowerCase())
if (this.aSug[i].value.substr(0,val.length).toLowerCase() == val.toLowerCase() ||
this.aSug[i].value.toLowerCase().indexOf(val.toLowerCase()) > 0)
arr.push( this.aSug[i] );
}
this.aSug = arr;