mirror of
https://github.com/unraid/webgui.git
synced 2026-01-21 17:10:15 -06:00
Prevent "hidden" submit form elements from being marked disabled.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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']!='') {
|
||||
|
||||
Reference in New Issue
Block a user