Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/249790

Change subject: Implement HTMLTitleTextField with suggestions for non-OOUI 
forms, too
......................................................................

Implement HTMLTitleTextField with suggestions for non-OOUI forms, too

Bug: T117033
Change-Id: I2c7fc71d19cefaa16a6cc4526af05be9cd32366e
---
M includes/htmlform/HTMLTitleTextField.php
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/90/249790/1

diff --git a/includes/htmlform/HTMLTitleTextField.php 
b/includes/htmlform/HTMLTitleTextField.php
index ade4cf7..74e1234 100644
--- a/includes/htmlform/HTMLTitleTextField.php
+++ b/includes/htmlform/HTMLTitleTextField.php
@@ -80,4 +80,12 @@
                $params['relative'] = $this->mParams['relative'];
                return new TitleInputWidget( $params );
        }
+
+       function getInputHtml( $value ) {
+               // add mw-searchInput class to enable search suggestions for 
non-OOUI, too
+               $this->mClass .= 'mw-searchInput';
+
+               // return the HTMLTextField html
+               return call_user_func_array( array( 'parent', 'getInputHtml' ), 
array( $value ) );
+       }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/249790
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2c7fc71d19cefaa16a6cc4526af05be9cd32366e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to