Branch: Tag:

2008-01-29

2008-01-29 10:53:51 by Mathias Södermark <m.sodermark@gmail.com>

Added type="text" as output arg for <vinput type="int" /> and <vinput type="float" />

Rev: server/etc/modules/Variable.pmod/module.pmod:1.106

1: - // $Id: module.pmod,v 1.105 2007/10/17 11:51:20 mathias Exp $ + // $Id: module.pmod,v 1.106 2008/01/29 10:53:51 mathias Exp $      #include <module.h>   #include <roxen.h>
756:    else    value = query()==""? "" : _format( (float)query() );    +  additional_args = additional_args || ([]); +  additional_args->type="text"; +     return input(path(), value, size, additional_args);    }   
853:    if( _min != no_limit && _max != no_limit )    size = max( strlen((string)_max), strlen((string)_min) )+2;    string value = (query() == 0 && _is_empty)? "" : (string)query(); +  +  additional_args = additional_args || ([]); +  additional_args->type="text"; +     return input(path(), value, size, additional_args);    }