Fix that bootpwd not working for VentoyPlugson. (#2584)

This commit is contained in:
longpanda 2023-10-03 23:49:22 +08:00
parent c8dc36a5c3
commit 605da1ba94
5 changed files with 37 additions and 37 deletions

View File

@ -1 +1 @@
20221204 15:15:33 20231003 23:36:44

View File

@ -1 +1 @@
ar_ARbn_BNde_DEen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDja_JPka_GEko_KRpl_PLpt_PTru_RUsr_RSta_INtr_TRzh_CNzh_TW ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsr_RSta_INtr_TRuk_UAzh_CNzh_TW

View File

@ -757,7 +757,7 @@
<footer class="main-footer"> <footer class="main-footer">
<div class="pull-right hidden-xs"> <div class="pull-right hidden-xs">
<b id="plugson_build_date">20221204 15:15:33</b> <b id="plugson_build_date">20231003 23:36:44</b>
</div> </div>
<strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong> <strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>
</footer> </footer>
@ -777,10 +777,10 @@
<script src="/static/js/jQuery-2.1.4.min.js"></script> <script src="/static/js/jQuery-2.1.4.min.js"></script>
<!-- jquery validate --> <!-- jquery validate -->
<script src="/static/js/jquery.validate.min.js"></script> <script src="/static/js/jquery.validate.min.js"></script>
<script src="/static/js/jquery.validate.vtoymethods.js?v=142"></script> <script src="/static/js/jquery.validate.vtoymethods.js?v=189"></script>
<script src="/static/js/jquery.vtoy.alert.js?v=142"></script> <script src="/static/js/jquery.vtoy.alert.js?v=189"></script>
<script src="/static/js/vtoy.js?v=142"></script> <script src="/static/js/vtoy.js?v=189"></script>
<script src="/static/js/md5.min.js"></script> <script src="/static/js/md5.min.js"></script>
<!-- Bootstrap 3.3.5 --> <!-- Bootstrap 3.3.5 -->

View File

@ -1 +1 @@
ar_ARbn_BNde_DEen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDja_JPka_GEko_KRpl_PLpt_PTru_RUsr_RSta_INtr_TRzh_CNzh_TW ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsl_sisr_RSta_INtr_TRuk_UAzh_CNzh_TW

View File

@ -185,13 +185,13 @@
CommonPasswordEntry($tbl, 'efipwd', '所有 .efi 文件的默认密码。', 'Default password for all .efi files.'); CommonPasswordEntry($tbl, 'efipwd', '所有 .efi 文件的默认密码。', 'Default password for all .efi files.');
CommonPasswordEntry($tbl, 'vtoypwd', '所有 .vtoy 文件的默认密码。', 'Default password for all .vtoy files.'); CommonPasswordEntry($tbl, 'vtoypwd', '所有 .vtoy 文件的默认密码。', 'Default password for all .vtoy files.');
$('input:text[id=id_bootpwd]').val(data.bootpwd); $('input:password[id=id_bootpwd]').val(data.bootpwd);
$('input:text[id=id_isopwd]').val(data.isopwd); $('input:password[id=id_isopwd]').val(data.isopwd);
$('input:text[id=id_wimpwd]').val(data.wimpwd); $('input:password[id=id_wimpwd]').val(data.wimpwd);
$('input:text[id=id_imgpwd]').val(data.imgpwd); $('input:password[id=id_imgpwd]').val(data.imgpwd);
$('input:text[id=id_efipwd]').val(data.efipwd); $('input:password[id=id_efipwd]').val(data.efipwd);
$('input:text[id=id_vhdpwd]').val(data.vhdpwd); $('input:password[id=id_vhdpwd]').val(data.vhdpwd);
$('input:text[id=id_vtoypwd]').val(data.vtoypwd); $('input:password[id=id_vtoypwd]').val(data.vtoypwd);
} }
function FillMenuPwdTable(data) { function FillMenuPwdTable(data) {
@ -240,13 +240,13 @@
} }
function VtoyGetCurrentPageItem(data) { function VtoyGetCurrentPageItem(data) {
data.bootpwd = $('input:text[id=id_bootpwd]').val(); data.bootpwd = $('input:password[id=id_bootpwd]').val();
data.isopwd = $('input:text[id=id_isopwd]').val(); data.isopwd = $('input:password[id=id_isopwd]').val();
data.wimpwd = $('input:text[id=id_wimpwd]').val(); data.wimpwd = $('input:password[id=id_wimpwd]').val();
data.imgpwd = $('input:text[id=id_imgpwd]').val(); data.imgpwd = $('input:password[id=id_imgpwd]').val();
data.efipwd = $('input:text[id=id_efipwd]').val(); data.efipwd = $('input:password[id=id_efipwd]').val();
data.vhdpwd = $('input:text[id=id_vhdpwd]').val(); data.vhdpwd = $('input:password[id=id_vhdpwd]').val();
data.vtoypwd = $('input:text[id=id_vtoypwd]').val(); data.vtoypwd = $('input:password[id=id_vtoypwd]').val();
} }
function VtoySaveCurrentPage() { function VtoySaveCurrentPage() {
@ -417,7 +417,7 @@ function VtoySetPassword(common, type, cb, data) {
}); });
function set_common_pwd_callback(path, pwd, type, data) { function set_common_pwd_callback(path, pwd, type, data) {
var selector = 'input:text[id=id_'+ data +']'; var selector = 'input:password[id=id_'+ data +']';
var value = format_password(pwd, type); var value = format_password(pwd, type);
$(selector).val(value); $(selector).val(value);
@ -433,7 +433,7 @@ function VtoySetPassword(common, type, cb, data) {
var id = $(this).attr('id'); var id = $(this).attr('id');
//id_btn_clr_ //id_btn_clr_
var selector = 'input:text[id=id_'+ id.substr(11) +']'; var selector = 'input:password[id=id_'+ id.substr(11) +']';
$(selector).val(''); $(selector).val('');
VtoySaveCurrentPage(); VtoySaveCurrentPage();
}); });
@ -525,13 +525,13 @@ function VtoySetPassword(common, type, cb, data) {
}); });
function VtoySaveCurrentPage() { function VtoySaveCurrentPage() {
var bootpwd = $('input:text[id=id_bootpwd]').val(); var bootpwd = $('input:password[id=id_bootpwd]').val();
var isopwd = $('input:text[id=id_isopwd]').val(); var isopwd = $('input:password[id=id_isopwd]').val();
var wimpwd = $('input:text[id=id_wimpwd]').val(); var wimpwd = $('input:password[id=id_wimpwd]').val();
var imgpwd = $('input:text[id=id_imgpwd]').val(); var imgpwd = $('input:password[id=id_imgpwd]').val();
var vhdpwd = $('input:text[id=id_vhdpwd]').val(); var vhdpwd = $('input:password[id=id_vhdpwd]').val();
var efipwd = $('input:text[id=id_efipwd]').val(); var efipwd = $('input:password[id=id_efipwd]').val();
var vtoypwd = $('input:text[id=id_vtoypwd]').val(); var vtoypwd = $('input:password[id=id_vtoypwd]').val();
callVtoy({ callVtoy({
method : 'save_password', method : 'save_password',
@ -548,13 +548,13 @@ function VtoySetPassword(common, type, cb, data) {
}); });
} }
$('input:text[id=id_bootpwd]').change(VtoySaveCurrentPage); $('input:password[id=id_bootpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_isopwd]').change(VtoySaveCurrentPage); $('input:password[id=id_isopwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_wimpwd]').change(VtoySaveCurrentPage); $('input:password[id=id_wimpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_imgpwd]').change(VtoySaveCurrentPage); $('input:password[id=id_imgpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_vhdpwd]').change(VtoySaveCurrentPage); $('input:password[id=id_vhdpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_efipwd]').change(VtoySaveCurrentPage); $('input:password[id=id_efipwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_vtoypwd]').change(VtoySaveCurrentPage); $('input:password[id=id_vtoypwd]').change(VtoySaveCurrentPage);
$('#id_tab_password a[href="#tab_0"]').click(OnClickMultiModeTab); $('#id_tab_password a[href="#tab_0"]').click(OnClickMultiModeTab);
$('#id_tab_password a[href="#tab_1"]').click(OnClickMultiModeTab); $('#id_tab_password a[href="#tab_1"]').click(OnClickMultiModeTab);