
      }
    })
  }

  function clear_text(){
    let s = document.getElementById('format-status')
    s.innerHTML = ""
    let b = document.getElementById('btn_format')
    b.disabled = false
  }

  function partition_format(partition_name, format_cmd, current_fs){
    let list = ''
    format_cmd.split(",").forEach(e => {
      list = list + '<option value="'+e+'">'+e+'</option>'
    });
    document.getElementById('dialog_format') || document.body.insertAdjacentHTML("beforeend", '<div id="dialog_format">