Authored by 梁志锋

筛选不区分大小写

... ... @@ -1208,7 +1208,7 @@ $(document).on("keyup", "#brandsearch", function () {
var bs = [];
Bll.Brands.forEach(function (brands) {
brands.items.forEach(function (item) {
if (regex.test(item.brand_name)) {
if (regex.test(item.brand_name.toLocaleLowerCase())) {
bs.push('<a class="btn"><input type="checkbox" value="' + item.id + '" name="brandCheckBox"><label>' + item.brand_name + '</label></a>');
}
});
... ...