Get rid of additional encrypted device (re)format confirmation.

This commit is contained in:
Tom Mortensen
2017-09-19 11:15:38 -07:00
parent c1e4c62c74
commit 098388accb
-4
View File
@@ -156,11 +156,7 @@ toggle_diskio(true);
<? foreach ($disks as $disk) if (strpos($disk['fsStatus'],'Unmountable')!==false)
echo "<span class='blue-text'>".my_disk($disk['name'])."</span> &bullet; ".my_id($disk['id'])." (".$disk['device'].")<br>";
?> </td>
<? if ($var['fsNumWrongKey']>0):?>
<td><input type="button" id="cmdFormat" value="Format" disabled onclick="verify(this.form,'<?=$var['fsNumWrongKey']==$var['fsNumEncrypted']?'yes':'no'?>')">
<? else:?>
<td><input type="submit" id="cmdFormat" name="cmdFormat" value="Format" disabled>
<? endif;?>
<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="$('#cmdFormat').prop('disabled',!arrayOps.confirmFormat.checked)"><small>Yes I want to do this</small></td>