jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370845 )

Change subject: Use prop instead of removeAttr for syntax check disabled status
......................................................................


Use prop instead of removeAttr for syntax check disabled status

Bug: T169385
Change-Id: Ia3f598a3ccd0c12ec0c35450ed12f0ddbd739962
---
M modules/ext.abuseFilter.edit.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ext.abuseFilter.edit.js b/modules/ext.abuseFilter.edit.js
index cc15ec9..53a8c73 100644
--- a/modules/ext.abuseFilter.edit.js
+++ b/modules/ext.abuseFilter.edit.js
@@ -39,7 +39,7 @@
                        api = new mw.Api();
 
                $( this )
-                       .attr( 'disabled', 'disabled' )
+                       .prop( 'disabled', true )
                        .injectSpinner( 'abusefilter-syntaxcheck' );
 
                api.post( {
@@ -59,7 +59,7 @@
         */
        function processSyntaxResultAlways( resultText, className, syntaxOk ) {
                $.removeSpinner( 'abusefilter-syntaxcheck' );
-               $( '#mw-abusefilter-syntaxcheck' ).removeAttr( 'disabled' );
+               $( '#mw-abusefilter-syntaxcheck' ).prop( 'disabled', false );
 
                $( '#mw-abusefilter-syntaxresult' )
                        .show()

-- 
To view, visit https://gerrit.wikimedia.org/r/370845
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3f598a3ccd0c12ec0c35450ed12f0ddbd739962
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <kren...@gmail.com>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to