mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Don't allow users to switch to a mode they are already in
Change-Id: I082108c81ab871b64df76b6f9ba5cf4314ce6458
This commit is contained in:
parent
d0dd4cf036
commit
406aed0577
|
@ -201,6 +201,10 @@ ReplyWidget.prototype.onModeTabSelectChoose = function ( option ) {
|
|||
mode = option.getData(),
|
||||
widget = this;
|
||||
|
||||
if ( mode === this.getMode() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.setPending( true );
|
||||
this.modeTabSelect.setDisabled( true );
|
||||
switch ( mode ) {
|
||||
|
|
Loading…
Reference in a new issue