Merge "Disable buttons while posting"

This commit is contained in:
jenkins-bot 2019-12-09 19:17:50 +00:00 committed by Gerrit Code Review
commit 2c5e125fe3

View file

@ -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 );
} );
};