Skip to content

Commit

Permalink
Update to release v2.0.8 fixes #124 fixes #125
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Feb 17, 2016
1 parent 349c8a0 commit 6591e82
Show file tree
Hide file tree
Showing 63 changed files with 125 additions and 82 deletions.
10 changes: 10 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Change Log: `yii2-widget-select2`
=================================

## Version 2.0.8

**Date:** 17-Feb-2016

- Add branch alias for dev-master latest release.
- (enh #117): Add Dutch Translations.
- (enh #119): Add Slovak Translations.
- (enh #124): Maintain order of selected values for an update scenario.
- (enh #125): Update to latest release of the select2 plugin (v4.0.2-rc.1).

## Version 2.0.7

**Date:** 10-Jan-2016
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
yii2-widget-select2
===================

[![Latest Stable Version](https://poser.pugx.org/kartik-v/yii2-widget-select2/v/stable)](https://packagist.org/packages/kartik-v/yii2-widget-select2)
[![Stable Version](https://poser.pugx.org/kartik-v/yii2-widget-select2/v/stable)](https://packagist.org/packages/kartik-v/yii2-widget-select2)
[![Unstable Version](https://poser.pugx.org/kartik-v/yii2-widget-select2/v/unstable)](https://packagist.org/packages/kartik-v/yii2-widget-select2)
[![License](https://poser.pugx.org/kartik-v/yii2-widget-select2/license)](https://packagist.org/packages/kartik-v/yii2-widget-select2)
[![Total Downloads](https://poser.pugx.org/kartik-v/yii2-widget-select2/downloads)](https://packagist.org/packages/kartik-v/yii2-widget-select2)
[![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-widget-select2/d/monthly)](https://packagist.org/packages/kartik-v/yii2-widget-select2)
Expand Down Expand Up @@ -31,7 +32,7 @@ to the ```require``` section of your `composer.json` file.

## Latest Release

> NOTE: The latest version of the module is v2.0.7. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-select2/blob/master/CHANGE.md) for details.
> NOTE: The latest version of the module is v2.0.8. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-select2/blob/master/CHANGE.md) for details.
The widget has a major version revamp with v2.0. This release includes updates to use Select2 plugin release v4.0. Select2 release v4.0 is a major rewrite over Select2 v3.x and hence quite a few enhancements or changes should be expected. To use the earlier plugin release v3.5.2, you must point it to the [v1.0.1 release](https://github.com/kartik-v/yii2-widget-select2/releases/tag/v1.0.1) of the widget.

Expand Down
9 changes: 7 additions & 2 deletions Select2.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @package yii2-widgets
* @subpackage yii2-widget-select2
* @version 2.0.7
* @version 2.0.8
*/

namespace kartik\select2;
Expand Down Expand Up @@ -354,7 +354,12 @@ public function registerAssets()
]);
$this->_s2OptionsVar = 's2options_' . hash('crc32', $options);
$this->options['data-s2-options'] = $this->_s2OptionsVar;
$this->getView()->registerJs("var {$this->_s2OptionsVar} = {$options};", View::POS_HEAD);
$view = $this->getView();
$view->registerJs("var {$this->_s2OptionsVar} = {$options};", View::POS_HEAD);
if ($this->maintainOrder) {
$val = Json::encode(is_array($this->value) ? $this->value : [$this->value]);
$view->registerJs("initS2Order('{$id}',{$val});");
}
$this->registerPlugin($this->pluginName, "jQuery('#{$id}')", "initS2Loading('{$id}','{$this->_s2OptionsVar}')");
}
}
2 changes: 1 addition & 1 deletion Select2Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @package yii2-widgets
* @subpackage yii2-widget-select2
* @version 2.0.7
* @version 2.0.8
*/

namespace kartik\select2;
Expand Down
2 changes: 1 addition & 1 deletion ThemeBootstrapAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @package yii2-widgets
* @subpackage yii2-widget-select2
* @version 2.0.7
* @version 2.0.8
*/

namespace kartik\select2;
Expand Down
2 changes: 1 addition & 1 deletion ThemeClassicAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @package yii2-widgets
* @subpackage yii2-widget-select2
* @version 2.0.7
* @version 2.0.8
*/

namespace kartik\select2;
Expand Down
2 changes: 1 addition & 1 deletion ThemeDefaultAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @package yii2-widgets
* @subpackage yii2-widget-select2
* @version 2.0.7
* @version 2.0.8
*/

namespace kartik\select2;
Expand Down
2 changes: 1 addition & 1 deletion ThemeKrajeeAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @package yii2-widgets
* @subpackage yii2-widget-select2
* @version 2.0.7
* @version 2.0.8
*/

namespace kartik\select2;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/select2-addl.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @version 2.0.7
* @version 2.0.8
*
* Additional CSS for Select2 for extra functionalities added by Krajee
*
Expand Down
2 changes: 1 addition & 1 deletion assets/css/select2-addl.min.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @version 2.0.7
* @version 2.0.8
*
* Additional CSS for Select2 for extra functionalities added by Krajee
*
Expand Down
2 changes: 1 addition & 1 deletion assets/css/select2-krajee.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @version 2.0.7
* @version 2.0.8
*
* Krajee Theme for Select2 (matches Bootstrap 3 styles)
*
Expand Down
2 changes: 1 addition & 1 deletion assets/css/select2-krajee.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/select2.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/i18n/ar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/az.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/bg.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/ca.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/cs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/da.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/en.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/et.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/eu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/fa.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/fi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/fr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/i18n/gl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6591e82

Please sign in to comment.