mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Fix saving edit mode on mobile in reply tool
When this code was added in 5feb69612f
,
it was inside the `if ( this.modeTabSelect ) { … }`, because switching
was an experimental option and could have been unavailable.
Switching is always available now, but the `modeTabSelect` widget
doesn't exist in the mobile version (because switching interface is a
part of the toolbar there), so this line should be outside the `if`.
Bug: T270536
Change-Id: I7c5959281e77558bfe82bd39d38ba4dda36d590c
This commit is contained in:
parent
4912a1bf5c
commit
2d5af9608a
|
@ -478,8 +478,8 @@ ReplyWidget.prototype.setup = function ( data ) {
|
|||
// Make the option for the current mode disabled, to make it un-interactable
|
||||
// (we override the styles to make it look as if it was selected)
|
||||
this.modeTabSelect.findItemFromData( this.getMode() ).setDisabled( true );
|
||||
this.saveEditMode( this.getMode() );
|
||||
}
|
||||
this.saveEditMode( this.getMode() );
|
||||
|
||||
var summary = this.storage.get( this.storagePrefix + '/summary' ) || data.editSummary;
|
||||
|
||||
|
|
Loading…
Reference in a new issue