Prevent "hidden" submit form elements from being marked disabled.

This commit is contained in:
Tom Mortensen
2017-04-25 08:57:50 -07:00
parent a55738e606
commit 516fcdc53d
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -76,8 +76,7 @@ function device_desc(&$disk) {
function assignment(&$disk) {
global $var, $devs;
$out = "<form method='POST' name=\"{$disk['name']}Form\" action='/update.htm' target='progressFrame'>";
$out .= "<input type='hidden' name='csrf_token' value='{$var['csrf_token']}'>";
$out .= "<input type='hidden' name='changeDevice' value='Apply'>";
$out .= "<input type='hidden' name='changeDevice' value='apply'>";
$out .= "<select class=\"slot\" name=\"slotId.{$disk['idx']}\" onChange=\"{$disk['name']}Form.submit()\">";
$empty = ($disk['idSb']!='' ? 'no device' : 'unassigned');
if ($disk['id']!='') {