Skip to content

Commit

Permalink
Update to release v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jan 25, 2015
1 parent 76dad1b commit 3e59cc0
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions 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
Expand Down
5 changes: 3 additions & 2 deletions DateTimePicker.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion DateTimePickerAsset.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion assets/css/datetimepicker-kv.css
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion assets/css/datetimepicker-kv.min.css
Expand Up @@ -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
Expand Down

0 comments on commit 3e59cc0

Please sign in to comment.