diff --git a/CHANGE.md b/CHANGE.md index 6558459..971ea91 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -1,3 +1,9 @@ +version 1.4.0 +============= +**Date:** 25-Jan-2015 + +- (bug #12): Fix directory separator for assets path in setLanguage. + version 1.3.0 ============= **Date:** 12-Jan-2015 diff --git a/DateTimePicker.php b/DateTimePicker.php index 6f3f440..0dd5a1f 100644 --- a/DateTimePicker.php +++ b/DateTimePicker.php @@ -4,7 +4,7 @@ * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 * @package yii2-widgets * @subpackage yii2-widget-datetimepicker - * @version 1.3.0 + * @version 1.4.0 */ namespace kartik\datetime; @@ -101,7 +101,8 @@ public function init() throw new InvalidConfigException("Invalid value for the property 'type'. Must be an integer between 1 and 5."); } $this->initI18N(); - $this->setLanguage('bootstrap-datetimepicker.', __DIR__ . '/assets/'); + $s = DIRECTORY_SEPARATOR; + $this->setLanguage('bootstrap-datetimepicker.', __DIR__ . "{$s}assets{$s}"); $this->parseDateFormat('datetime'); $this->_id = ($this->type == self::TYPE_INPUT) ? 'jQuery("#' . $this->options['id'] . '")' : 'jQuery("#' . $this->options['id'] . '").parent()'; $this->registerAssets(); diff --git a/DateTimePickerAsset.php b/DateTimePickerAsset.php index b9bc818..2265f46 100644 --- a/DateTimePickerAsset.php +++ b/DateTimePickerAsset.php @@ -4,7 +4,7 @@ * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 * @package yii2-widgets * @subpackage yii2-widget-datetimepicker - * @version 1.3.0 + * @version 1.4.0 */ namespace kartik\datetime; diff --git a/README.md b/README.md index c69c276..e028244 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ to the ```require``` section of your `composer.json` file. ## Latest Release -> NOTE: The latest version of the module is v1.3.0 released on 12-Jan-2015. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-datetimepicker/blob/master/CHANGE.md) for details. +> NOTE: The latest version of the module is v1.4.0. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-datetimepicker/blob/master/CHANGE.md) for details. ## Demo diff --git a/assets/css/datetimepicker-kv.css b/assets/css/datetimepicker-kv.css index 4c44d1f..a3619a2 100644 --- a/assets/css/datetimepicker-kv.css +++ b/assets/css/datetimepicker-kv.css @@ -2,7 +2,7 @@ * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 * @package yii2-widgets * @subpackage yii2-widget-datepicker - * @version 1.2.0 + * @version 1.4.0 * * Custom styling for DateTimepicker * Built for Yii Framework 2.0 diff --git a/assets/css/datetimepicker-kv.min.css b/assets/css/datetimepicker-kv.min.css index 04e366f..91520a2 100644 --- a/assets/css/datetimepicker-kv.min.css +++ b/assets/css/datetimepicker-kv.min.css @@ -2,7 +2,7 @@ * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 * @package yii2-widgets * @subpackage yii2-widget-datepicker - * @version 1.2.0 + * @version 1.4.0 * * Custom styling for DateTimepicker * Built for Yii Framework 2.0