mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
26cab3125d
Moving responsibility to the part widget to check if we're in a single transclusion. Bug: T295353 Change-Id: I61b7891c04eb729647e2600318a97987fd88cb90
22 lines
869 B
JavaScript
22 lines
869 B
JavaScript
/**
|
|
* @class
|
|
* @extends ve.ui.MWTransclusionOutlinePartWidget
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWTransclusionContentModel} content
|
|
*/
|
|
ve.ui.MWTransclusionOutlineWikitextWidget = function VeUiMWTransclusionOutlineWikitextWidget( content ) {
|
|
// Parent constructor
|
|
ve.ui.MWTransclusionOutlineWikitextWidget.super.call( this, content, {
|
|
icon: 'wikiText',
|
|
label: ve.msg( 'visualeditor-dialog-transclusion-wikitext' ),
|
|
ariaDescriptionUnselected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria' ),
|
|
ariaDescriptionSelected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected' ),
|
|
ariaDescriptionSelectedSingle: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected-single' )
|
|
} );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWTransclusionOutlineWikitextWidget, ve.ui.MWTransclusionOutlinePartWidget );
|