Skip to content

Commit

Permalink
Upgrade to release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Nov 28, 2014
1 parent cbffe92 commit d011501
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
8 changes: 7 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
version 1.0.0
version 1.1.0
=============
**Date:** 29-Nov-2014

- (enh #2): Enhance language locale file parsing and registering
- Set release to stable

version 1.0.0
=============
**Date:** 08-Nov-2014

- Initial release
Expand Down
10 changes: 5 additions & 5 deletions DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @package yii2-widgets
* @subpackage yii2-widget-datepicker
* @version 1.0.0
* @version 1.1.0
*/

namespace kartik\date;
Expand Down Expand Up @@ -102,7 +102,7 @@ class DatePicker extends \kartik\base\InputWidget
* @var array the HTML options for the DatePicker container
*/
private $_container = [];

/**
* Initializes the widget
*
Expand All @@ -129,7 +129,7 @@ public function init()
if (isset($this->form) && ($this->type === self::TYPE_RANGE) && (!isset($this->attribute2))) {
throw new InvalidConfigException("The 'attribute2' property must be set for a 'range' type markup and a defined 'form' property.");
}
$this->initLanguage();
$this->setLanguage('bootstrap-datepicker.');
$this->parseDateFormat('date');
$this->_id = ($this->type == self::TYPE_INPUT) ? 'jQuery("#' . $this->options['id'] . '")' : 'jQuery("#' . $this->options['id'] . '").parent()';
$this->registerAssets();
Expand Down Expand Up @@ -228,8 +228,8 @@ protected function parseMarkup($input)
public function registerAssets()
{
$view = $this->getView();
if (!empty($this->pluginOptions['language'])) {
DatePickerAsset::register($view)->js[] = 'js/locales/bootstrap-datepicker.' . $this->pluginOptions['language'] . '.js';
if (!empty($this->_langFile)) {
DatePickerAsset::register($view)->js[] = $this->_langFile;
} else {
DatePickerAsset::register($view);
}
Expand Down
2 changes: 1 addition & 1 deletion DatePickerAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @package yii2-widgets
* @subpackage yii2-widget-datepicker
* @version 1.0.0
* @version 1.1.0
*/

namespace kartik\date;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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.0.0 released on 08-Nov-2014. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-datepicker/blob/master/CHANGE.md) for details.
> NOTE: The latest version of the module is v1.1.0 released on 29-Nov-2014. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-datepicker/blob/master/CHANGE.md) for details.
## Demo

Expand Down
2 changes: 1 addition & 1 deletion assets/css/datepicker-kv.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @package yii2-widgets
* @subpackage yii2-widget-datepicker
* @version 1.0.0
* @version 1.1.0
*
* Custom styling for Datepicker
* Built for Yii Framework 2.0
Expand Down
2 changes: 1 addition & 1 deletion assets/css/datepicker-kv.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014
* @package yii2-widgets
* @subpackage yii2-widget-datepicker
* @version 1.0.0
* @version 1.1.0
*
* Custom styling for Datepicker
* Built for Yii Framework 2.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"homepage": "http://www.krajee.com/"
}
],
"minimum-stability": "dev",
"minimum-stability": "stable",
"require": {
"kartik-v/yii2-krajee-base": "*"
},
Expand Down

0 comments on commit d011501

Please sign in to comment.