Merge "Installer: Validate password against sysop/bureaucrat policies"
[lhc/web/wiklou.git] / resources / src / mediawiki.widgets / mw.widgets.TitleSearchWidget.js
index c37c723..0e2546f 100644 (file)
         * @param {OO.ui.OptionWidget} item Chosen item
         */
        mw.widgets.TitleSearchWidget.prototype.onTitleSearchResultsChoose = function ( item ) {
-               // TOOD: Pressing enter can incorrectly trigger 'choose' with null.
-               // Remove this check when oojs-ui 0.12.10 lands.
-               if ( item ) {
-                       this.getQuery().setValue( item.getData() );
-               }
+               this.getQuery().setValue( item.getData() );
        };
 
        /**