Disable Format button when Parity rebuild is running

This commit is contained in:
bergware
2017-10-07 10:24:40 +02:00
parent d2028d1d5a
commit 6c79b1be2f
+6 -1
View File
@@ -192,7 +192,12 @@ toggle_diskio(true);
echo "<span class='blue-text'>".my_disk($disk['name'])."</span> &bullet; ".my_id($disk['id'])." (".$disk['device'].")<br>";
?> </td><td><input type="submit" id="submit" name="cmdFormat" value="Format" disabled><input type="hidden" name="unmountable_mask" value="<?=$var['fsUnmountableMask']?>"></td>
<td><strong>Format</strong> will create a file system in all <strong>Unmountable</strong> disks, discarding all data currently on those disks.<br>
<input type="checkbox" name="confirmFormat" value="OFF" onclick="$('#submit').prop('disabled',!arrayOps.confirmFormat.checked)"><small>Yes I want to do this</small></td></tr>
<? if ($var['mdResync']==0):
?> <input type="checkbox" name="confirmFormat" value="OFF" onclick="$('#submit').prop('disabled',!arrayOps.confirmFormat.checked)"><small>Yes I want to do this</small>
<? else:
?> <small>Disabled -- Parity operation is running!</small>
<? endif;
?> </td></tr>
<? endif;
if (!$parity):
if (strstr($var['mdResyncAction'],"recon")):?>