Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 1x 1x 1x 1x 1x 1x | /*!
* VisualEditor UserInterface SidebarDialog class.
*
* @copyright See AUTHORS.txt
*/
/**
* Sidebar dialog.
*
* @class
* @abstract
* @extends OO.ui.Dialog
*
* @constructor
* @param {Object} [config] Configuration options
*/
ve.ui.SidebarDialog = function VeUiSidebarDialog( config = {} ) {
// Parent constructor
ve.ui.SidebarDialog.super.call( this, config );
// Pre-initialization
// This class needs to exist before setup to constrain the height
// of the dialog when it first loads.
this.$element.addClass( 've-ui-sidebarDialog' );
};
/* Inheritance */
OO.inheritClass( ve.ui.SidebarDialog, OO.ui.Dialog );
/* Static Properties */
ve.ui.SidebarDialog.static.size = 'medium';
/**
* The dialog has a frame border
*
* @static
* @type {boolean}
*/
ve.ui.SidebarDialog.static.framed = true;
/* Methods */
/**
* @inheritdoc
*/
ve.ui.SidebarDialog.prototype.initialize = function () {
// Parent method
ve.ui.SidebarDialog.super.prototype.initialize.call( this );
this.$content.addClass( 've-ui-sidebarDialog-content' );
if ( this.constructor.static.framed ) {
this.$element.addClass( 've-ui-sidebarDialog-framed' );
}
// Invisible title for accessibility
this.title.setInvisibleLabel( true );
this.$element.prepend( this.title.$element );
};
/**
* @inheritdoc
*/
ve.ui.SidebarDialog.prototype.getTeardownProcess = function ( data ) {
ve.track( 'activity.' + this.constructor.static.name, { action: 'dialog-' + ( data && data.action || 'abort' ) } );
return ve.ui.SidebarDialog.super.prototype.getTeardownProcess.apply( this, arguments );
};
|