mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Fixed the empty Transclusion Box problem"
This commit is contained in:
commit
c9cfcc1a92
|
@ -170,6 +170,7 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
|
||||||
|
|
||||||
if ( this.transclusionModel.getParts().length === 0 ) {
|
if ( this.transclusionModel.getParts().length === 0 ) {
|
||||||
this.addParameterButton.setDisabled( true );
|
this.addParameterButton.setDisabled( true );
|
||||||
|
this.addPart( new ve.dm.MWTemplatePlaceholderModel( this.transclusionModel ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
single = this.isSingleTemplateTransclusion();
|
single = this.isSingleTemplateTransclusion();
|
||||||
|
|
Loading…
Reference in a new issue