X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fwidget%2FDateInputWidget.php;h=975f8e9c48c4b09d95af7d0d8ccc1a207577764a;hb=1fd7829f2fb1206d72928f865e140029b1cb04cd;hp=507dab6fac9e00c5a51d21ca84f2c05523d0c1ce;hpb=dae4c94d893057345f62a3d498fb85c0a54de5a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/DateInputWidget.php b/includes/widget/DateInputWidget.php index 507dab6fac..975f8e9c48 100644 --- a/includes/widget/DateInputWidget.php +++ b/includes/widget/DateInputWidget.php @@ -1,10 +1,4 @@ placeholderLabel = $config['placeholderLabel']; } - if ( isset( $config['overlay'] ) ) { - $this->overlay = $config['overlay']; - } // Set up placeholder text visible if the browser doesn't override it (logic taken from JS) if ( $this->placeholderDateFormat !== null ) { @@ -109,7 +96,6 @@ class DateInputWidget extends \OOUI\TextInputWidget { 'placeholder' => $placeholder, ], $config ); - // Parent constructor parent::__construct( $config ); // Calculate min/max attributes (which are skipped by TextInputWidget) and add to @@ -160,9 +146,7 @@ class DateInputWidget extends \OOUI\TextInputWidget { if ( $this->mustBeBefore !== null ) { $config['mustBeBefore'] = $this->mustBeBefore; } - if ( $this->overlay !== null ) { - $config['overlay'] = $this->overlay; - } + $config['$overlay'] = true; return parent::getConfig( $config ); }