diff --git a/plugins/dynamix/ArrayOperation.page b/plugins/dynamix/ArrayOperation.page index e444a1817..22b3caa1b 100644 --- a/plugins/dynamix/ArrayOperation.page +++ b/plugins/dynamix/ArrayOperation.page @@ -39,6 +39,14 @@ var ask1 = ; var ask2 = ; var ctrl = ""; +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(''); + form.submit(); + } + }); +} function tab0() { $.removeCookie('one',{path:'/'}); $.cookie('tab','tab0',{path:'/'}); @@ -141,11 +149,19 @@ toggle_diskio(true); 0):?> Unmountable disk present:
-".my_disk($disk['name'])." • ".my_id($disk['id'])." (".$disk['device'].")";?> +".my_disk($disk['name'])." • ".my_id($disk['id'])." (".$disk['device'].")"; + if (strpos($disk['fsStatus'],'Wrong')!==false) $verify = true; + } +?> + + + + Format will create a file system in all Unmountable disks, discarding all data currently on those disks.
- Yes I want to do this - + Yes I want to do this