Add MessagesBi.php
[lhc/web/wiklou.git] / resources / lib / oojs-ui / oojs-ui-widgets.js
index fd4739f..991bbfb 100644 (file)
@@ -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.
  *