mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Fix marking invalid filters in the UI
Label classes are incorrectly set on the filter text span, rather than the label under which that span is placed.
This commit is contained in:
@@ -106,10 +106,10 @@ var Filters = (function() {
|
||||
$.each($('span.tag-badge'), function(j, tag) {
|
||||
if (sha1(filter.text) == $(tag).data('badge-id')) {
|
||||
$(tag).html(filter.hits.toString());
|
||||
if (filter.isValid) {
|
||||
$(tag).addClass('label-info').removeClass('label-danger');
|
||||
if (filter.isValid == true) {
|
||||
$(tag).parent().addClass('label-info').removeClass('label-danger');
|
||||
} else {
|
||||
$(tag).addClass('label-danger').removeClass('label-info');
|
||||
$(tag).parent().addClass('label-danger').removeClass('label-info');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user