mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-05 03:08:37 +00:00
29ef00fa29
This is a more radical change, compared to the previous patch. I will post more detailled explanations as comments on Gerrit. Change-Id: I6909b3f0b2c153b7ee9995441e995ffa793eab40
23 lines
719 B
JavaScript
23 lines
719 B
JavaScript
/**
|
|
* @class
|
|
* @extends ve.ui.MWTransclusionOutlinePartWidget
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWTemplatePlaceholderModel} placeholder
|
|
*/
|
|
ve.ui.MWTransclusionOutlinePlaceholderWidget = function VeUiMWTransclusionOutlinePlaceholderWidget( placeholder ) {
|
|
var label = placeholder.getTransclusion().isSingleTemplate() ?
|
|
ve.msg( 'visualeditor-dialog-transclusion-template-search' ) :
|
|
ve.msg( 'visualeditor-dialog-transclusion-add-template' );
|
|
|
|
// Parent constructor
|
|
ve.ui.MWTransclusionOutlinePlaceholderWidget.super.call( this, placeholder, {
|
|
icon: 'puzzle',
|
|
label: label
|
|
} );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWTransclusionOutlinePlaceholderWidget, ve.ui.MWTransclusionOutlinePartWidget );
|