Remove all CSS classes from indicator to avoid collision

When you tested filter against the change (with failure) and then
checked the syntax (with success), the new CSS class was overriden by
the old one, that's why the red X stayed.

Bug: T129753
Change-Id: I34cdba72f0b0e24e97083ba6b47554d0c8b826cf
This commit is contained in:
Matěj Suchánek 2017-07-14 17:47:20 +00:00
parent 36e010721b
commit 20c10c8159

View file

@ -63,9 +63,8 @@
$( '#mw-abusefilter-syntaxresult' )
.show()
.removeClass( 'mw-abusefilter-syntaxresult-ok mw-abusefilter-syntaxresult-error' )
.attr( 'class', className )
.text( resultText )
.addClass( className )
.data( 'syntaxOk', syntaxOk );
}