X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/76a6b8061c6c4f07a51266c0310b91f684490270..2ec593d3552e4c402a576ef01ef01ff5c9dbc866:/Plugson/www/plugson_persistence.html diff --git a/Plugson/www/plugson_persistence.html b/Plugson/www/plugson_persistence.html index 60e0134..d5a4c07 100644 --- a/Plugson/www/plugson_persistence.html +++ b/Plugson/www/plugson_persistence.html @@ -1,10 +1,12 @@
-
+
  

x

- +
+ +
@@ -281,7 +283,7 @@ $('input[type=text]').each(function (){ var id = $(this).attr('id'); if (typeof(id) == 'undefined') { - retunrn; + return; } if (id.startsWith('id_text_timeout_') || id.startsWith('id_text_autosel_')) { @@ -510,7 +512,27 @@ $('#id_tab_persistence a[href="#tab_3"]').click(OnClickMultiModeTab); $('#id_tab_persistence a[href="#tab_4"]').click(OnClickMultiModeTab); $('#id_tab_persistence a[href="#tab_5"]').click(OnClickMultiModeTab); - + function UpdateTabTitleIcon(data) { + CommonUpdateTabTitleIcon(data.exist_persistence, '#id_tab_persistence a[href="#tab_', 'persistence'); + } + $('#id_btn_reset').click(function() { + Modal.confirm({msg:GetResetTabConfigTipMsg(current_tab_index, 'persistence')}).on(function(e) { + if (e) { + callVtoySync({ + method : 'persistence_del', + index: current_tab_index, + path: g_del_all_path + }, function(data) { + + }); + + m_data_persistence[current_tab_index].length = 0; + VtoyFillCurrentPageItem(m_data_persistence[g_vtoy_data_default_index]); + Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + } + }); + }); + $('#id_tab_persistence a[href="#tab_0"]').tab('show'); VtoyFillCurrentPageItem(m_data_persistence[0]); VtoyPageLanguageChange(g_current_language);