Twitter Typeahead square brackets -
i have twitter typeahead
enabled control. uses bloodhound
preload data, consists of results this:
[1996] [1996] else [1996] more [1996] still more [1996] thats
the control set display results after 3 characters.
if type 199
, results return correctly, however, if type [199
or [1996
, no results. time results if close bracket, , type [1996]
.
has else experienced this? or knows issue?
did ever resolved? if not, try following;
var normalize = function(str) { $.each(charmap, function(chars, normalized) { var regex = new regexp('[' + chars + ']', 'gi'); str = str.replace(regex, normalized); }); return str; }
taken here
Comments
Post a Comment