set a minimum on config editor input text size, so if all fields are empty the text boxes are bigger than 1 characer long

This commit is contained in:
james 2007-12-14 15:46:01 +00:00
parent 25c6251c65
commit 4043df2e66

View File

@ -161,6 +161,8 @@ function config_editor($category, $year, $array_name, $self)
if($biggest>30) $size=30; if($biggest>30) $size=30;
else $size=$biggest+1; else $size=$biggest+1;
//make sure size is at minimum 8, this way if all fields are empty you dont end up with 1 character long text boxes
if($size<8) $size=8;
$line = 1; $line = 1;
foreach($varkeys as $k) { foreach($varkeys as $k) {