jesuspreethi / jpicker

Automatically exported from code.google.com/p/jpicker
0 stars 0 forks source link

initializing with string defaults to almost transparent alpha value #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This code:

var n=$.jPicker.List.length
$('body').append('<span id="colortest"></span>')
$('#colortest').jPicker({color: {active: "#345678"}})
$.jPicker.List[n].color.active.val('ahex')

The last statement gives the color as:

"34567f0f"

However, the color seems like it should be

"34567fff"

(i.e., no transparency) since we didn't enable alphaSupport.

This is using version 1.1.6 on Firefox 4 and Chrome on OSX 10.6.

Original issue reported on code.google.com by jason-go...@creativetrax.com on 7 Apr 2011 at 4:55