/*!
- * 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 ) {
}
return this;
};
+
+/**
+ * Focus the input.
+ *
+ * @chainable
+ */
+OO.ui.InputWidget.prototype.focus = function () {
+ this.$input.focus();
+ return this;
+};
/**
* Checkbox widget.
*
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.
*
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.
*
/*!
- * 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 */