From 6a2ed98dc1b0308ab28a32fca4e5dacfc9ee2ae1 Mon Sep 17 00:00:00 2001 From: Wouter Slob Date: Mon, 30 Dec 2013 21:58:49 +0100 Subject: [PATCH] Make sure DatePicker is shown when inline and using a language. Remove not used use --- extensions/yii/jui/DatePicker.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/yii/jui/DatePicker.php b/extensions/yii/jui/DatePicker.php index bab2abe..6fc73bb 100644 --- a/extensions/yii/jui/DatePicker.php +++ b/extensions/yii/jui/DatePicker.php @@ -7,7 +7,6 @@ namespace yii\jui; -use Yii; use yii\helpers\Html; use yii\helpers\Json; @@ -83,7 +82,7 @@ class DatePicker extends InputWidget DatePickerRegionalAsset::register($view); $options = Json::encode($this->clientOptions); - $view->registerJs("$('#{$this->options['id']}').datepicker($.extend({}, $.datepicker.regional['{$this->language}'], $options));"); + $view->registerJs("$('#{$containerID}').datepicker($.extend({}, $.datepicker.regional['{$this->language}'], $options));"); $options = $this->clientOptions; $this->clientOptions = false; // the datepicker js widget is already registered