Commit 6c01f238 by Wouter Slob

Revert "Make sure DatePicker is shown when inline and using a language. Remove not used use"

This reverts commit 90c2f109.
parent 90c2f109
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
namespace yii\jui; namespace yii\jui;
use Yii;
use yii\helpers\Html; use yii\helpers\Html;
use yii\helpers\Json; use yii\helpers\Json;
...@@ -82,7 +83,7 @@ class DatePicker extends InputWidget ...@@ -82,7 +83,7 @@ class DatePicker extends InputWidget
DatePickerRegionalAsset::register($view); DatePickerRegionalAsset::register($view);
$options = Json::encode($this->clientOptions); $options = Json::encode($this->clientOptions);
$view->registerJs("$('#{$containerID}').datepicker($.extend({}, $.datepicker.regional['{$this->language}'], $options));"); $view->registerJs("$('#{$this->options['id']}').datepicker($.extend({}, $.datepicker.regional['{$this->language}'], $options));");
$options = $this->clientOptions; $options = $this->clientOptions;
$this->clientOptions = false; // the datepicker js widget is already registered $this->clientOptions = false; // the datepicker js widget is already registered
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment