Closed GoogleCodeExporter closed 8 years ago
The problem is at https://code.google.com/p/svg-edit/source/detail?r=1802 at
the "Attempt to upgrade the jPicker plug-in to 1.1.5". Previous versions work
ok.
Original comment by aldoluis...@gmail.com
on 27 Nov 2012 at 6:55
[deleted comment]
Just an horrible hack, but a workaround is to add "return hex;" at ValidateHex
function in jgraduate/jpicker.min.js
validateHex:
function(hex)
{
return hex;
hex = hex.toLowerCase().replace(/[^a-f0-9]/g, '');
if (hex.length > 8) hex = hex.substring(0, 8);
return hex;
},
Original comment by aldoluis...@gmail.com
on 28 Nov 2012 at 1:44
Hi,
Interesting. So the jQuery upgrade breaks the latest jPicker. I'll give this a
closer look when time permits. We'll probably patch it and report the bug to
the project.
Thanks for poking around!
Original comment by asyazwan
on 29 Nov 2012 at 3:10
It's a little nicer hack:
validateHex:
function(h){
if(typeof h=="object"){
h=h.ahex;
}
h=h.toLowerCase().replace(/[^a-f0-9]/g,"");
if(h.length>8){
h=h.substring(0,8)
}
return h
},
Original comment by hajdua...@gmail.com
on 1 Dec 2012 at 12:32
Fixed in r2225
Original comment by duopi...@gmail.com
on 5 Dec 2012 at 12:09
Issue 1002 has been merged into this issue.
Original comment by duopi...@gmail.com
on 5 Dec 2012 at 1:23
Original issue reported on code.google.com by
asyazwan
on 26 Mar 2012 at 1:28