Sha256: 5648fc2ce43040e41f2d53c5cbede331ee37dff96f7f05b7a654f25d9ff7722c
Contents?: true
Size: 603 Bytes
Versions: 11
Compression:
Stored size: 603 Bytes
Contents
(function($){ $(document).ready(function(){ $('.colourpicker:not(.colourpicker-attached)').live('focus',function(){ var $this = $(this); $this.ColorPicker({ onChange: function(hsb, hex, rgb){ $this.val('#'+hex); }, onSubmit: function(hsb, hex, rgb, el) { $(el).val(hex); $(el).ColorPickerHide(); }, onBeforeShow: function() { $(this).ColorPickerSetColor(this.value); } }).bind('keyup', function(){ $(this).ColorPickerSetColor(this.value); }).addClass('colourpicker-attached'); }); }); })(jQuery);
Version data entries
11 entries across 11 versions & 1 rubygems