Fixed the empty Transclusion Box problem

Bug: T52281
Change-Id: If6ba91497849b5ba311908359fde7f1db82b1fd0
This commit is contained in:
ankita-ks 2015-03-20 04:24:48 +05:30 committed by Jforrester
parent 3f6d19a75d
commit 9096ebf7a1

View file

@ -167,6 +167,7 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
if ( this.transclusionModel.getParts().length === 0 ) {
this.addParameterButton.setDisabled( true );
this.addPart( new ve.dm.MWTemplatePlaceholderModel( this.transclusionModel ) );
}
single = this.isSingleTemplateTransclusion();