diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js')
-rw-r--r-- | vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js b/vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js deleted file mode 100644 index 5643b77c..00000000 --- a/vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * PopupButtonWidgets toggle the visibility of a contained {@link OO.ui.PopupWidget PopupWidget}, - * which is used to display additional information or options. - * - * @example - * // Example of a popup button. - * var popupButton = new OO.ui.PopupButtonWidget( { - * label: 'Popup button with options', - * icon: 'menu', - * popup: { - * $content: $( '<p>Additional options here.</p>' ), - * padded: true, - * align: 'force-left' - * } - * } ); - * // Append the button to the DOM. - * $( 'body' ).append( popupButton.$element ); - * - * @class - * @extends OO.ui.ButtonWidget - * @mixins OO.ui.PopupElement - * - * @constructor - * @param {Object} [config] Configuration options - */ -OO.ui.PopupButtonWidget = function OoUiPopupButtonWidget( config ) { - // Parent constructor - OO.ui.PopupButtonWidget.super.call( this, config ); - - // Mixin constructors - OO.ui.PopupElement.call( this, config ); - - // Events - this.connect( this, { click: 'onAction' } ); - - // Initialization - this.$element - .addClass( 'oo-ui-popupButtonWidget' ) - .attr( 'aria-haspopup', 'true' ) - .append( this.popup.$element ); -}; - -/* Setup */ - -OO.inheritClass( OO.ui.PopupButtonWidget, OO.ui.ButtonWidget ); -OO.mixinClass( OO.ui.PopupButtonWidget, OO.ui.PopupElement ); - -/* Methods */ - -/** - * Handle the button action being triggered. - * - * @private - */ -OO.ui.PopupButtonWidget.prototype.onAction = function () { - this.popup.toggle(); -}; |