mirror of
https://github.com/unraid/webgui.git
synced 2026-05-12 15:20:29 -05:00
Minor code optimization
This commit is contained in:
@@ -40,11 +40,9 @@ var ask2 = <?=$confirm['down'] ? 'true' : 'false'?>;
|
||||
var ctrl = "<span class='status'><a style='cursor:pointer' class='tooltip_diskio' title='Toggle reads/writes display' onclick='toggle_diskio();return false'><i class='toggle fa'></i></a></span>";
|
||||
|
||||
function verify(form) {
|
||||
swal({title:'Found wrong encryption key',text:'Format unmountable disk(s) and ERASE ALL data?',type:'warning',showCancelButton:true},function(p){
|
||||
if (p) {
|
||||
$(form).append('<input type="hidden" name="cmdFormat" value="Format">');
|
||||
form.submit();
|
||||
}
|
||||
swal({title:'Found wrong encryption key',text:'Format unmountable disk(s) and ERASE ALL data?',type:'warning',showCancelButton:true},function(){
|
||||
$(form).append('<input type="hidden" name="cmdFormat" value="Format">');
|
||||
form.submit();
|
||||
});
|
||||
}
|
||||
function tab0() {
|
||||
|
||||
Reference in New Issue
Block a user