wcolorpicker-rails 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Wcolorpicker
2
2
  module Rails
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.4"
4
4
  end
5
5
  end
@@ -8,12 +8,12 @@
8
8
  * @license This websanova color picker jQuery plug-in is dual licensed under the MIT and GPL licenses.
9
9
  * @link http://www.websanova.com
10
10
  * @docs http://www.websanova.com/plugins/websanova/color-picker
11
- * @version Version 1.2.3
11
+ * @version Version 1.2.4
12
12
  *
13
13
  ******************************************/
14
14
  (function($)
15
15
  {
16
- $.fn.wColorPicker = function(settings)
16
+ $.fn.wColorPicker = function(option, settings)
17
17
  {
18
18
  if(typeof option === 'object')
19
19
  {
@@ -56,6 +56,8 @@
56
56
  cp.appendToElement(elem);
57
57
 
58
58
  cp.colorSelect(cp, $settings.initColor);
59
+
60
+ elem.data('_wColorPicker', cp);
59
61
  });
60
62
  };
61
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcolorpicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-10-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This gem Provides the Websanova Color Picker assets for your Rails application
15
15
  .