X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fwidget%2FDateInputWidget.php;h=975f8e9c48c4b09d95af7d0d8ccc1a207577764a;hb=4549aabaec52cdb870fed9f8e735901199ac4832;hp=507dab6fac9e00c5a51d21ca84f2c05523d0c1ce;hpb=8bb5a6c461c31ee5ce6874548246fc2c520686f6;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 ); }