forked from science-ation/science-ation
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:
parent
25c6251c65
commit
4043df2e66
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user