From c7d7b5251bcfaa409a3553c09c8fb0e8936f10db Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Sun, 10 Jan 2016 17:31:01 +0530 Subject: [PATCH] Updates to release v1.0.3 fixes #20 & fixes #21 --- CHANGE.md | 9 +++++++++ ColorInput.php | 9 +++++++-- ColorInputAsset.php | 2 +- README.md | 2 +- assets/css/spectrum-kv.css | 2 +- assets/css/spectrum-kv.min.css | 2 +- assets/js/spectrum-kv.js | 2 +- assets/js/spectrum-kv.min.js | 4 ++-- 8 files changed, 23 insertions(+), 9 deletions(-) diff --git a/CHANGE.md b/CHANGE.md index 858a78e..069ff04 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -1,6 +1,15 @@ Change Log: `yii2-widget-colorinput` ==================================== +## Version 1.0.3 + +**Date:** 10-Jan-2016 + +- (enh #18): Add Ukranian Translations. +- (enh #19): Update Ukranian Translations. +- (bug #20): Fix minified JS `spectrum-kv.min.js`. +- (enh #21): Enhancements for PJAX based reinitialization. Complements enhancements in kartik-v/yii2-krajee-base#52 and kartik-v/yii2-krajee-base#53. + ## Version 1.0.2 **Date:** 27-Dec-2015 diff --git a/ColorInput.php b/ColorInput.php index 3d6274c..5c20c25 100644 --- a/ColorInput.php +++ b/ColorInput.php @@ -4,7 +4,7 @@ * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 * @package yii2-widgets * @subpackage yii2-widget-colorinput - * @version 1.0.2 + * @version 1.0.3 */ namespace kartik\color; @@ -39,6 +39,11 @@ class ColorInput extends Html5Input */ public $showDefaultPalette = true; + /** + * @var string the name of the jQuery plugin + */ + public $pluginName = 'spectrum'; + /** * @var array default plugin options */ @@ -207,6 +212,6 @@ public function registerColorInput() $el = 'jQuery("#' . $this->options['id'] . '")'; $cont = 'jQuery("#' . $this->html5Container['id'] . '")'; $doneJs = "function(){{$input}.spectrum('set',{$el}.val());{$cont}.removeClass('kv-center-loading');}"; - $this->registerPlugin('spectrum', $input, $doneJs); + $this->registerPlugin($this->pluginName, $input, $doneJs); } } diff --git a/ColorInputAsset.php b/ColorInputAsset.php index 21d6d73..6d785c8 100644 --- a/ColorInputAsset.php +++ b/ColorInputAsset.php @@ -4,7 +4,7 @@ * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 * @package yii2-widgets * @subpackage yii2-widget-colorinput - * @version 1.0.2 + * @version 1.0.3 */ namespace kartik\color; diff --git a/README.md b/README.md index 7333384..e957c47 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ to the ```require``` section of your `composer.json` file. ## Latest Release -> NOTE: The latest version of the module is v1.0.2 released on 27-Dec-2015. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-colorinput/blob/master/CHANGE.md) for details. +> NOTE: The latest version of the module is v1.0.3 released on 10-Jan-2016. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-colorinput/blob/master/CHANGE.md) for details. ## Demo diff --git a/assets/css/spectrum-kv.css b/assets/css/spectrum-kv.css index 7f3aeca..4bc483a 100644 --- a/assets/css/spectrum-kv.css +++ b/assets/css/spectrum-kv.css @@ -1,6 +1,6 @@ /*! * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015 - * @version 1.0.2 + * @version 1.0.3 * * Krajee CSS Theme for Spectrum plugin used in `kartik-v/yii2-widget-colorinput` * diff --git a/assets/css/spectrum-kv.min.css b/assets/css/spectrum-kv.min.css index 8750294..284a0f9 100644 --- a/assets/css/spectrum-kv.min.css +++ b/assets/css/spectrum-kv.min.css @@ -1,6 +1,6 @@ /*! * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015 - * @version 1.0.2 + * @version 1.0.3 * * Krajee CSS Theme for Spectrum plugin used in `kartik-v/yii2-widget-colorinput` * diff --git a/assets/js/spectrum-kv.js b/assets/js/spectrum-kv.js index 1d7724a..bb1aef0 100644 --- a/assets/js/spectrum-kv.js +++ b/assets/js/spectrum-kv.js @@ -1,6 +1,6 @@ /*! * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015 - * @version 1.0.2 + * @version 1.0.3 * * Additional jQuery plugin enhancements for ColorInput Spectrum plugin by Krajee. * diff --git a/assets/js/spectrum-kv.min.js b/assets/js/spectrum-kv.min.js index 8e7a242..3603d18 100644 --- a/assets/js/spectrum-kv.min.js +++ b/assets/js/spectrum-kv.min.js @@ -1,10 +1,10 @@ /*! * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015 - * @version 1.0.2 + * @version 1.0.3 * * Additional jQuery plugin enhancements for ColorInput Spectrum plugin by Krajee. * * Author: Kartik Visweswaran * Copyright: 2015, Kartik Visweswaran, Krajee.com * For more Yii related demos visit http://demos.krajee.com - */!function(t){"use strict";t(document).on("ready",function(){t(".spectrum-group").on("change","input",function(u,n){var c=t(this),e=c.closest(".spectrum-group");c.is(".spectrum-source")?e.find(".spectrum-input").val(n.toString()):e.find(".spectrum-source").spectrum("set",c.val())})})}(window.jQuery); \ No newline at end of file + */!function(t){"use strict";t(document).on("ready",function(){t(".spectrum-group").on("change","input",function(u,n){var r=t(this),s=r.closest(".spectrum-group"),c=r.val();r.is(".spectrum-source")&&(s.find(".spectrum-input").val(n.toString()),c=n.toHslString()),s.find(".spectrum-source").spectrum("set",c)})})}(window.jQuery); \ No newline at end of file