Skip to content

Commit

Permalink
wrap liveSearch text in quotes (fix snapappointments#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Jun 1, 2015
1 parent 1b2fecb commit 954bdcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1207,9 +1207,9 @@
if (that.$searchbox.val()) {
var $searchBase = that.$lis.not('.is-hidden').removeClass('hidden').children('a');
if (that.options.liveSearchNormalize) {
$searchBase = $searchBase.not(':a' + that._searchStyle() + '(' + normalizeToBase(that.$searchbox.val()) + ')');
$searchBase = $searchBase.not(':a' + that._searchStyle() + '("' + normalizeToBase(that.$searchbox.val()) + '")');
} else {
$searchBase = $searchBase.not(':' + that._searchStyle() + '(' + that.$searchbox.val() + ')');
$searchBase = $searchBase.not(':' + that._searchStyle() + '("' + that.$searchbox.val() + '")');
}
$searchBase.parent().addClass('hidden');

Expand Down

0 comments on commit 954bdcc

Please sign in to comment.