mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
ve.ui.MWParameterPage: Hide the "Fall back to plain wikitext" button when in wikitext
We were trying to hide it by detaching, which did not work because it was getting attached again in later code. Clicking the button just did nothing. Change-Id: I027550eb723c43dc85453959159b93e6e802e099
This commit is contained in:
parent
f5b1a5bb18
commit
e0c97ab2f0
|
@ -265,7 +265,7 @@ ve.ui.MWParameterPage.prototype.createValueInput = function () {
|
|||
} else if ( type !== 'line' ) {
|
||||
this.rawValueInput = true;
|
||||
valueInputConfig.multiline = true;
|
||||
this.rawFallbackButton.$element.detach();
|
||||
this.rawFallbackButton.$element.toggle( false );
|
||||
}
|
||||
|
||||
return new OO.ui.TextInputWidget( valueInputConfig );
|
||||
|
|
Loading…
Reference in a new issue