Alex Monk has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/371019 )

Change subject: Use prop instead of removeAttr
......................................................................

Use prop instead of removeAttr

Change-Id: Id9c8c62877477f35a858d742e9e80802e8f15ebf
---
M modules/ext.svgedit.editor.js
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SVGEdit 
refs/changes/19/371019/1

diff --git a/modules/ext.svgedit.editor.js b/modules/ext.svgedit.editor.js
index 818dab2..e121f63 100644
--- a/modules/ext.svgedit.editor.js
+++ b/modules/ext.svgedit.editor.js
@@ -116,8 +116,8 @@
                };
 
                var spinnerOn = function() {
-                       $('#mw-svgedit-summary').attr('disabled', 'disabled');
-                       $('#mw-svgedit-save').attr('disabled', 'disabled');
+                       $('#mw-svgedit-summary').prop('disabled', true);
+                       $('#mw-svgedit-save').prop('disabled', true);
                        var offset = frame.offset();
                        spinner
                                .css('left', offset.left)
@@ -127,8 +127,8 @@
                                .show();
                };
                var spinnerOff = function() {
-                       $('#mw-svgedit-summary').removeAttr('disabled');
-                       $('#mw-svgedit-save').removeAttr('disabled');
+                       $('#mw-svgedit-summary').prop('disabled', false);
+                       $('#mw-svgedit-save').prop('disabled', false);
                        spinner.hide();
                };
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9c8c62877477f35a858d742e9e80802e8f15ebf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SVGEdit
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <kren...@gmail.com>

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

Reply via email to