mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-12-15 08:16:19 +00:00
Fix some VentoyPlugson bug. (#3252)
This commit is contained in:
@@ -777,10 +777,10 @@
|
||||
<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=192"></script>
|
||||
<script src="/static/js/jquery.validate.vtoymethods.js?v=253"></script>
|
||||
|
||||
<script src="/static/js/jquery.vtoy.alert.js?v=192"></script>
|
||||
<script src="/static/js/vtoy.js?v=192"></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/md5.min.js"></script>
|
||||
|
||||
<!-- Bootstrap 3.3.5 -->
|
||||
|
||||
@@ -101,6 +101,10 @@
|
||||
timeouten: timeouten,
|
||||
autoselen: autoselen
|
||||
}, function(e) {
|
||||
|
||||
let data = m_data_autoins[current_tab_index][index];
|
||||
data.timeout = timeoutval;
|
||||
data.autosel = autoselval;
|
||||
Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
|
||||
});
|
||||
}
|
||||
@@ -224,6 +228,7 @@
|
||||
|
||||
var tdtimeout, timeoutdisable, timeoutval;
|
||||
var tdautosel, autoseldisable, autoselval;
|
||||
|
||||
if (data[i].timeouten) {
|
||||
tdtimeout = '<th style="width:10%;"><input id="id_timeout_en_'+i+'" checked="checked" type="checkbox"/> timeout</th>';
|
||||
timeoutval = data[i].timeout;
|
||||
|
||||
@@ -101,6 +101,9 @@
|
||||
timeouten: timeouten,
|
||||
autoselen: autoselen
|
||||
}, function(e) {
|
||||
let data = m_data_persistence[current_tab_index][index];
|
||||
data.timeout = timeoutval;
|
||||
data.autosel = autoselval;
|
||||
Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -316,6 +316,7 @@ var g_vtoy_cur_language_en =
|
||||
"STR_ENABLE": " Enable",
|
||||
"STR_ADD": "Add",
|
||||
"STR_DEL": "Delete",
|
||||
"STR_DEL_SHORT": "Del",
|
||||
"STR_CLEAR": "Clear",
|
||||
"STR_STATUS": "Status",
|
||||
"STR_DEFAULT": "Default",
|
||||
@@ -459,6 +460,7 @@ var g_vtoy_cur_language_cn =
|
||||
"STR_ENABLE": " 使能",
|
||||
"STR_ADD": "新增",
|
||||
"STR_DEL": "删除",
|
||||
"STR_DEL_SHORT": "删除",
|
||||
"STR_CLEAR": "清除",
|
||||
"STR_STATUS": "状态",
|
||||
"STR_DEFAULT": "默认",
|
||||
@@ -1007,7 +1009,7 @@ function VtoyCommonChangeLanguage(newlang) {
|
||||
$(this).text(g_vtoy_cur_language.STR_ADD);
|
||||
});
|
||||
$("span[id=id_span_btn_del]").each(function(){
|
||||
$(this).text(g_vtoy_cur_language.STR_DEL);
|
||||
$(this).text(g_vtoy_cur_language.STR_DEL_SHORT);
|
||||
});
|
||||
|
||||
$("span[id=id_span_enable]").each(function(){
|
||||
@@ -1436,7 +1438,7 @@ function ventoy_get_xslg_addbtn(mclass) {
|
||||
}
|
||||
|
||||
function ventoy_get_xslg_delbtn(mclass) {
|
||||
return '<button class="btn btn-xs btn-lg btn-danger btn-del '+mclass+'"><span class="fa fa-trash"> </span><span id="id_span_btn_del">'+g_vtoy_cur_language.STR_DEL+'</span></button>';
|
||||
return '<button class="btn btn-xs btn-lg btn-danger btn-del '+mclass+'"><span class="fa fa-trash"> </span><span id="id_span_btn_del">'+g_vtoy_cur_language.STR_DEL_SHORT+'</span></button>';
|
||||
}
|
||||
|
||||
function ventoy_get_addbtn(mclass) {
|
||||
@@ -1444,7 +1446,7 @@ function ventoy_get_addbtn(mclass) {
|
||||
}
|
||||
|
||||
function ventoy_get_delbtn(mclass) {
|
||||
return '<button class="btn btn-danger btn-del '+mclass+'"><span class="fa fa-trash"> </span><span id="id_span_btn_del">'+g_vtoy_cur_language.STR_DEL+'</span></button>';
|
||||
return '<button class="btn btn-danger btn-del '+mclass+'"><span class="fa fa-trash"> </span><span id="id_span_btn_del">'+g_vtoy_cur_language.STR_DEL_SHORT+'</span></button>';
|
||||
}
|
||||
|
||||
function ventoy_confirm(title, cb, data1, data2) {
|
||||
|
||||
Reference in New Issue
Block a user