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

View File

@@ -68,7 +68,7 @@ effect of making it ***impossible*** to rebuild an existing failed drive - you h
<hr>
<form name="newConfig" method="POST" action="/update.htm" target="progressFrame">
<input type="hidden" name="cmdInit" value=" Apply ">
<input type="hidden" name="cmdInit" value="apply">
<span class="indent">Retain current configuration:</span>
<select id="s1" name="preset" size="1" multiple="multiple" style="display:none">
<option value=''>All</option>

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']!='') {