diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /vendor/oojs/oojs-ui/php/widgets/InputWidget.php | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'vendor/oojs/oojs-ui/php/widgets/InputWidget.php')
-rw-r--r-- | vendor/oojs/oojs-ui/php/widgets/InputWidget.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vendor/oojs/oojs-ui/php/widgets/InputWidget.php b/vendor/oojs/oojs-ui/php/widgets/InputWidget.php index 234d3145..24f5a51c 100644 --- a/vendor/oojs/oojs-ui/php/widgets/InputWidget.php +++ b/vendor/oojs/oojs-ui/php/widgets/InputWidget.php @@ -9,6 +9,10 @@ namespace OOUI; */ class InputWidget extends Widget { + /* Static Properties */ + + public static $supportsSimpleLabel = true; + /* Properties */ /** @@ -42,6 +46,10 @@ class InputWidget extends Widget { array_merge( $config, array( 'flagged' => $this ) ) ) ); $this->mixin( new TabIndexedElement( $this, array_merge( $config, array( 'tabIndexed' => $this->input ) ) ) ); + $this->mixin( new TitledElement( $this, + array_merge( $config, array( 'titled' => $this->input ) ) ) ); + $this->mixin( new AccessKeyedElement( $this, + array_merge( $config, array( 'accessKeyed' => $this->input ) ) ) ); // Initialization if ( isset( $config['name'] ) ) { @@ -53,7 +61,7 @@ class InputWidget extends Widget { $this ->addClasses( array( 'oo-ui-inputWidget' ) ) ->appendContent( $this->input ); - $this->appendContent( new Tag( 'span' ) ); + $this->input->addClasses( array( 'oo-ui-inputWidget-input' ) ); $this->setValue( isset( $config['value'] ) ? $config['value'] : null ); } |