mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-06-29 06:28:13 +00:00
VentoyPlugson Update
- Add missing option (VTOY_WIN_UEFI_RES_LOCK) - Add new option (VTOY_SECURE_BOOT_POLICY) - Remove deprecated option (VTOY_LINUX_REMOUNT)
This commit is contained in:
@@ -1 +1 @@
|
||||
20231014 18:52:12
|
||||
20260624 16:39:09
|
||||
@@ -1 +1 @@
|
||||
ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDit_ITja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsr_RSta_INtr_TRuk_UAzh_CNzh_TW
|
||||
ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfa_IRfr_FRhi_HIhr_HRhu_HUid_IDit_ITja_JPka_GEko_KRlg_UGpl_PLpt_BRpt_PTru_RUsl_SIsr_RSta_INtr_TRuk_UAvi_VNzh_CNzh_TW
|
||||
@@ -2,10 +2,10 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!-- HTTP 1.1 -->
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<!-- HTTP 1.0 -->
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<!-- HTTP 1.1 -->
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<!-- HTTP 1.0 -->
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<title>Ventoy Plugson</title>
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
@@ -22,7 +22,7 @@
|
||||
<link rel="stylesheet" href="static/AdminLTE/css/skins/skin-blue.min.css">
|
||||
<link rel="stylesheet" href="static/datatables/dataTables.bootstrap.css">
|
||||
<link rel="stylesheet" href="static/css/vtoy.css">
|
||||
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
@@ -39,6 +39,9 @@
|
||||
.treeview-menu a {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.label-rt {
|
||||
margin-left: 20px !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -48,13 +51,13 @@
|
||||
<header class="main-header" style="position: fixed; right: 0; left: 0;">
|
||||
<!-- Logo -->
|
||||
<a href="." class="logo">
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<!-- logo for regular state and mobile devices -->
|
||||
<span class="logo-lg" > <img src="/static/img/logo_32.png" > Ventoy Plugson</span>
|
||||
</a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top" role="navigation">
|
||||
<!-- Navbar Right Menu -->
|
||||
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown user user-menu">
|
||||
@@ -62,22 +65,22 @@
|
||||
<span class="fa fa-file-code-o"></span>
|
||||
<span id="id_span_preview" class="hidden-xs">Preview</span>
|
||||
<span class="hidden-xs"> </span>
|
||||
</a>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="javascript:void(0)" id="id_a_language">
|
||||
<span class="fa fa-language"></span>
|
||||
<span id="id_span_language" class="hidden-xs">English</span>
|
||||
<span class="hidden-xs"> </span>
|
||||
</a>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="dropdown user user-menu">
|
||||
<a id="id_top_donation" href="#plugson_donation" data-href="#plugson_donation">
|
||||
<span class="fa fa-paypal"></span>
|
||||
<span id="id_span_donation" class="hidden-xs">捐助</span>
|
||||
</a>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
@@ -85,12 +88,12 @@
|
||||
<a href="https://www.ventoy.net" target="_blank" >
|
||||
<span class="fa fa-link"></span>
|
||||
<span class="hidden-xs">Ventoy</span>
|
||||
</a>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
@@ -108,7 +111,7 @@
|
||||
<a href="#plugson_control" data-href="#plugson_control">
|
||||
<i class="fa fa-wrench"></i> <span id="id_span_menu_control">全局控制插件</span>
|
||||
</a>
|
||||
</li>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#plugson_theme" data-href="#plugson_theme">
|
||||
<i class="fa fa-file-image-o"></i> <span id="id_span_menu_theme">主题插件</span>
|
||||
@@ -154,13 +157,13 @@
|
||||
<i class="glyphicon glyphicon-lock"></i> <span id="id_span_menu_password">密码插件</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="#plugson_image_list" data-href="#plugson_image_list">
|
||||
<i class="fa fa-list-alt"></i> <span id="id_span_menu_imagelist">文件列表插件</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="#plugson_auto_memdisk" data-href="#plugson_auto_memdisk">
|
||||
<i class="fa fa-floppy-o"></i> <span id="id_span_menu_auto_memdisk">自动 Memdisk 插件</span>
|
||||
@@ -196,13 +199,13 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="PwdPath" name="PwdPath" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_pwdfile_cn">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_pwdfile_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_pwdfile_tip2" style="color:red;"></span>
|
||||
</div>
|
||||
@@ -210,7 +213,7 @@
|
||||
<div class="form-group" id="id_note_pwdfile_en">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_pwdfile_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_pwdfile_tip2" style="color:red;"></span><br/>
|
||||
</div>
|
||||
@@ -284,22 +287,22 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="FilePath" name="FilePath" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_setfile_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_filepath_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_filepath_tip2" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_setfile_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_filepath_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_filepath_tip2" style="color:red;"></span><br/>
|
||||
</div>
|
||||
@@ -317,18 +320,18 @@
|
||||
<div class="form-group" id="id_note_tip3_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_filepath_tip3" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_tip3_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_filepath_tip3" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="SetFileForm_lang_3" type="submit" class="btn btn-primary btn-flat">确定</button>
|
||||
@@ -357,22 +360,22 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="FileFilePath1" name="FileFilePath1" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_filefile_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_filefile_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_filefile_tip2" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_filefile_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_filefile_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_filefile_tip2" style="color:red;"></span><br/>
|
||||
</div>
|
||||
@@ -390,18 +393,18 @@
|
||||
<div class="form-group" id="id_note_filefile_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_filefile_tip3" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_filefile_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_filefile_tip3" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="SetFileFileForm_ok" type="submit" class="btn btn-primary btn-flat">确定</button>
|
||||
@@ -430,21 +433,21 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="DirFilePath1" name="DirFilePath1" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_dirfile_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入对应目录在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入对应目录在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_dirfile_tip1" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_dirfile_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute directory path. For example:<br/>
|
||||
Please input the full absolute directory path. For example:<br/>
|
||||
<span id="id_span_dirfile_tip1" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -461,18 +464,18 @@
|
||||
<div class="form-group" id="id_note_dirfile_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_dirfile_tip2" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_dirfile_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_dirfile_tip2" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="SetDirFileForm_ok" type="submit" class="btn btn-primary btn-flat">确定</button>
|
||||
@@ -502,22 +505,22 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="IsoPath" name="IsoPath" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_conf_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_conf_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_conf_tip2" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_conf_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_conf_tip1" style="color:red;"></span><br/>
|
||||
<span id="id_span_conf_tip2" style="color:red;"></span>
|
||||
</div>
|
||||
@@ -529,7 +532,7 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="OrgPath" name="OrgPath" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_conf_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
@@ -552,19 +555,19 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="NewPath" name="NewPath" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_conf_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
新文件在当前系统中的全路径(注意是完整的绝对路径)例如:<br/>
|
||||
新文件在当前系统中的全路径(注意是完整的绝对路径)例如:<br/>
|
||||
<span id="id_span_conf_tip3" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_conf_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_conf_tip3" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -579,7 +582,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="modal" id="SetDirModal">
|
||||
<div class="modal-dialog" style="width: 800px;">
|
||||
<div class="modal-content">
|
||||
@@ -597,9 +600,9 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="DirPath" name="DirPath" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_setfile_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
@@ -607,7 +610,7 @@
|
||||
<span id="id_span_dirpath_tip" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_note_setfile_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
@@ -615,27 +618,27 @@
|
||||
<span id="id_span_dirpath_tip" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" id="id_div_dir_extra">
|
||||
<div class="col-sm-2">
|
||||
<label id="SetDirForm_extra" class="control-label">xx</label>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="DirExtra" name="DirExtra" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="id_note_tip3_cn">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
请输入对应文件在当前系统中的全路径(注意是完整的绝对路径),例如:<br/>
|
||||
<span id="id_span_dirpath_tip3" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="id_note_tip3_en">
|
||||
<div class="col-sm-2"></div>
|
||||
<div class="col-sm-9">
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
Please input the full absolute file path. For example:<br/>
|
||||
<span id="id_span_dirpath_tip3" style="color:red;"></span><br/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -676,7 +679,7 @@
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" id="SetKeyValue" name="SetKeyValue" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@@ -718,12 +721,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="modal" id="JsonPreviewModal">
|
||||
<div class="modal-dialog" style="width: 80%;">
|
||||
<div class="modal-content">
|
||||
<form id="JsonPeviewForm" class="form-horizontal">
|
||||
<form id="JsonPeviewForm" class="form-horizontal">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
@@ -732,7 +735,7 @@
|
||||
<b id="JsonPreviewForm_lang_1">JSON</b>
|
||||
<button type="button" id="id_btn_json_copy" class="btn btn-primary"><span class="fa fa-copy"> </span><span id="id_span_copy">Copy</span></button>
|
||||
</h4>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<textarea id="pre_json_preview" class="form-control" rows="30" style="font-family:Menlo,Monaco,Consolas,'Courier New',monospace" spellcheck="false"></textarea>
|
||||
@@ -742,7 +745,7 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -757,7 +760,7 @@
|
||||
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b id="plugson_build_date">20231014 18:52:12</b>
|
||||
<b id="plugson_build_date">20260624 16:39:09</b>
|
||||
</div>
|
||||
<strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>
|
||||
</footer>
|
||||
@@ -771,16 +774,16 @@
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- jQuery 2.1.4 -->
|
||||
<script src="/static/js/jQuery-2.1.4.min.js"></script>
|
||||
<!-- jquery validate -->
|
||||
<script src="/static/js/jquery.validate.min.js"></script>
|
||||
<script src="/static/js/jquery.validate.vtoymethods.js?v=253"></script>
|
||||
<script src="/static/js/jquery.validate.min.js"></script>
|
||||
<script src="/static/js/jquery.validate.vtoymethods.js?v=317"></script>
|
||||
|
||||
<script src="/static/js/jquery.vtoy.alert.js?v=253"></script>
|
||||
<script src="/static/js/vtoy.js?v=253"></script>
|
||||
<script src="/static/js/jquery.vtoy.alert.js?v=317"></script>
|
||||
<script src="/static/js/vtoy.js?v=317"></script>
|
||||
<script src="/static/js/md5.min.js"></script>
|
||||
|
||||
<!-- Bootstrap 3.3.5 -->
|
||||
@@ -788,10 +791,10 @@
|
||||
<!-- AdminLTE App -->
|
||||
<script src="/static/AdminLTE/js/app.min.js"></script>
|
||||
<script src="/static/AdminLTE/plugins/chartjs/Chart.min.js"></script>
|
||||
|
||||
|
||||
<script src="/static/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="/static/datatables/dataTables.bootstrap.min.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function VtoyJsonCopyClick() {
|
||||
@@ -818,15 +821,15 @@
|
||||
}, function(data) {
|
||||
$('#JsonPeviewForm #JsonPreviewForm_lang_1').text(g_vtoy_cur_language.STR_JSON_PREVIEW);
|
||||
$('#JsonPeviewForm #PrewForm_lang_2').text(g_vtoy_cur_language.STR_BTN_OK);
|
||||
|
||||
$('#pre_json_preview').text(VtoyUTF16HexToAscii(data.json));
|
||||
|
||||
$('#pre_json_preview').text(VtoyUTF16HexToAscii(data.json));
|
||||
$("#JsonPreviewModal").modal();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function VtoyLanguageClick() {
|
||||
var defaultPage = window.location.hash;
|
||||
|
||||
|
||||
if (g_current_language === 'cn') {
|
||||
g_current_language = 'en';
|
||||
} else {
|
||||
@@ -851,14 +854,14 @@
|
||||
m_syntax_error = data.syntax_error;
|
||||
m_invalid_config = data.invalid_config;
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('#id_btn_json_copy').click(VtoyJsonCopyClick);
|
||||
$('#id_a_preview').click(VtoyPreviewClick);
|
||||
$('#id_a_language').click(VtoyLanguageClick);
|
||||
|
||||
|
||||
$("#plugson-menu a").click(function() {
|
||||
var href = $(this).data("href");
|
||||
if (href && href !== '#') {
|
||||
@@ -872,7 +875,7 @@
|
||||
loadContent(href.substring(1));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
(function openDefaultPage() {
|
||||
var defaultPage = window.location.hash;
|
||||
if (defaultPage) {
|
||||
@@ -881,14 +884,14 @@
|
||||
defaultPage = defaultPage || 'plugson_main';
|
||||
loadContent(defaultPage);
|
||||
})();
|
||||
|
||||
|
||||
|
||||
(function ventoy_handshake() {
|
||||
callVtoyCatchErr({
|
||||
method : 'handshake'
|
||||
},
|
||||
function(data) {
|
||||
|
||||
},
|
||||
function(data) {
|
||||
|
||||
if (m_syntax_error === 1 && typeof(Modal) === 'object') {
|
||||
var title = g_current_language == 'en' ? g_vtoy_cur_language_en.STR_INFO : g_vtoy_cur_language_cn.STR_INFO;
|
||||
var msg = g_current_language == 'en' ? g_vtoy_cur_language_en.STR_SYNTAX_ERROR_TIP : g_vtoy_cur_language_cn.STR_SYNTAX_ERROR_TIP;
|
||||
@@ -896,7 +899,7 @@
|
||||
});
|
||||
m_syntax_error = 0;
|
||||
}
|
||||
|
||||
|
||||
if (m_invalid_config === 1 && typeof(Modal) === 'object') {
|
||||
var title = g_current_language == 'en' ? g_vtoy_cur_language_en.STR_INFO : g_vtoy_cur_language_cn.STR_INFO;
|
||||
var msg = g_current_language == 'en' ? g_vtoy_cur_language_en.STR_INVALID_CONFIG_TIP : g_vtoy_cur_language_cn.STR_INVALID_CONFIG_TIP;
|
||||
@@ -928,7 +931,7 @@
|
||||
}
|
||||
else if(undefined === errorThrown.length)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if('' == errorThrown.trim())
|
||||
{
|
||||
|
||||
@@ -1 +1 @@
|
||||
ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDit_ITja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsl_sisr_RSta_INtr_TRuk_UAzh_CNzh_TW
|
||||
ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfa_IRfr_FRhi_HIhr_HRhu_HUid_IDit_ITja_JPka_GEko_KRlg_UGpl_PLpt_BRpt_PTru_RUsl_SIsr_RSta_INtr_TRuk_UAvi_VNzh_CNzh_TW
|
||||
@@ -4,7 +4,7 @@
|
||||
<i class="fa fa-wrench"> </i>
|
||||
<h1 class="box-title" style="font-weight:bold;" id="id_h1_page_title">全局控制插件</h1>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-2" style="padding-top:2px;">
|
||||
<button id="id_btn_collapse" class="btn btn-sm btn-primary"><i style="font-size: 14px;" class="fa fa-minus"></i></button>
|
||||
<button id="id_btn_expand" class="btn btn-sm btn-primary"><i style="font-size: 14px;" class="fa fa-plus"></i></button>
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<legend></legend>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs" id="id_tab_control">
|
||||
@@ -47,7 +47,7 @@
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<select id="id_ctrl_sel_menu_lang" name="name_ctrl_sel_menu_lang" class="form-control">
|
||||
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -60,7 +60,7 @@
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col">Option Description</td>
|
||||
<td>
|
||||
Ventoy menu language. Default is "en_US",
|
||||
Ventoy menu language. Default is "en_US",
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -68,7 +68,7 @@
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_SEARCH_ROOT
|
||||
@@ -78,7 +78,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -108,8 +108,8 @@
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col">Option Description</td>
|
||||
<td>
|
||||
The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB.
|
||||
In this case, you can put all the image files in one subdirectory and use this to specify the search path.
|
||||
The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB.
|
||||
In this case, you can put all the image files in one subdirectory and use this to specify the search path.
|
||||
After that Ventoy will only search this directory and its subdirectories for image files.<br/>
|
||||
Note: the path must not be the mountpoint of the first partition, but a subdirectory.
|
||||
</td>
|
||||
@@ -117,7 +117,80 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SECURE_BOOT_POLICY
|
||||
<span id="id_span_desc_cn"> —— UEFI 安全启动策略</span></h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_uefi_sb_policy_radio0" name="id_ctrl_uefi_sb_policy_radio" data-type="0" value="0"/>
|
||||
<span id="id_span_desc_cn">绕过安全启动检查</span>
|
||||
<span id="id_span_desc_en">ByPass Secure Boot</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_uefi_sb_policy_radio1" name="id_ctrl_uefi_sb_policy_radio" data-type="1" value="1"/>
|
||||
<span id="id_span_desc_cn">遵循UEFI安全启动检查规则</span>
|
||||
<span id="id_span_desc_en">Follow UEFI Secure Boot Check</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_WIN_UEFI_RES_LOCK
|
||||
<span id="id_span_desc_cn"> —— UEFI 分辨率锁定</span></h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_uefi_res_lock_radio0" name="id_ctrl_uefi_res_lock_radio" data-type="0" value="0"/>
|
||||
<span id="id_span_desc_cn">不锁定</span>
|
||||
<span id="id_span_desc_en">None</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_uefi_res_lock_radio1" name="id_ctrl_uefi_res_lock_radio" data-type="1" value="1"/>
|
||||
<span id="id_span_desc_cn">锁定最高分辨率</span>
|
||||
<span id="id_span_desc_en">Highest</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_uefi_res_lock_radio2" name="id_ctrl_uefi_res_lock_radio" data-type="1" value="2"/>
|
||||
<span id="id_span_desc_cn">锁定 1024x768</span>
|
||||
<span id="id_span_desc_en">Fixed 1024x768</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_uefi_res_lock_radio3" name="id_ctrl_uefi_res_lock_radio" data-type="1" value="3"/>
|
||||
<span id="id_span_desc_cn">锁定 1024x768及以上</span>
|
||||
<span id="id_span_desc_en">At least 1024x768</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
@@ -133,18 +206,20 @@
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_bypass_win11_radio0" name="id_ctrl_bypass_win11_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_bypass_win11_radio1" name="id_ctrl_bypass_win11_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
|
||||
<input type="radio" id="id_ctrl_bypass_win11_radio0" name="id_ctrl_bypass_win11_radio" data-type="0" value="0"/>
|
||||
<span id="id_span_desc_cn">不绕过Windows 11安装时的硬件检查</span>
|
||||
<span id="id_span_desc_en">Do not bypass Windows 11 hardware check</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_bypass_win11_radio1" name="id_ctrl_bypass_win11_radio" data-type="1" value="1"/>
|
||||
<span id="id_span_desc_cn">绕过Windows 11安装时的硬件检查</span>
|
||||
<span id="id_span_desc_en">Bypass Windows 11 hardware check</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不绕过Windows 11安装时的硬件检查。<br/>
|
||||
<code style="font-weight: bold;">1</code> 绕过Windows 11安装时的硬件检查。<br/><br/>
|
||||
该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。
|
||||
当设置为1时,Ventoy 会在安装时创建以下几个注册表项用来绕过 Windows 11 安装程序的硬件检查。<br/>
|
||||
<code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck</code><br/>
|
||||
@@ -156,8 +231,6 @@
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> Do not bypass Windows 11 hardware check.<br/>
|
||||
<code style="font-weight: bold;">1</code> Bypass Windows 11 hardware check. <br/><br/>
|
||||
This option only avaliable for standard Windows 11 ISO files.
|
||||
When set to 1, Ventoy will create the following registries to bypass Windows 11 hardware check when install. <br/>
|
||||
<code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck</code><br/>
|
||||
@@ -170,9 +243,9 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_WIN11_BYPASS_NRO
|
||||
@@ -187,28 +260,28 @@
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_bypass_nro_radio0" name="id_ctrl_bypass_nro_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_bypass_nro_radio1" name="id_ctrl_bypass_nro_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
|
||||
<input type="radio" id="id_ctrl_bypass_nro_radio0" name="id_ctrl_bypass_nro_radio" data-type="0" value="0"/>
|
||||
<span id="id_span_desc_cn">不绕过Windows 11安装时的在线账户需求</span>
|
||||
<span id="id_span_desc_en">Do not bypass Windows 11 online account requirement</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_bypass_nro_radio1" name="id_ctrl_bypass_nro_radio" data-type="1" value="1"/>
|
||||
<span id="id_span_desc_cn">绕过Windows 11安装时的在线账户需求</span>
|
||||
<span id="id_span_desc_en">Bypass Windows 11 online account requirement</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不绕过Windows 11安装时的在线账户需求。<br/>
|
||||
<code style="font-weight: bold;">1</code> 绕过Windows 11安装时的在线账户需求。<br/><br/>
|
||||
该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。
|
||||
当设置为1时,Ventoy 会在安装时创建以下注册表项用来绕过 Windows 11 安装时对在线账户的需求。<br/>
|
||||
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO</code><br/>
|
||||
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO</code><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> Do not bypass Windows 11 online account requirement.<br/>
|
||||
<code style="font-weight: bold;">1</code> Bypass Windows 11 online account requirement. <br/><br/>
|
||||
This option only avaliable for standard Windows 11 ISO files.
|
||||
When set to 1, Ventoy will create the following registry to bypass Windows 11 online account requirement when install. <br/>
|
||||
<code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE\BypassNRO</code>
|
||||
@@ -217,9 +290,9 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -237,25 +310,15 @@
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_radio_menu_mode0" name="id_ctrl_radio_menu_mode" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_radio_menu_mode1" name="id_ctrl_radio_menu_mode" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
|
||||
<input type="radio" id="id_ctrl_radio_menu_mode0" name="id_ctrl_radio_menu_mode" data-type="0" value="0">
|
||||
<span id="id_span_desc_cn">文件列表模式</span>
|
||||
<span id="id_span_desc_en">ListView Mode</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_radio_menu_mode1" name="id_ctrl_radio_menu_mode" data-type="1" value="1">
|
||||
<span id="id_span_desc_cn">目录树模式</span>
|
||||
<span id="id_span_desc_en">TreeView Mode</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>启动菜单默认显示模式,
|
||||
<code style="font-weight: bold;">0</code> 列表模式
|
||||
<code style="font-weight: bold;">1</code> TreeView(目录树) 模式</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col">Option Description</td>
|
||||
<td>
|
||||
Default boot menu display mode.
|
||||
<code style="font-weight: bold;">0</code> ListView Mode  
|
||||
<code style="font-weight: bold;">1</code> TreeView Mode
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -267,7 +330,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MENU_TIMEOUT
|
||||
@@ -283,7 +346,7 @@
|
||||
<td>
|
||||
<div class="col-sm-9" style="padding-left:0px;">
|
||||
<input type="text" class="form-control" id="id_ctrl_text_timeout" name="name_ctrl_text_timeout"/>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
@@ -303,9 +366,9 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_IMAGE
|
||||
@@ -352,14 +415,14 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MAX_SEARCH_LEVEL
|
||||
@@ -369,7 +432,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -392,7 +455,7 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col">选项说明</td>
|
||||
<td>
|
||||
最大搜索子目录的层数,取值为:<code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
|
||||
最大搜索子目录的层数,取值为:<code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
|
||||
默认值为:<code>max</code><br/>
|
||||
默认Ventoy会递归搜索磁盘上的所有目录和子目录,不管目录结构有多深都会搜索到底。你可以通过这个参数来控制搜索时的路径深度。<br/><br/>
|
||||
<code>max</code> : 最大层数,也就是搜索所有子目录的意思。这也是 Ventoy 的默认值。<br/>
|
||||
@@ -407,7 +470,7 @@
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col">Option Description</td>
|
||||
<td>
|
||||
Max subdirectory level when search for image files. It's value can be: <code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
|
||||
Max subdirectory level when search for image files. It's value can be: <code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
|
||||
default is : <code>max</code><br/>
|
||||
By default, Ventoy will search all the directories and sub directories recursively no matter how deep the directory level is.<br/>
|
||||
You can use this parameter to set a max-depth for the search path.<br/><br/>
|
||||
@@ -423,57 +486,6 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_LINUX_REMOUNT
|
||||
<span id="id_span_desc_cn"> —— Linux 启动后继续访问ISO文件所在分区</span></h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_linux_remount_radio0" name="id_ctrl_linux_remount_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_linux_remount_radio1" name="id_ctrl_linux_remount_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> Linux启动后不需要继续访问ISO文件所在的分区。<br/>
|
||||
<code style="font-weight: bold;">1</code> Linux启动后需要继续访问ISO文件所在的分区。<br/><br/>
|
||||
该选项只对 Linux 系统镜像有效。<br/>
|
||||
默认情况下,受Linux内核相关功能的限制,对于Linux系统,在启动后无法继续访问ISO文件所在的分区。在mount的时候会提示 device busy。<br/>
|
||||
如果这里选择 1,则 Ventoy 会尝试通过一些特殊的手段绕过内核的这个限制,但是这个功能是实验性质的,没有经过大规模和长时间的验证。
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> I don't need to access the image partition after boot.<br/>
|
||||
<code style="font-weight: bold;">1</code> I need to access the image partition after boot. <br/><br/>
|
||||
This option is only avaliable for Linux distro image files. <br/>
|
||||
|
||||
By default, the image partition where the ISO files locate can not be accessed after boot. When you try to mount it you will get device busy error.
|
||||
This is due to linux kernel restriction (device-mapper module).<br/>
|
||||
If you select 1 here, Ventoy will try to bypass the restriction with some special mechanism.<br/>
|
||||
But it should be noted that, this is an experimental feature and is not fully tested.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
@@ -486,38 +498,27 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_secondary_radio0" name="id_ctrl_secondary_radio" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_secondary_radio1" name="id_ctrl_secondary_radio" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
|
||||
<input type="radio" id="id_ctrl_secondary_radio0" name="id_ctrl_secondary_radio" data-type="0" value="0">
|
||||
<span id="id_span_desc_cn">不显示二级启动菜单</span>
|
||||
<span id="id_span_desc_en">Don't show secondary boot menu</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_secondary_radio1" name="id_ctrl_secondary_radio" data-type="1" value="1">
|
||||
<span id="id_span_desc_cn">显示二级启动菜单</span>
|
||||
<span id="id_span_desc_en">Show show secondary boot menu</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>二级启动菜单控制开关
|
||||
<code style="font-weight: bold;">0</code> 不显示
|
||||
<code style="font-weight: bold;">1</code> 显示
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
Secondary boot menu display option
|
||||
<code style="font-weight: bold;">0</code> Don't display
|
||||
<code style="font-weight: bold;">1</code> Display
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SHOW_PASSWORD_ASTERISK
|
||||
@@ -527,39 +528,28 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_asterisk_radio0" name="id_ctrl_asterisk_radio" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" id="id_ctrl_asterisk_radio1" name="id_ctrl_asterisk_radio" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
|
||||
<input type="radio" id="id_ctrl_asterisk_radio0" name="id_ctrl_asterisk_radio" data-type="0" value="0">
|
||||
<span id="id_span_desc_cn">隐藏</span>
|
||||
<span id="id_span_desc_en">Hide</span>
|
||||
</label>
|
||||
<label class="radio-inline label-rt">
|
||||
<input type="radio" id="id_ctrl_asterisk_radio1" name="id_ctrl_asterisk_radio" data-type="1" value="1">
|
||||
<span id="id_span_desc_cn">显示</span>
|
||||
<span id="id_span_desc_en">Show</span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>输入密码时是否显示星号
|
||||
<code style="font-weight: bold;">0</code> 不显示
|
||||
<code style="font-weight: bold;">1</code> 显示
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
Display asterisk when typing password
|
||||
<code style="font-weight: bold;">0</code> Don't display
|
||||
<code style="font-weight: bold;">1</code> Display
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SECONDARY_TIMEOUT
|
||||
@@ -575,7 +565,7 @@
|
||||
<td>
|
||||
<div class="col-sm-9" style="padding-left:0px;">
|
||||
<input type="text" class="form-control" id="id_ctrl_text_secondary_timeout" name="name_ctrl_text_secondary_timeout"/>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_cn">
|
||||
@@ -596,10 +586,10 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_KBD_LAYOUT
|
||||
@@ -609,7 +599,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -652,10 +642,10 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_TREE_VIEW_MENU_STYLE
|
||||
@@ -687,7 +677,7 @@
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
Menu style in TreeView mode.
|
||||
Menu style in TreeView mode.
|
||||
<code style="font-weight: bold;">0</code> with DIR and file size prefix
|
||||
<code style="font-weight: bold;">1</code> No DIR and file size. Default is 0.
|
||||
</td>
|
||||
@@ -696,7 +686,7 @@
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILT_DOT_UNDERSCORE_FILE
|
||||
@@ -706,7 +696,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -721,14 +711,14 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>过滤以 ._ 开头的文件。当使用苹果系统时,有时拷贝文件会产生一些 ._ 开头的文件,可以通过此选项过滤掉。
|
||||
<code style="font-weight: bold;">0</code> 不过滤
|
||||
<code style="font-weight: bold;">0</code> 不过滤
|
||||
<code style="font-weight: bold;">1</code> 过滤
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
Filter for files with prefix ._ in name. This will be useful when you use macOS (a lot of ._xxx file generated when you copy files).
|
||||
Filter for files with prefix ._ in name. This will be useful when you use macOS (a lot of ._xxx file generated when you copy files).
|
||||
<code style="font-weight: bold;">0</code> Don't filt
|
||||
<code style="font-weight: bold;">1</code> Filt
|
||||
</td>
|
||||
@@ -736,7 +726,7 @@
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
@@ -769,7 +759,7 @@
|
||||
<tr id="tr_title_desc_en">
|
||||
<td class="td_ctrl_col" id="td_title_desc">Option Description</td>
|
||||
<td>
|
||||
Case sensitive when sort the ISO files or directories.
|
||||
Case sensitive when sort the ISO files or directories.
|
||||
<code style="font-weight: bold;">0</code> case insensitive <code style="font-weight: bold;">1</code> case sensitive
|
||||
</td>
|
||||
</tr>
|
||||
@@ -819,7 +809,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="box box-primary box-solid">
|
||||
@@ -831,7 +821,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -846,8 +836,8 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .iso 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .iso 文件。
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .iso 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .iso 文件。
|
||||
过滤之后 .iso 文件就不会显示在启动菜单中。
|
||||
</td>
|
||||
</tr>
|
||||
@@ -873,7 +863,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -888,8 +878,8 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .wim 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .wim 文件。
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .wim 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .wim 文件。
|
||||
过滤之后 .wim 文件就不会显示在启动菜单中。
|
||||
</td>
|
||||
</tr>
|
||||
@@ -916,7 +906,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -931,8 +921,8 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .efi 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .efi 文件。
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .efi 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .efi 文件。
|
||||
过滤之后 .efi 文件就不会显示在启动菜单中。
|
||||
</td>
|
||||
</tr>
|
||||
@@ -959,7 +949,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -974,8 +964,8 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .img 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .img 文件。
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .img 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .img 文件。
|
||||
过滤之后 .img 文件就不会显示在启动菜单中。
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1002,7 +992,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -1017,8 +1007,8 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .vhd(x) 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .vhd(x) 文件。
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .vhd(x) 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .vhd(x) 文件。
|
||||
过滤之后 .vhd(x) 文件就不会显示在启动菜单中。
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1045,7 +1035,7 @@
|
||||
</div><!-- /.box-tools -->
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<table class="table table-bordered no-padding">
|
||||
<tr style="font-weight:bold;">
|
||||
<td class="td_ctrl_col" id="td_title_setting">选项设置</td>
|
||||
<td>
|
||||
@@ -1060,8 +1050,8 @@
|
||||
<tr id="tr_title_desc_cn">
|
||||
<td class="td_ctrl_col" id="td_title_desc">选项说明</td>
|
||||
<td>
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .vtoy 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .vtoy 文件。
|
||||
<code style="font-weight: bold;">0</code> 不过滤 .vtoy 文件
|
||||
<code style="font-weight: bold;">1</code> 过滤掉 .vtoy 文件。
|
||||
过滤之后 .vtoy 文件就不会显示在启动菜单中。
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1077,18 +1067,18 @@
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
function VtoyPageLanguageChange(newlang) {
|
||||
VtoyCommonChangeLanguage(newlang);
|
||||
|
||||
$('h1[id=id_h1_page_title]').text(g_vtoy_cur_language.STR_PLUG_CONTROL);
|
||||
$('#id_ctrl_span_search_root_valid').text(g_vtoy_cur_language.STR_VALID);
|
||||
$('#id_ctrl_span_search_root_valid').text(g_vtoy_cur_language.STR_VALID);
|
||||
$('#id_ctrl_span_search_root_invalid').text(g_vtoy_cur_language.STR_INVALID);
|
||||
$('#id_ctrl_span_img_valid').text(g_vtoy_cur_language.STR_VALID);
|
||||
$('#id_ctrl_span_img_invalid').text(g_vtoy_cur_language.STR_INVALID);
|
||||
@@ -1107,21 +1097,23 @@
|
||||
|
||||
data.win11_bypass_check = parseInt($('input:radio[name=id_ctrl_bypass_win11_radio]:checked').val());
|
||||
data.win11_bypass_nro = parseInt($('input:radio[name=id_ctrl_bypass_nro_radio]:checked').val());
|
||||
data.linux_remount = parseInt($('input:radio[name=id_ctrl_linux_remount_radio]:checked').val());
|
||||
data.linux_remount = 0;
|
||||
data.secondary_menu = parseInt($('input:radio[name=id_ctrl_secondary_radio]:checked').val());
|
||||
data.uefi_res_lock = parseInt($('input:radio[name=id_ctrl_uefi_res_lock_radio]:checked').val());
|
||||
data.uefi_sb_policy = parseInt($('input:radio[name=id_ctrl_uefi_sb_policy_radio]:checked').val());
|
||||
data.password_asterisk = parseInt($('input:radio[name=id_ctrl_asterisk_radio]:checked').val());
|
||||
data.default_search_root = $('input:text[id=id_ctrl_text_search_root]').val();
|
||||
data.menu_timeout = parseInt($('input:text[id=id_ctrl_text_timeout]').val());
|
||||
data.secondary_menu_timeout = parseInt($('input:text[id=id_ctrl_text_secondary_timeout]').val());
|
||||
data.default_image = $('input:text[id=id_ctrl_text_default_img]').val();
|
||||
|
||||
|
||||
level = $('select[id=id_ctrl_sel_max_depth').val();
|
||||
if (level === 'max') {
|
||||
data.max_search_level = -1;
|
||||
} else {
|
||||
data.max_search_level = parseInt(level);
|
||||
}
|
||||
|
||||
|
||||
data.default_kbd_layout = $('select[id=id_ctrl_sel_kbd').val();
|
||||
data.default_menu_mode = parseInt($('input:radio[name=id_ctrl_radio_menu_mode]:checked').val());
|
||||
data.treeview_style = parseInt($('input:radio[name=id_ctrl_radio_treestyle]:checked').val());
|
||||
@@ -1145,8 +1137,9 @@
|
||||
$('input:radio[name=id_ctrl_bypass_win11_radio]')[data.win11_bypass_check].checked = true;
|
||||
//VTOY_WIN11_BYPASS_NRO
|
||||
$('input:radio[name=id_ctrl_bypass_nro_radio]')[data.win11_bypass_nro].checked = true;
|
||||
$('input:radio[name=id_ctrl_linux_remount_radio]')[data.linux_remount].checked = true;
|
||||
$('input:radio[name=id_ctrl_secondary_radio]')[data.secondary_menu].checked = true;
|
||||
$('input:radio[name=id_ctrl_uefi_res_lock_radio]')[data.uefi_res_lock].checked = true;
|
||||
$('input:radio[name=id_ctrl_uefi_sb_policy_radio]')[data.uefi_sb_policy].checked = true;
|
||||
$('input:radio[name=id_ctrl_asterisk_radio]')[data.password_asterisk].checked = true;
|
||||
|
||||
//VTOY_DEFAULT_SEARCH_ROOT
|
||||
@@ -1166,7 +1159,7 @@
|
||||
|
||||
//VTOY_MENU_TIMEOUT
|
||||
$('input:text[id=id_ctrl_text_timeout]').val(data.menu_timeout);
|
||||
|
||||
|
||||
//VTOY_SECONDARY_TIMEOUT
|
||||
$('input:text[id=id_ctrl_text_secondary_timeout]').val(data.secondary_menu_timeout);
|
||||
|
||||
@@ -1253,6 +1246,8 @@
|
||||
win11_bypass_check: data.win11_bypass_check,
|
||||
win11_bypass_nro: data.win11_bypass_nro,
|
||||
linux_remount:data.linux_remount,
|
||||
uefi_res_lock:data.uefi_res_lock,
|
||||
uefi_sb_policy:data.uefi_sb_policy,
|
||||
secondary_menu:data.secondary_menu,
|
||||
password_asterisk:data.password_asterisk,
|
||||
default_search_root: data.default_search_root,
|
||||
@@ -1285,7 +1280,7 @@
|
||||
if (index < 0 || index >= g_vtoy_data_default_index || current_tab_index === index) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
current_tab_index = index;
|
||||
VtoyFillCurrentPageItem(m_data_control[index]);
|
||||
}
|
||||
@@ -1307,7 +1302,7 @@
|
||||
var path = root.substr(g_current_dir.length);
|
||||
$('input:text[id=id_ctrl_text_default_img]').val(path);
|
||||
if (path.length === 0) {
|
||||
$('div[id=id_ctrl_div_img_status]').hide();
|
||||
$('div[id=id_ctrl_div_img_status]').hide();
|
||||
} else {
|
||||
$('div[id=id_ctrl_div_img_status]').show();
|
||||
$('span[id=id_ctrl_span_img_valid]').show();
|
||||
@@ -1323,7 +1318,7 @@
|
||||
callVtoySync({method : 'get_control'}, function(data) {
|
||||
m_data_control = data;
|
||||
});
|
||||
|
||||
|
||||
$('#id_ctrl_btn_sel_root').click(function() {
|
||||
var tip = (g_current_os === 'windows') ? '\\ISO\\Windows' : "/ISO/Linux";
|
||||
var para = {
|
||||
@@ -1335,7 +1330,7 @@
|
||||
};
|
||||
VtoySelectDirPath(OnSelectSearchRoot, para);
|
||||
});
|
||||
|
||||
|
||||
$('#id_ctrl_btn_clr_root').click(function() {
|
||||
var old = $('input:text[id=id_ctrl_text_search_root]').val();
|
||||
if (old.length != 0) {
|
||||
@@ -1344,7 +1339,7 @@
|
||||
VtoySaveCurrentPage();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#id_ctrl_btn_default_img').click(function() {
|
||||
var tip = (g_current_os === 'windows') ? '\\ISO\\Windows10_en.iso' : "/ISO/Windows10_en.iso";
|
||||
var para = {
|
||||
@@ -1402,13 +1397,13 @@
|
||||
$('#id_tab_control a[href="#tab_3"]').click(OnClickMultiModeTab);
|
||||
$('#id_tab_control a[href="#tab_4"]').click(OnClickMultiModeTab);
|
||||
$('#id_tab_control a[href="#tab_5"]').click(OnClickMultiModeTab);
|
||||
|
||||
|
||||
function UpdateTabTitleIcon(data) {
|
||||
CommonUpdateTabTitleIcon(data.exist_control, '#id_tab_control a[href="#tab_', 'control');
|
||||
}
|
||||
$('#id_btn_reset').click(function() {
|
||||
$('#id_btn_reset').click(function() {
|
||||
Modal.confirm({msg:GetResetTabConfigTipMsg(current_tab_index, 'control')}).on(function(e) {
|
||||
if (e) {
|
||||
if (e) {
|
||||
VtoyFillCurrentPageItem(m_data_control[g_vtoy_data_default_index]);
|
||||
VtoySaveCurrentPage();
|
||||
}
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
|
||||
function VtoyUTF16HexToAscii(hex) {
|
||||
var str = "";
|
||||
var str = "";
|
||||
for (var i = 0; i < hex.length; i += 4) {
|
||||
str += String.fromCharCode(parseInt(hex.substring(i, i + 4), 16));
|
||||
}
|
||||
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
function ventoy_replace_slash(str) {
|
||||
var str1 = str.replace(/\\/g, '/');
|
||||
var str2 = str1.replace(/\/\//g, '/');
|
||||
|
||||
|
||||
if (str2 && str2.length > 0) {
|
||||
if (str2.substr(-1) === "/") {
|
||||
return str2.substr(0, str2.length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return str2;
|
||||
}
|
||||
|
||||
|
||||
function ventoy_get_ulen(str) {
|
||||
var c, b = 0, l = str.length;
|
||||
while(l) {
|
||||
c = str.charCodeAt(--l);
|
||||
b += (c < 128) ? 1 : ((c < 2048) ? 2 : ((c < 65536) ? 3 : 4));
|
||||
};
|
||||
return b;
|
||||
function ventoy_get_ulen(str) {
|
||||
var c, b = 0, l = str.length;
|
||||
while(l) {
|
||||
c = str.charCodeAt(--l);
|
||||
b += (c < 128) ? 1 : ((c < 2048) ? 2 : ((c < 65536) ? 3 : 4));
|
||||
};
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
function ventoy_common_check_path(path) {
|
||||
var curdir
|
||||
|
||||
|
||||
if (path.indexOf('//') >= 0) {
|
||||
return false;
|
||||
}
|
||||
@@ -43,11 +43,11 @@ function ventoy_common_check_path(path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
curdir = path.substr(0, g_current_dir.length);
|
||||
curdir = path.substr(0, g_current_dir.length);
|
||||
if (curdir.match("^[a-z]:$")) {
|
||||
curdir = curdir.toUpperCase();
|
||||
}
|
||||
|
||||
|
||||
if (curdir != g_current_dir) {
|
||||
return false;
|
||||
}
|
||||
@@ -135,7 +135,7 @@ function callVtoy(p1, p2, p3) {
|
||||
}
|
||||
else if(undefined === errorThrown.length)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if('' == errorThrown.trim())
|
||||
{
|
||||
@@ -184,11 +184,11 @@ function callVtoyASyncTimeout(time, data, func) {
|
||||
success: func,
|
||||
error: function(xmlHttpRequest, textStatus, errorThrown) {
|
||||
if(undefined === errorThrown)
|
||||
{
|
||||
{
|
||||
}
|
||||
else if(undefined === errorThrown.length)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if('' == errorThrown.trim())
|
||||
{
|
||||
@@ -232,11 +232,11 @@ function callVtoySync(data, func) {
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: JSON.stringify(data),
|
||||
success: function VtoyCallFuncWrapper(data) {
|
||||
success: function VtoyCallFuncWrapper(data) {
|
||||
if (data.result === 'busy') {
|
||||
var titlestr = '<span class="fa fa-check-circle" style="color:green; font-weight:bold;"> ' + g_vtoy_cur_language.STR_INFO + '</span>';
|
||||
var msgstr = '<span style="font-size:14px; font-weight:bold;"> ' + g_vtoy_cur_language.STR_WEB_SERVICE_BUSY + '</span>';
|
||||
Modal.alert({title:titlestr, msg:msgstr, btnok:g_vtoy_cur_language.STR_BTN_OK });
|
||||
Modal.alert({title:titlestr, msg:msgstr, btnok:g_vtoy_cur_language.STR_BTN_OK });
|
||||
}else {
|
||||
func(data);
|
||||
}
|
||||
@@ -248,7 +248,7 @@ function callVtoySync(data, func) {
|
||||
}
|
||||
else if(undefined === errorThrown.length)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
else if('' == errorThrown.trim())
|
||||
{
|
||||
@@ -285,16 +285,16 @@ function callVtoySync(data, func) {
|
||||
});
|
||||
}
|
||||
|
||||
var vtoy = {
|
||||
var vtoy = {
|
||||
baseurl : '',
|
||||
status: '',
|
||||
status: '',
|
||||
scan: {
|
||||
time: 3,
|
||||
ret: []
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
String.prototype.endsWith = function(str) {
|
||||
if (str == null || str == "" || this.length == 0 || str.length > this.length)
|
||||
return false;
|
||||
@@ -305,7 +305,7 @@ String.prototype.endsWith = function(str) {
|
||||
}
|
||||
|
||||
|
||||
var g_vtoy_cur_language_en =
|
||||
var g_vtoy_cur_language_en =
|
||||
{
|
||||
"STR_INFO": "Info",
|
||||
"STR_BTN_OK": "OK",
|
||||
@@ -390,8 +390,8 @@ var g_vtoy_cur_language_en =
|
||||
"STR_PATH_TOO_LONG": "The path exceeds the maximum supported length, please check!",
|
||||
"STR_INPUT_TOO_LONG": "The string exceeds the maximum supported length, please check!",
|
||||
"STR_INVALID_FILE_PATH": "Invalid or nonexist full file path, please check!",
|
||||
"STR_INVALID_FILE_PATH1": "The 1st file path is invalid or nonexist!",
|
||||
"STR_INVALID_FILE_PATH2": "The 2nd file path is invalid or nonexist!",
|
||||
"STR_INVALID_FILE_PATH1": "The 1st file path is invalid or nonexist!",
|
||||
"STR_INVALID_FILE_PATH2": "The 2nd file path is invalid or nonexist!",
|
||||
"STR_INVALID_NEW_FILE_PATH": "The full file path of new is invalid or nonexist, please check!",
|
||||
"STR_INVALID_DIR_PATH": "Invalid directory path, please check!",
|
||||
"STR_INVALID_NUMBER": "Please input valid non-negative integer!",
|
||||
@@ -418,7 +418,7 @@ var g_vtoy_cur_language_en =
|
||||
"STR_SET_IMAGE_PWD": "[file] Set Password For A File",
|
||||
"STR_SET_PARENT_PWD": "[parent] Set the same password for all the files under a directory.",
|
||||
|
||||
"STR_SET_SEARCH_ROOT": "Set Search Root",
|
||||
"STR_SET_SEARCH_ROOT": "Set Search Root",
|
||||
"STR_SET_DEFAULT_IMAGE": "Set Default Image",
|
||||
"STR_ADD_THEME": "Add Theme",
|
||||
"STR_ADD_FONT": "Set Font",
|
||||
@@ -426,7 +426,7 @@ var g_vtoy_cur_language_en =
|
||||
"STR_DEFAULT_SELECT": " Default",
|
||||
"STR_AUTO_TEMPLATE": "Auto Install Template",
|
||||
"STR_ADD_AUTO_TEMPLATE": "Add Auto Install Template",
|
||||
|
||||
|
||||
"STR_PERSISTENCE_DAT": "Persistence Dat File",
|
||||
"STR_ADD_PERSISTENCE_DAT": "Add Persistence Dat File",
|
||||
|
||||
@@ -449,7 +449,7 @@ var g_vtoy_cur_language_en =
|
||||
"STR_XXX": "xxx"
|
||||
};
|
||||
|
||||
var g_vtoy_cur_language_cn =
|
||||
var g_vtoy_cur_language_cn =
|
||||
{
|
||||
"STR_INFO": "提醒",
|
||||
"STR_BTN_OK": "确定",
|
||||
@@ -486,7 +486,7 @@ var g_vtoy_cur_language_cn =
|
||||
"STR_DELETE_CONFIRM": "确定要删除吗?",
|
||||
"STR_FILE_PATH": "文件路径",
|
||||
"STR_DIR_PATH": "目录路径",
|
||||
|
||||
|
||||
"STR_SET_ALIAS": "设置菜单别名",
|
||||
"STR_ALIAS": "别名",
|
||||
"STR_SET_TIP": "设置菜单提示",
|
||||
@@ -531,10 +531,10 @@ var g_vtoy_cur_language_cn =
|
||||
|
||||
"STR_PATH_TOO_LONG": "路径超过最大支持长度,请检查!",
|
||||
"STR_INPUT_TOO_LONG": "字符串超过最大支持长度,请检查!",
|
||||
"STR_INVALID_FILE_PATH": "文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_FILE_PATH1": "第1个文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_FILE_PATH2": "第2个文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_NEW_FILE_PATH": "new 文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_FILE_PATH": "文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_FILE_PATH1": "第1个文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_FILE_PATH2": "第2个文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_NEW_FILE_PATH": "new 文件路径不合法或不存在,请检查!",
|
||||
"STR_INVALID_DIR_PATH": "文件夹路径不合法,请检查!",
|
||||
"STR_INVALID_NUMBER": "请输入合法的非负整数!",
|
||||
"STR_INVALID_AUTOSEL": "autosel 的值超过了列表实际长度!",
|
||||
@@ -562,7 +562,7 @@ var g_vtoy_cur_language_cn =
|
||||
"STR_SET_PARENT_PWD": "[parent] 为某个目录下的所有文件设置相同的密码",
|
||||
|
||||
|
||||
|
||||
|
||||
"STR_SET_SEARCH_ROOT": "设置搜索目录",
|
||||
"STR_SET_DEFAULT_IMAGE": "设置默认镜像文件",
|
||||
"STR_ADD_THEME": "添加主题",
|
||||
@@ -607,13 +607,13 @@ var g_dir_modal_callback;
|
||||
|
||||
function GetResetTabConfigTipMsg(index, name) {
|
||||
var msgstr;
|
||||
|
||||
|
||||
if (g_current_language === 'en') {
|
||||
msgstr = 'Are you sure to reset all the configurations on the <code>' + name + g_bios_postfix[index] + '</code> tab ?';
|
||||
} else {
|
||||
msgstr = '确认要重置 <code>' + name + g_bios_postfix[index] + '</code> 标签页下的所有配置?';
|
||||
}
|
||||
|
||||
|
||||
return msgstr;
|
||||
}
|
||||
|
||||
@@ -629,7 +629,7 @@ function CommonUpdateTabTitleIcon(exists, id, name) {
|
||||
} else {
|
||||
newhtml = name + g_bios_postfix[i];
|
||||
}
|
||||
|
||||
|
||||
if (newhtml != oldhtml) {
|
||||
$(fid).html(newhtml);
|
||||
}
|
||||
@@ -661,7 +661,7 @@ function ventoy_file_submit(form, extra) {
|
||||
callVtoySync({
|
||||
method : 'check_fuzzy',
|
||||
path: filepath
|
||||
}, function(data) {
|
||||
}, function(data) {
|
||||
if (data.exist != 0) {
|
||||
if (typeof(g_file_modal_callback) === 'function') {
|
||||
g_file_modal_callback(filepath, -1, fileextra);
|
||||
@@ -676,7 +676,7 @@ function ventoy_file_submit(form, extra) {
|
||||
method : 'check_path',
|
||||
dir: 0,
|
||||
path: filepath
|
||||
}, function(data) {
|
||||
}, function(data) {
|
||||
if (data.exist === 1) {
|
||||
if (typeof(g_file_modal_callback) === 'function') {
|
||||
g_file_modal_callback(filepath, 1, fileextra);
|
||||
@@ -691,7 +691,7 @@ function ventoy_file_submit(form, extra) {
|
||||
|
||||
|
||||
var g_filepath_validator = $("#SetFileForm").validate({
|
||||
rules: {
|
||||
rules: {
|
||||
FilePath : {
|
||||
required: true,
|
||||
utfmaxlen: true,
|
||||
@@ -708,7 +708,7 @@ var g_filepath_validator = $("#SetFileForm").validate({
|
||||
});
|
||||
|
||||
var g_dirpath_validator = $("#SetDirForm").validate({
|
||||
rules: {
|
||||
rules: {
|
||||
DirPath : {
|
||||
required: true,
|
||||
utfmaxlen: true,
|
||||
@@ -722,7 +722,7 @@ var g_dirpath_validator = $("#SetDirForm").validate({
|
||||
submitHandler: function(form) {
|
||||
var dirpath = $("#DirPath").val();
|
||||
var dirextra = $("#DirExtra").val();
|
||||
|
||||
|
||||
if (!dirpath) {
|
||||
return;
|
||||
}
|
||||
@@ -747,8 +747,8 @@ var g_dirpath_validator = $("#SetDirForm").validate({
|
||||
callVtoySync({
|
||||
method : 'check_path',
|
||||
dir: 1,
|
||||
path: dirpath
|
||||
}, function(data) {
|
||||
path: dirpath
|
||||
}, function(data) {
|
||||
if (data.exist === 1) {
|
||||
if (typeof(g_dir_modal_callback) === 'function') {
|
||||
g_dir_modal_callback(dirpath, dirextra);
|
||||
@@ -763,7 +763,7 @@ var g_dirpath_validator = $("#SetDirForm").validate({
|
||||
|
||||
function VtoySelectFilePath(cb, para) {
|
||||
g_file_fuzzy_match = para.fuzzy;
|
||||
|
||||
|
||||
if (para.extra) {
|
||||
$('div[id=id_div_file_extra]').show();
|
||||
$('#SetFileForm_extra').text(para.extra_title);
|
||||
@@ -787,7 +787,7 @@ function VtoySelectFilePath(cb, para) {
|
||||
} else {
|
||||
$('#SetFileForm #SetFileForm_lang_1').text(para.title);
|
||||
}
|
||||
|
||||
|
||||
$('#SetFileForm #SetFileForm_lang_2').text("File Path");
|
||||
$('#SetFileForm #SetFileForm_lang_3').text(" OK");
|
||||
$('#SetFileForm #SetFileForm_lang_4').text("Cancel");
|
||||
@@ -823,7 +823,7 @@ function VtoySelectFilePath(cb, para) {
|
||||
g_file_with_extra = para.extra;
|
||||
g_filepath_validator.settings.rules.FileExtra.required = g_file_with_extra;
|
||||
g_filepath_validator.resetForm();
|
||||
$("#SetFileModal").modal();
|
||||
$("#SetFileModal").modal();
|
||||
}
|
||||
|
||||
|
||||
@@ -882,8 +882,8 @@ function VtoySelectDirPath(cb, para) {
|
||||
g_dir_modal_callback = cb;
|
||||
g_dir_with_extra = para.extra;
|
||||
g_dirpath_validator.settings.rules.DirExtra.required = g_dir_with_extra;
|
||||
g_dirpath_validator.resetForm();
|
||||
$("#SetDirModal").modal();
|
||||
g_dirpath_validator.resetForm();
|
||||
$("#SetDirModal").modal();
|
||||
}
|
||||
|
||||
function VtoyCommonChangeLanguage(newlang) {
|
||||
@@ -891,7 +891,7 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
g_vtoy_cur_language = g_vtoy_cur_language_en;
|
||||
;$.extend($.validator.messages, {
|
||||
required: "This field is required",
|
||||
remote: "Please modify this field",
|
||||
remote: "Please modify this field",
|
||||
maxlength: $.validator.format("You can enter up to {0} characters"),
|
||||
minlength: $.validator.format("Must enter at least {0} characters"),
|
||||
rangelength: $.validator.format("Please input {0} to {1} characters"),
|
||||
@@ -910,23 +910,23 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
var newlink = oldlink.replace("/cn/", "/en/");
|
||||
$(this).attr('href', newlink);
|
||||
});
|
||||
|
||||
|
||||
$("span[id=id_span_official_doc]").each(function(){
|
||||
$(this).text(" Plugin Official Document");
|
||||
});
|
||||
|
||||
|
||||
$('#id_span_copy').text("Copy");
|
||||
$('#id_span_preview').text("Preview");
|
||||
$('#id_span_language').text("中文");
|
||||
|
||||
|
||||
$("tr[id=tr_title_desc_cn]").each(function(){
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
|
||||
$("tr[id=tr_title_desc_en]").each(function(){
|
||||
$(this).show();
|
||||
});
|
||||
|
||||
|
||||
$("th[id=id_th_file_path]").each(function(){
|
||||
$(this).text("Full File Path");
|
||||
});
|
||||
@@ -934,12 +934,15 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
$("span[id=id_span_desc_cn]").each(function(){
|
||||
$(this).hide();
|
||||
});
|
||||
$("span[id=id_span_desc_en]").each(function(){
|
||||
$(this).show();
|
||||
});
|
||||
|
||||
} else {
|
||||
g_vtoy_cur_language = g_vtoy_cur_language_cn;
|
||||
;$.extend($.validator.messages, {
|
||||
required: "这是必填字段",
|
||||
remote: "请修正此字段",
|
||||
remote: "请修正此字段",
|
||||
maxlength: $.validator.format("最多可以输入 {0} 个字符"),
|
||||
minlength: $.validator.format("最少要输入 {0} 个字符"),
|
||||
rangelength: $.validator.format("请输入长度在 {0} 到 {1} 之间的字符串"),
|
||||
@@ -952,29 +955,29 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
filenamepart:$.validator.format("作为文件名的一部分,不能包含特殊的符号"),
|
||||
printascii: $.validator.format("不能包含中文或其他非 ascii 字符。")
|
||||
});
|
||||
|
||||
|
||||
$("a[id=id_a_official_doc]").each(function(){
|
||||
var oldlink = $(this).attr('href');
|
||||
var newlink = oldlink.replace("/en/", "/cn/");
|
||||
$(this).attr('href', newlink);
|
||||
});
|
||||
|
||||
|
||||
$("span[id=id_span_official_doc]").each(function(){
|
||||
$(this).text(" 插件官网文档");
|
||||
});
|
||||
|
||||
|
||||
$('#id_span_copy').text("复制");
|
||||
$('#id_span_preview').text("预览");
|
||||
$('#id_span_language').text("English");
|
||||
|
||||
|
||||
$("tr[id=tr_title_desc_cn]").each(function(){
|
||||
$(this).show();
|
||||
});
|
||||
|
||||
|
||||
$("tr[id=tr_title_desc_en]").each(function(){
|
||||
$(this).hide();
|
||||
});
|
||||
|
||||
|
||||
$("th[id=id_th_file_path]").each(function(){
|
||||
$(this).text("文件路径");
|
||||
});
|
||||
@@ -982,6 +985,10 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
$("span[id=id_span_desc_cn]").each(function(){
|
||||
$(this).show();
|
||||
});
|
||||
|
||||
$("span[id=id_span_desc_en]").each(function(){
|
||||
$(this).hide();
|
||||
});
|
||||
}
|
||||
|
||||
$("span[id=id_span_menu_device]").text(g_vtoy_cur_language.STR_PLUG_DEVICE);
|
||||
@@ -1001,7 +1008,7 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
$('#id_span_save').text(g_vtoy_cur_language.STR_SAVE);
|
||||
$('#id_span_reset').text(g_vtoy_cur_language.STR_RESET);
|
||||
$('#id_span_donation').text(g_vtoy_cur_language.STR_PLUG_DONATION);
|
||||
|
||||
|
||||
$('span[id=id_btn_span_reset]').each(function(){
|
||||
$(this).text(' ' + g_vtoy_cur_language.STR_RESET);
|
||||
});
|
||||
@@ -1033,13 +1040,13 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
$("td[id=td_title_desc]").each(function(){
|
||||
$(this).text(g_vtoy_cur_language.STR_OPT_DESC);
|
||||
});
|
||||
|
||||
|
||||
$("td[id=td_title_setting]").each(function(){
|
||||
$(this).text(g_vtoy_cur_language.STR_OPT_SETTING);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ventoy_get_status_line(dir, exist) {
|
||||
if (dir) {
|
||||
if (exist === 0) {
|
||||
@@ -1062,7 +1069,7 @@ function ventoy_get_status_line(dir, exist) {
|
||||
|
||||
var g_type_select_callback;
|
||||
|
||||
var g_type_select_validator = $("#TypeSelectForm").validate({
|
||||
var g_type_select_validator = $("#TypeSelectForm").validate({
|
||||
submitHandler: function(form) {
|
||||
var sel = parseInt($('input:radio[name=name_select_type_radio]:checked').val());
|
||||
if (typeof(g_type_select_callback) === 'function') {
|
||||
@@ -1076,7 +1083,7 @@ var g_type_select_validator = $("#TypeSelectForm").validate({
|
||||
function VtoySelectType(cb, para) {
|
||||
|
||||
$('#TypeSelectForm #TypeSelForm_lang_1').text(g_vtoy_cur_language.STR_SELECT);
|
||||
|
||||
|
||||
if (g_current_language === 'en') {
|
||||
$('#TypeSelectForm #TypeSelForm_lang_2').text(" OK");
|
||||
$('#TypeSelectForm #TypeSelForm_lang_3').text("Cancel");
|
||||
@@ -1084,7 +1091,7 @@ function VtoySelectType(cb, para) {
|
||||
$('#TypeSelectForm #TypeSelForm_lang_2').text("确定");
|
||||
$('#TypeSelectForm #TypeSelForm_lang_3').text("取消");
|
||||
}
|
||||
|
||||
|
||||
var $tbl = $("#id_type_select_table tbody");
|
||||
$tbl.empty();
|
||||
|
||||
@@ -1101,23 +1108,23 @@ function VtoySelectType(cb, para) {
|
||||
}
|
||||
|
||||
g_type_select_callback = cb;
|
||||
g_type_select_validator.resetForm();
|
||||
$("#TypeSelectModal").modal();
|
||||
g_type_select_validator.resetForm();
|
||||
$("#TypeSelectModal").modal();
|
||||
}
|
||||
|
||||
|
||||
var g_set_key_callback;
|
||||
|
||||
var g_set_key_validator = $("#SetKeyForm").validate({
|
||||
rules: {
|
||||
var g_set_key_validator = $("#SetKeyForm").validate({
|
||||
rules: {
|
||||
SetKeyKey : {
|
||||
required: true,
|
||||
utfmaxlen: true
|
||||
utfmaxlen: true
|
||||
},
|
||||
SetKeyValue : {
|
||||
required: true,
|
||||
utfmaxlen: true,
|
||||
filenamepart: true
|
||||
filenamepart: true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1151,10 +1158,10 @@ function VtoySetKey(cb, para) {
|
||||
$('#SetKeyForm #SetKeyForm_lang_4').text("确定");
|
||||
$('#SetKeyForm #SetKeyForm_lang_5').text("取消");
|
||||
}
|
||||
|
||||
|
||||
g_set_key_callback = cb;
|
||||
g_set_key_validator.resetForm();
|
||||
$("#SetKeyModal").modal();
|
||||
g_set_key_validator.resetForm();
|
||||
$("#SetKeyModal").modal();
|
||||
}
|
||||
|
||||
var g_valid_color_name = [
|
||||
@@ -1204,7 +1211,7 @@ function ventoy_check_file_path(isopath, fuzzy, cb) {
|
||||
callVtoySync({
|
||||
method : 'check_fuzzy',
|
||||
path: isopath
|
||||
}, function(data) {
|
||||
}, function(data) {
|
||||
if (data.exist != 0) {
|
||||
if (typeof(cb) === 'function') {
|
||||
cb(data.exist);
|
||||
@@ -1218,7 +1225,7 @@ function ventoy_check_file_path(isopath, fuzzy, cb) {
|
||||
method : 'check_path',
|
||||
dir: 0,
|
||||
path: isopath
|
||||
}, function(data) {
|
||||
}, function(data) {
|
||||
if (data.exist === 1) {
|
||||
if (typeof(cb) === 'function') {
|
||||
cb(data.exist);
|
||||
@@ -1230,7 +1237,7 @@ function ventoy_check_file_path(isopath, fuzzy, cb) {
|
||||
}
|
||||
}
|
||||
|
||||
function ventoy_random_string(e) {
|
||||
function ventoy_random_string(e) {
|
||||
var t = "abcdefhijkmnprstwxyz2345678";
|
||||
var a = t.length;
|
||||
var n = "";
|
||||
@@ -1243,15 +1250,15 @@ function ventoy_random_string(e) {
|
||||
|
||||
var g_set_filefile_callback;
|
||||
|
||||
var g_set_filefile_validator = $("#SetFileFileForm").validate({
|
||||
rules: {
|
||||
var g_set_filefile_validator = $("#SetFileFileForm").validate({
|
||||
rules: {
|
||||
FileFilePath1 : {
|
||||
required: true,
|
||||
utfmaxlen: true
|
||||
},
|
||||
FileFilePath2 : {
|
||||
required: true,
|
||||
utfmaxlen: true
|
||||
utfmaxlen: true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1332,24 +1339,24 @@ function VtoySetFileFile(cb, para) {
|
||||
$('span[id=id_span_filefile_tip3]').each(function(){
|
||||
$(this).text(para.tip3);
|
||||
});
|
||||
|
||||
|
||||
g_set_filefile_callback = cb;
|
||||
g_set_filefile_validator.resetForm();
|
||||
g_set_filefile_validator.resetForm();
|
||||
$("#SetFileFileModal").modal();
|
||||
}
|
||||
|
||||
|
||||
var g_set_dirfile_callback;
|
||||
|
||||
var g_set_dirfile_validator = $("#SetDirFileForm").validate({
|
||||
rules: {
|
||||
var g_set_dirfile_validator = $("#SetDirFileForm").validate({
|
||||
rules: {
|
||||
DirFilePath1 : {
|
||||
required: true,
|
||||
utfmaxlen: true
|
||||
},
|
||||
DirFilePath2 : {
|
||||
required: true,
|
||||
utfmaxlen: true
|
||||
utfmaxlen: true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1427,9 +1434,9 @@ function VtoySetDirFile(cb, para) {
|
||||
$('span[id=id_span_dirfile_tip2]').each(function(){
|
||||
$(this).text(para.tip2);
|
||||
});
|
||||
|
||||
|
||||
g_set_dirfile_callback = cb;
|
||||
g_set_dirfile_validator.resetForm();
|
||||
g_set_dirfile_validator.resetForm();
|
||||
$("#SetDirFileModal").modal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user