From 9096ebf7a11e2c80c91a084c07dbea3a81fe6849 Mon Sep 17 00:00:00 2001 From: ankita-ks Date: Fri, 20 Mar 2015 04:24:48 +0530 Subject: [PATCH] Fixed the empty Transclusion Box problem Bug: T52281 Change-Id: If6ba91497849b5ba311908359fde7f1db82b1fd0 --- modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js index 303db807b5..9ad5a5c904 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js @@ -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();