mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
170ca9d58a
This introduces another generic "button-like" class that can be reused in multiple places in the new sidebar. The main change in this patch is the "add more information" button which is now an instance of this new class as well. This patch also simplifies over-complicated setup code in related widgets. Bug: T274544 Change-Id: I0cfe7675d02fdd5c5dc8d9198bb3f4aec9abf397
21 lines
579 B
JavaScript
21 lines
579 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-content' )
|
|
} );
|
|
|
|
this.content = content;
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWTransclusionOutlineWikitextWidget, ve.ui.MWTransclusionOutlinePartWidget );
|