diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
commit | 6dc1997577fab2c366781fd7048144935afa0012 (patch) | |
tree | 8918d28c7ab4342f0738985e37af1dfc42d0e93a /includes/htmlform/HTMLAutoCompleteSelectField.php | |
parent | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff) | |
parent | fa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff) |
Merge commit 'fa89acd'
# Conflicts:
# .gitignore
# extensions/ArchInterWiki.sql
Diffstat (limited to 'includes/htmlform/HTMLAutoCompleteSelectField.php')
-rw-r--r-- | includes/htmlform/HTMLAutoCompleteSelectField.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/includes/htmlform/HTMLAutoCompleteSelectField.php b/includes/htmlform/HTMLAutoCompleteSelectField.php index 49053628..55cd5d0c 100644 --- a/includes/htmlform/HTMLAutoCompleteSelectField.php +++ b/includes/htmlform/HTMLAutoCompleteSelectField.php @@ -98,11 +98,12 @@ class HTMLAutoCompleteSelectField extends HTMLTextField { return true; } - function getAttributes( array $list ) { + // FIXME Ewww, this shouldn't be adding any attributes not requested in $list :( + public function getAttributes( array $list, array $mappings = null ) { $attribs = array( 'type' => 'text', 'data-autocomplete' => FormatJson::encode( array_keys( $this->autocomplete ) ), - ) + parent::getAttributes( $list ); + ) + parent::getAttributes( $list, $mappings ); if ( $this->getOptions() ) { $attribs['data-hide-if'] = FormatJson::encode( @@ -162,4 +163,13 @@ class HTMLAutoCompleteSelectField extends HTMLTextField { return $ret; } + /** + * Get the OOUI version of this input. + * @param string $value + * @return false + */ + function getInputOOUI( $value ) { + // To be implemented, for now override the function from HTMLTextField + return false; + } } |