Merge "Fixed the empty Transclusion Box problem"

This commit is contained in:
jenkins-bot 2015-03-26 22:38:05 +00:00 committed by Gerrit Code Review
commit c9cfcc1a92

View file

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