| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
ve.ui.MWTransclusionOutlinePlaceholderWidget = function VeUiMWTransclusionOutlinePlaceholderWidget( placeholder ) { |
| 12 |
const label = placeholder.getTransclusion().isSingleTemplate() ? |
| 13 |
ve.msg( 'visualeditor-dialog-transclusion-template-search' ) : |
| 14 |
ve.msg( 'visualeditor-dialog-transclusion-add-template' ); |
| 15 |
|
| 16 |
|
| 17 |
ve.ui.MWTransclusionOutlinePlaceholderWidget.super.call( this, placeholder, { |
| 18 |
icon: 'puzzle', |
| 19 |
label: label |
| 20 |
} ); |
| 21 |
|
| 22 |
this.$element.addClass( 've-ui-mwTransclusionOutlinePlaceholderWidget' ); |
| 23 |
}; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
OO.inheritClass( ve.ui.MWTransclusionOutlinePlaceholderWidget, ve.ui.MWTransclusionOutlinePartWidget ); |