Authored by xuqi

filter with attr-key.Review by:@xuqi

@@ -152,7 +152,7 @@ $('#brand-search-input').keyup(function() { @@ -152,7 +152,7 @@ $('#brand-search-input').keyup(function() {
152 if (val === '') { 152 if (val === '') {
153 $brandAttrs.removeClass('hide'); 153 $brandAttrs.removeClass('hide');
154 } else { 154 } else {
155 - $brandAttrs.addClass('hide').filter('[data-key*=' + val + ']').removeClass('hide'); 155 + $brandAttrs.addClass('hide').filter('[data-key*="' + val + '"]').removeClass('hide');
156 } 156 }
157 }); 157 });
158 158