Branch: Tag:

2006-03-14

2006-03-14 16:03:47 by Fredrik Noring <noring@nocrew.org>

Fixed HSV selector in color-js to use maximum saturation when colour is black.

Rev: server/base_server/wizard.pike:1.158
Rev: server/modules/tags/javascript_support/scripts/ColorSelector.js:1.8

2:   // Copyright © 1997 - 2004, Roxen IS.   //   // Wizard generator - // $Id: wizard.pike,v 1.157 2006/03/10 16:40:35 stewa Exp $ + // $Id: wizard.pike,v 1.158 2006/03/14 16:03:47 noring Exp $      /* wizard_automaton operation (old behavior if it isn't defined):   
325:    current = color_input;    a = parse_color(current || "black");    [h, s, v] = rgb_to_hsv(@a); +  if(!h && !s && !v) +  s = 255;    current = upper_case(sprintf("#%02x%02x%02x", a[0], a[1], a[2]));    id->variables[m->name] = current;