Escape css selector

This commit is contained in:
nicolas.dorier 2019-04-04 18:16:54 +09:00
parent 6c45689e6a
commit 6b9932fa14

View File

@ -94,7 +94,7 @@ $(document).ready(function(){
$('#js-pos-list').find(".card-wrapper").show();
if (str.length > 1) {
var $list = $('#js-pos-list').find(".card-title:not(:icontains('" + str + "'))");
var $list = $('#js-pos-list').find(".card-title:not(:icontains('" + $.escapeSelector(str) + "'))");
$list.parents('.card-wrapper').hide();
$('.js-search-reset').show();
}
@ -133,4 +133,4 @@ $(document).ready(function(){
$tip.trigger('input');
});
});
});
});