BUG 10963 Double quotes in suggest field SOLVED
- When I type double quotes in suggest field, there is an error with JSON concatenation - Validation of double quotes in suggest fields.
This commit is contained in:
@@ -336,6 +336,7 @@ _b.AutoSuggest.prototype.createList = function(arr)
|
||||
// (as HTML, not DOM)
|
||||
//
|
||||
var val = arr[i].value;
|
||||
val = val.split('"').join('"');
|
||||
var st = val.toLowerCase().indexOf( this.sInp.toLowerCase() );
|
||||
var output = val.substring(0,st) + "<em>" + val.substring(st, st+this.sInp.length) + "</em>" + val.substring(st+this.sInp.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user