Commit graph

7 commits

Author SHA1 Message Date
Bartosz Dziewoński
e218f21d44 mw.widgets.SearchInputWidget: Do not pass type: 'search' to TextInputWidget
Causes deprecation warnings.

Most of this code is copy-pasted from OO.ui.SearchInputWidget.

Bug: T148471
Change-Id: I81d52ba938a8b90c5d2c173f1f2682d9e3300e43
2017-03-14 21:44:42 +00:00
Bartosz Dziewoński
7c987a0235 Don't magically make MediaWiki\Widget classes infusable
For consistency with how normal OOjs UI widgets behave.
Only one usage outside of HTMLForm needed updating. There
are no usages in extensions in Gerrit.

Change-Id: I9b5de86307a13ca7355b7541e8683e4d6a10431f
2016-07-26 13:56:47 +02:00
James D. Forrester
9c83f632ef SearchInputWidget: Use isset on dataLocation in case it isn't
Change-Id: I88f4d1624ee0e1f64d8f591dd8936e875211c53d
2016-07-01 12:34:51 +01:00
Kunal Mehta
63b562b3f5 Fix file permissions on SearchInputWidget.php
Change-Id: I0c7b149a0c62f02b655e53c255ba01a92fc6c4a8
2016-06-09 16:11:29 -07:00
Florian
36784f7c35 Search: Change dataLocation default value and add docs
Implemented Krinkle's comments of the followed up commit.

Follow up I2480149

Change-Id: I8e51c0d3a3ca1690ea3ea08469a1cd52d9c151f3
2016-05-06 12:18:19 +00:00
Florian
e429497501 Convert Special:Search input to OOUI
Bug: T100898
Change-Id: I24801495dfad71f457bc4afdd28474f74b219024
2016-03-22 18:38:52 +01:00
Florian
18c6615d01 MediaWiki Widgets: Add new SearchInputWidget
SearchInputWidget is similar to a TitleInputWidget, but doesn't has
a visible loading indication, doesn't highlight the first result and
uses the opensearch api endpoint for suggestions, instead of
prefixsearch.

Extra points:
 * Improve documentation of mw.widgets.TitleInputWidget's configuration
   option validateTitle

Bug: T118443
Change-Id: I8b8098041fe2971389fa908d007d2e77255829ec
2016-03-03 16:29:40 +00:00