X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fwidget%2FComplexTitleInputWidget.php;h=e111a972b6318b9d212948d1eacf84df95a341fe;hb=38ab0b0c4cb041d9c4ff0ca4b62656d2768df79a;hp=ee769da1fed59fe56f52caef015350ec048d1396;hpb=2f885ee6b797e5a176ce7b270b674a04b5945b06;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/ComplexTitleInputWidget.php b/includes/widget/ComplexTitleInputWidget.php index ee769da1fe..e111a972b6 100644 --- a/includes/widget/ComplexTitleInputWidget.php +++ b/includes/widget/ComplexTitleInputWidget.php @@ -19,9 +19,9 @@ class ComplexTitleInputWidget extends \OOUI\Widget { * Like TitleInputWidget, but the namespace has to be input through a separate dropdown field. * * @param array $config Configuration options - * @param array $config['namespace'] Configuration for the NamespaceInputWidget dropdown - * with list of namespaces - * @param array $config['title'] Configuration for the TitleInputWidget text field + * - array $config['namespace'] Configuration for the NamespaceInputWidget dropdown + * with list of namespaces + * - array $config['title'] Configuration for the TitleInputWidget text field */ public function __construct( array $config = [] ) { // Configuration initialization @@ -33,7 +33,6 @@ class ComplexTitleInputWidget extends \OOUI\Widget { $config ); - // Parent constructor parent::__construct( $config ); // Properties @@ -42,9 +41,6 @@ class ComplexTitleInputWidget extends \OOUI\Widget { $this->title = new TitleInputWidget( array_merge( $config['title'], [ - // The inner TitleInputWidget shouldn't be infusable, - // only the ComplexTitleInputWidget itself can be. - 'infusable' => false, 'relative' => true, 'namespace' => isset( $config['namespace']['value'] ) ? $config['namespace']['value'] : @@ -64,7 +60,9 @@ class ComplexTitleInputWidget extends \OOUI\Widget { public function getConfig( &$config ) { $config['namespace'] = $this->config['namespace']; + $config['namespace']['dropdown']['$overlay'] = true; $config['title'] = $this->config['title']; + $config['title']['$overlay'] = true; return parent::getConfig( $config ); } }