Make mw.widgets.SearchInputWidget extend OO.ui.SearchInputWidget
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 29 Jun 2017 20:04:34 +0000 (22:04 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 29 Jun 2017 20:25:56 +0000 (22:25 +0200)
commit7882e3b66060f7bbd37e15688baf4dd30954b1b7
treea60d7722b8f68a1c062a930a0d140cf5336284b5
parent49eeea21248d2de5f42a8aaf313d400d42724ace
Make mw.widgets.SearchInputWidget extend OO.ui.SearchInputWidget

Mixin mw.widgets.TitleWidget instead of extending mw.widgets.TitleInputWidget.

* Remove code that reimplemented pieces of OO.ui.SearchInputWidget.
* Remove code that overrode pieces of mw.widgets.TitleInputWidget.
* Copy the code from mw.widgets.TitleInputWidget that we actually want.

This should result in no functional changes, other than losing the
TitleInputWidget API (some methods and config options) that no one
relied on, as far as I can tell.

Bug: T169194
Change-Id: Ic1482b4c7cfde7d4cf0b8900654bd3a454776010
includes/widget/SearchInputWidget.php
resources/Resources.php
resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js