From: Roan Kattouw Date: Fri, 2 May 2014 17:42:57 +0000 (-0700) Subject: Update OOjs UI to v0.1.0-pre (e6edd86d37) X-Git-Tag: 1.31.0-rc.0~15909^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=15b7190f5b846a755b541b41a10c878b2a43e413;p=lhc%2Fweb%2Fwiklou.git Update OOjs UI to v0.1.0-pre (e6edd86d37) New changes: e1c2ae8 [BREAKING CHANGE] Cleanup widget focus/select/clear methods Change-Id: I7214257bcd33b400df4f7b1d8c2be317936f0cff --- diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js index bc8522eea1..665b05d512 100644 --- a/resources/lib/oojs-ui/oojs-ui.js +++ b/resources/lib/oojs-ui/oojs-ui.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (301887f487) + * OOjs UI v0.1.0-pre (e6edd86d37) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: Thu May 01 2014 12:36:15 GMT-0700 (PDT) + * Date: Fri May 02 2014 10:42:43 GMT-0700 (PDT) */ ( function ( OO ) { @@ -5566,6 +5566,16 @@ OO.ui.InputWidget.prototype.setDisabled = function ( state ) { } return this; }; + +/** + * Focus the input. + * + * @chainable + */ +OO.ui.InputWidget.prototype.focus = function () { + this.$input.focus(); + return this; +}; /** * Checkbox widget. * @@ -7798,20 +7808,6 @@ OO.ui.SearchWidget.prototype.getQuery = function () { return this.query; }; -/** - * Reset the widget to initial value. - */ -OO.ui.SearchWidget.prototype.clear = function () { - this.query.setValue( '' ); -}; - -/** - * Focus the query input. - */ -OO.ui.SearchWidget.prototype.focus = function () { - this.query.$input[0].focus(); -}; - /** * Get the results list. * @@ -8022,6 +8018,16 @@ OO.ui.TextInputWidget.prototype.popPending = function () { return this; }; + +/** + * Select the contents of the input. + * + * @chainable + */ +OO.ui.TextInputWidget.prototype.select = function () { + this.$input.select(); + return this; +}; /** * Menu for a text input widget. * diff --git a/resources/lib/oojs-ui/oojs-ui.svg.css b/resources/lib/oojs-ui/oojs-ui.svg.css index 8109bf6c1a..a330f57095 100644 --- a/resources/lib/oojs-ui/oojs-ui.svg.css +++ b/resources/lib/oojs-ui/oojs-ui.svg.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (301887f487) + * OOjs UI v0.1.0-pre (e6edd86d37) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: Thu May 01 2014 12:36:15 GMT-0700 (PDT) + * Date: Fri May 02 2014 10:42:43 GMT-0700 (PDT) */ /* Textures */