[richfaces-svn-commits] JBoss Rich Faces SVN: r13566 - trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Apr 14 10:11:42 EDT 2009


Author: pyaschenko
Date: 2009-04-14 10:11:42 -0400 (Tue, 14 Apr 2009)
New Revision: 13566

Modified:
   trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js
Log:
https://jira.jboss.org/jira/browse/RF-6781

Modified: trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js
===================================================================
--- trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js	2009-04-14 14:09:46 UTC (rev 13565)
+++ trunk/ui/colorPicker/src/main/resources/org/richfaces/renderkit/html/scripts/ui.colorpicker.js	2009-04-14 14:11:42 UTC (rev 13566)
@@ -221,9 +221,8 @@
 	},
 	
 	_setSelector: function(color) {
-		var rgb = color.toRGB();
 		var hsb = color.toHSB();
-		this.selector.css('backgroundColor', '#' + this._RGBToHex(rgb));
+		this.selector.css('backgroundColor', '#' + this._RGBToHex(new HSBColor([hsb.h,100,100]).toRGB()));
 		this.selectorIndic.css({
 			left: parseInt(150 * hsb.s/100, 10),
 			top: parseInt(150 * (100-hsb.b)/100, 10)




More information about the richfaces-svn-commits mailing list