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:
Bartosz Dziewoński 2016-12-20 13:33:33 +01:00
parent f5b1a5bb18
commit e0c97ab2f0

View file

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