mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Merge "Disable buttons while posting"
This commit is contained in:
commit
2c5e125fe3
|
@ -73,6 +73,8 @@ mw.dt.ui.ReplyWidget.prototype.onReplyClick = function () {
|
|||
|
||||
this.textWidget.pushPending();
|
||||
this.textWidget.setDisabled( true );
|
||||
this.replyButton.setDisabled( true );
|
||||
this.cancelButton.setDisabled( true );
|
||||
|
||||
this.comment.parsoidPromise.then( function ( parsoidData ) {
|
||||
repliedTo = parsoidData.comment.id;
|
||||
|
@ -102,5 +104,7 @@ mw.dt.ui.ReplyWidget.prototype.onReplyClick = function () {
|
|||
} ).always( function () {
|
||||
widget.textWidget.popPending();
|
||||
widget.textWidget.setDisabled( false );
|
||||
widget.replyButton.setDisabled( false );
|
||||
widget.cancelButton.setDisabled( false );
|
||||
} );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue