Branch: Tag:

1998-11-28

1998-11-28 14:31:22 by Fredrik Noring <noring@nocrew.org>

Kinkies checkbox-patch which was applied in revsion 1.78 semi-reversed
due to the fact that it was incompatible with the standard usage of the
checkbox. The tag <var type=checkbox> now supports both `default=on'
and `default=1' (the previous syntax).

Rev: server/base_server/wizard.pike:1.80

1: - /* $Id: wizard.pike,v 1.79 1998/11/22 01:09:33 marcus Exp $ + /* $Id: wizard.pike,v 1.80 1998/11/28 14:31:22 noring Exp $    * name="Wizard generator";    * doc="This file generats all the nice wizards";    */
80:    string res;    m_delete(m,"default");    if (!m->value) m->value="on"; -  if (current && current != "0" && mkmultiset(current/"\0")[m->value]) +  if (current && current != "0" && +  (current == "1"||mkmultiset(current/"\0")[m->value]))    m->checked="checked";    res=make_tag("input",m);    m->type="hidden";