[dw-free] color picker for journal colors displays wrong color
[commit: http://hg.dwscoalition.org/dw-free/rev/eef334d67be8]
http://bugs.dwscoalition.org/show_bug.cgi?id=1263
Fix the JavaScript color picker initialization. (Props to both
av8rmike and
tell_me for their
investigation!)
Patch by
av8rmike.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1263
Fix the JavaScript color picker initialization. (Props to both
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
investigation!)
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/js/colorpicker.js
-------------------------------------------------------------------------------- diff -r 1372d04b4ce0 -r eef334d67be8 htdocs/js/colorpicker.js --- a/htdocs/js/colorpicker.js Sun Jun 28 01:37:28 2009 +0000 +++ b/htdocs/js/colorpicker.js Sun Jun 28 01:47:04 2009 +0000 @@ -208,7 +208,7 @@ function _RGBtoHSV(p,dat) { for (var i = 1; i <= 3; i++) { if (rgb[i] > max) { max = rgb[i]; - hi = 1; + hi = i; } if (rgb[i] < min) { min = rgb[i]; --------------------------------------------------------------------------------