Skip to content

Commit

Permalink
Updates to release v1.0.3 fixes #20 & fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jan 10, 2016
1 parent 5de9d36 commit c7d7b52
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 7 additions & 2 deletions ColorInput.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-colorinput
* @version 1.0.2
* @version 1.0.3
*/

namespace kartik\color;
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion ColorInputAsset.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-colorinput
* @version 1.0.2
* @version 1.0.3
*/

namespace kartik\color;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion assets/css/spectrum-kv.css
Original file line number Diff line number Diff line change
@@ -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`
*
Expand Down
2 changes: 1 addition & 1 deletion assets/css/spectrum-kv.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/js/spectrum-kv.js
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions assets/js/spectrum-kv.min.js
Original file line number Diff line number Diff line change
@@ -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);
*/!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);

0 comments on commit c7d7b52

Please sign in to comment.