X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Flib%2Foojs-ui%2Foojs-ui-widgets.js;h=991bbfb20eb930876116df2669cf5d898b10415c;hp=fd4739f6afa25124155d5c2b69ff4549f9f4b511;hb=babb418439588b611f0e259438372523936e257e;hpb=c5f5ac85d14671a9baa983949e8acb81d092e802 diff --git a/resources/lib/oojs-ui/oojs-ui-widgets.js b/resources/lib/oojs-ui/oojs-ui-widgets.js index fd4739f6af..991bbfb20e 100644 --- a/resources/lib/oojs-ui/oojs-ui-widgets.js +++ b/resources/lib/oojs-ui/oojs-ui-widgets.js @@ -1,12 +1,12 @@ /*! - * OOUI v0.27.5 + * OOUI v0.28.0 * 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-07-11T18:13:04Z + * Date: 2018-08-14T23:16:18Z */ ( function ( OO ) { @@ -846,6 +846,7 @@ OO.ui.mixin.LookupElement.prototype.populateLookupMenu = function () { } ) .fail( function () { widget.lookupMenu.clearItems(); + widget.lookupMenu.toggle( false ); } ); } @@ -5948,6 +5949,19 @@ OO.ui.MenuTagMultiselectWidget.prototype.onTagSelect = function ( tagItem ) { } }; +/** + * @inheritdoc + */ +OO.ui.MenuTagMultiselectWidget.prototype.setDisabled = function ( isDisabled ) { + // Parent method + OO.ui.MenuTagMultiselectWidget.parent.prototype.setDisabled.call( this, isDisabled ); + + if ( this.menu ) { + // Protect against calling setDisabled() before the menu was initialized + this.menu.setDisabled( isDisabled ); + } +}; + /** * Highlight the first selectable item in the menu, if configured. *