From: Ed Sanders Date: Mon, 9 Oct 2017 09:12:21 +0000 (+0100) Subject: SearchInputWidget: Actually connect to change event X-Git-Tag: 1.31.0-rc.0~1835^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=f72345f57c8869b7426124cbe0218ab967fa42e4;p=lhc%2Fweb%2Fwiklou.git SearchInputWidget: Actually connect to change event This makes the clear indicator-button work, not sure if it ever worked in the past. Change-Id: Ia54add0fa5475c37871d82e7750ea4dedbf9dfe3 --- diff --git a/resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js b/resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js index 8707bfaeff..194f7149de 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.SearchInputWidget.js @@ -67,6 +67,10 @@ } ); }.bind( this ) ); + this.connect( this, { + change: 'onChange' + } ); + this.$element.addClass( 'oo-ui-textInputWidget-type-search' ); this.updateSearchIndicator(); this.connect( this, { @@ -117,7 +121,6 @@ * @see OO.ui.SearchInputWidget#onChange */ mw.widgets.SearchInputWidget.prototype.onChange = function () { - mw.widgets.SearchInputWidget.parent.prototype.onChange.call( this ); this.updateSearchIndicator(); };