From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- vendor/oojs/oojs-ui/php/widgets/InputWidget.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'vendor/oojs/oojs-ui/php/widgets/InputWidget.php') 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 ); } -- cgit v1.2.3-54-g00ecf