X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fwidget%2FDateInputWidget.php;h=975f8e9c48c4b09d95af7d0d8ccc1a207577764a;hb=d5284e941419e4544b8f73b77e9abc59693b0f7e;hp=507dab6fac9e00c5a51d21ca84f2c05523d0c1ce;hpb=bdfa96eb726c9997a010f5a194eec71925bfddc2;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 ); }