X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Flib%2Fooui%2Foojs-ui-toolbars.js;h=e0d9b3c3477c44fba3f71e00bc5fe28afdf91b37;hb=65f12f7190442dcea96eb8d642ebbf8c39df1427;hp=7941e2df3287177267371920954850ea7931cb5a;hpb=bc15d529cdfd0cb7e7d5b2186267530945e6df04;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/lib/ooui/oojs-ui-toolbars.js b/resources/lib/ooui/oojs-ui-toolbars.js index 7941e2df32..e0d9b3c347 100644 --- a/resources/lib/ooui/oojs-ui-toolbars.js +++ b/resources/lib/ooui/oojs-ui-toolbars.js @@ -1,12 +1,12 @@ /*! - * OOUI v0.29.1 + * OOUI v0.29.5 * https://www.mediawiki.org/wiki/OOUI * * Copyright 2011–2018 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2018-10-04T00:42:40Z + * Date: 2018-11-08T22:38:07Z */ ( function ( OO ) { @@ -400,6 +400,7 @@ OO.ui.Toolbar.prototype.getToolGroupFactory = function () { * * @private * @param {jQuery.Event} e Mouse down event + * @return {undefined/boolean} False to prevent default if event is handled */ OO.ui.Toolbar.prototype.onPointerDown = function ( e ) { var $closestWidgetToEvent = $( e.target ).closest( '.oo-ui-widget' ), @@ -857,6 +858,7 @@ OO.ui.Tool.prototype.setActive = function ( state ) { * * @param {string|Function} title Title text or a function that returns text * @chainable + * @return {OO.ui.Tool} The tool, for chaining */ OO.ui.Tool.prototype.setTitle = function ( title ) { this.title = OO.ui.resolveMsg( title ); @@ -1107,6 +1109,7 @@ OO.ui.ToolGroup.prototype.onDisable = function ( isDisabled ) { * * @protected * @param {jQuery.Event} e Mouse down or key down event + * @return {undefined/boolean} False to prevent default if event is handled */ OO.ui.ToolGroup.prototype.onMouseKeyDown = function ( e ) { if ( @@ -1553,6 +1556,7 @@ OO.ui.PopupTool = function OoUiPopupTool( toolGroup, config ) { this.popup.connect( this, { toggle: 'onPopupToggle' } ); // Initialization + this.popup.setAutoFlip( false ); this.popup.setPosition( toolGroup.getToolbar().position === 'bottom' ? 'above' : 'below' ); this.$element.addClass( 'oo-ui-popupTool' ); this.popup.$element.addClass( 'oo-ui-popupTool-popup' ); @@ -1865,8 +1869,8 @@ OO.ui.BarToolGroup.static.name = 'bar'; /** * PopupToolGroup is an abstract base class used by both {@link OO.ui.MenuToolGroup MenuToolGroup} - * and {@link OO.ui.ListToolGroup ListToolGroup} to provide a popup--an overlaid menu or list of tools with an - * optional icon and label. This class can be used for other base classes that also use this functionality. + * and {@link OO.ui.ListToolGroup ListToolGroup} to provide a popup (an overlaid menu or list of tools with an + * optional icon and label). This class can be used for other base classes that also use this functionality. * * @abstract * @class @@ -2049,6 +2053,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) { * * @protected * @param {jQuery.Event} e Mouse up or key up event + * @return {undefined/boolean} False to prevent default if event is handled */ OO.ui.PopupToolGroup.prototype.onHandleMouseKeyUp = function ( e ) { if ( @@ -2064,6 +2069,7 @@ OO.ui.PopupToolGroup.prototype.onHandleMouseKeyUp = function ( e ) { * * @protected * @param {jQuery.Event} e Mouse down or key down event + * @return {undefined/boolean} False to prevent default if event is handled */ OO.ui.PopupToolGroup.prototype.onHandleMouseKeyDown = function ( e ) { var $focusable;