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 ccdc944
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 8 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.
- (enh #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 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 ccdc944

Please sign in to comment.