Modify the partition table?%>")) {
            let p_table = btn_p_table.options[btn_p_table_index].value
            XHR.get('<%=luci.dispatcher.build_url("admin/system/diskman/mk_p_table")%>', { dev: val_name, p_table: p_table }, (x, res) => {
              if (res.code == 0) {
                location.reload();
              }
            }
            );
          }
          else {
          }
        }
      }
    };
    init_pt_btn();
    // handle smartinfo
    const url = location.href.split('/')
 