forked from science-ation/science-ation
Dont disable the type & stock so the default values (selectedIndex=0) still gets POSTED, even though the dropdowns are not displayed.
This commit is contained in:
parent
a352886ca6
commit
312808bc8f
@ -290,8 +290,8 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
document.addreport.type.disabled=true;
|
||||
document.addreport.stock.disabled=true;
|
||||
// document.addreport.type.disabled=true;
|
||||
// document.addreport.stock.disabled=true;
|
||||
document.addreport.type.style.display='none';
|
||||
document.addreport.stock.style.display='none';
|
||||
document.getElementById('reporttypecustom').style.display='';
|
||||
@ -352,7 +352,7 @@
|
||||
echo "<tr><td>{$o['desc']}:</td>";
|
||||
echo "<td><select name=\"$ok\" id=\"$ok\">";
|
||||
foreach($o['values'] as $k=>$v) {
|
||||
echo "<option value=\"$k\">$v</option>";
|
||||
echo "<option value=\"$k\">$v</option>\n";
|
||||
}
|
||||
echo "</select><span id=\"report{$ok}custom\" style=\"display: none;\">".i18n("Custom")."</span></td></tr>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user