Skip to content

Commit

Permalink
Fix that bootpwd not working for VentoyPlugson. (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Oct 3, 2023
1 parent c8dc36a commit 605da1b
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Plugson/www/buildtime
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20221204 15:15:33
20231003 23:36:44
2 changes: 1 addition & 1 deletion Plugson/www/helplist
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions Plugson/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ <h4>

<footer class="main-footer">
<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>
<strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>
</footer>
Expand All @@ -777,10 +777,10 @@ <h4>
<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=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/vtoy.js?v=142"></script>
<script src="/static/js/jquery.vtoy.alert.js?v=189"></script>
<script src="/static/js/vtoy.js?v=189"></script>
<script src="/static/js/md5.min.js"></script>

<!-- Bootstrap 3.3.5 -->
Expand Down
2 changes: 1 addition & 1 deletion Plugson/www/menulist
Original file line number Diff line number Diff line change
@@ -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
60 changes: 30 additions & 30 deletions Plugson/www/plugson_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">Menu Password
CommonPasswordEntry($tbl, 'efipwd', '所有 .efi 文件的默认密码。', 'Default password for all .efi files.');
CommonPasswordEntry($tbl, 'vtoypwd', '所有 .vtoy 文件的默认密码。', 'Default password for all .vtoy files.');

$('input:text[id=id_bootpwd]').val(data.bootpwd);
$('input:text[id=id_isopwd]').val(data.isopwd);
$('input:text[id=id_wimpwd]').val(data.wimpwd);
$('input:text[id=id_imgpwd]').val(data.imgpwd);
$('input:text[id=id_efipwd]').val(data.efipwd);
$('input:text[id=id_vhdpwd]').val(data.vhdpwd);
$('input:text[id=id_vtoypwd]').val(data.vtoypwd);
$('input:password[id=id_bootpwd]').val(data.bootpwd);
$('input:password[id=id_isopwd]').val(data.isopwd);
$('input:password[id=id_wimpwd]').val(data.wimpwd);
$('input:password[id=id_imgpwd]').val(data.imgpwd);
$('input:password[id=id_efipwd]').val(data.efipwd);
$('input:password[id=id_vhdpwd]').val(data.vhdpwd);
$('input:password[id=id_vtoypwd]').val(data.vtoypwd);
}

function FillMenuPwdTable(data) {
Expand Down Expand Up @@ -240,13 +240,13 @@ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">Menu Password
}

function VtoyGetCurrentPageItem(data) {
data.bootpwd = $('input:text[id=id_bootpwd]').val();
data.isopwd = $('input:text[id=id_isopwd]').val();
data.wimpwd = $('input:text[id=id_wimpwd]').val();
data.imgpwd = $('input:text[id=id_imgpwd]').val();
data.efipwd = $('input:text[id=id_efipwd]').val();
data.vhdpwd = $('input:text[id=id_vhdpwd]').val();
data.vtoypwd = $('input:text[id=id_vtoypwd]').val();
data.bootpwd = $('input:password[id=id_bootpwd]').val();
data.isopwd = $('input:password[id=id_isopwd]').val();
data.wimpwd = $('input:password[id=id_wimpwd]').val();
data.imgpwd = $('input:password[id=id_imgpwd]').val();
data.efipwd = $('input:password[id=id_efipwd]').val();
data.vhdpwd = $('input:password[id=id_vhdpwd]').val();
data.vtoypwd = $('input:password[id=id_vtoypwd]').val();
}

function VtoySaveCurrentPage() {
Expand Down Expand Up @@ -417,7 +417,7 @@ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">Menu Password
});

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);

$(selector).val(value);
Expand All @@ -433,7 +433,7 @@ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">Menu Password
var id = $(this).attr('id');

//id_btn_clr_
var selector = 'input:text[id=id_'+ id.substr(11) +']';
var selector = 'input:password[id=id_'+ id.substr(11) +']';
$(selector).val('');
VtoySaveCurrentPage();
});
Expand Down Expand Up @@ -525,13 +525,13 @@ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">Menu Password
});

function VtoySaveCurrentPage() {
var bootpwd = $('input:text[id=id_bootpwd]').val();
var isopwd = $('input:text[id=id_isopwd]').val();
var wimpwd = $('input:text[id=id_wimpwd]').val();
var imgpwd = $('input:text[id=id_imgpwd]').val();
var vhdpwd = $('input:text[id=id_vhdpwd]').val();
var efipwd = $('input:text[id=id_efipwd]').val();
var vtoypwd = $('input:text[id=id_vtoypwd]').val();
var bootpwd = $('input:password[id=id_bootpwd]').val();
var isopwd = $('input:password[id=id_isopwd]').val();
var wimpwd = $('input:password[id=id_wimpwd]').val();
var imgpwd = $('input:password[id=id_imgpwd]').val();
var vhdpwd = $('input:password[id=id_vhdpwd]').val();
var efipwd = $('input:password[id=id_efipwd]').val();
var vtoypwd = $('input:password[id=id_vtoypwd]').val();

callVtoy({
method : 'save_password',
Expand All @@ -548,13 +548,13 @@ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">Menu Password
});
}

$('input:text[id=id_bootpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_isopwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_wimpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_imgpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_vhdpwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_efipwd]').change(VtoySaveCurrentPage);
$('input:text[id=id_vtoypwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_bootpwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_isopwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_wimpwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_imgpwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_vhdpwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_efipwd]').change(VtoySaveCurrentPage);
$('input:password[id=id_vtoypwd]').change(VtoySaveCurrentPage);

$('#id_tab_password a[href="#tab_0"]').click(OnClickMultiModeTab);
$('#id_tab_password a[href="#tab_1"]').click(OnClickMultiModeTab);
Expand Down

0 comments on commit 605da1b

Please sign in to comment.