X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4bf43ab9d4e6b724836724c1d514760d164df79a..8ef9732931bb298c8d5ffd66efcc4d79ad2cdbe2:/Plugson/www/plugson_conf_replace.html?ds=inline diff --git a/Plugson/www/plugson_conf_replace.html b/Plugson/www/plugson_conf_replace.html index 0561849..2e97523 100644 --- a/Plugson/www/plugson_conf_replace.html +++ b/Plugson/www/plugson_conf_replace.html @@ -1,10 +1,12 @@
-
+
  

菜单别名插件

- +
+ +
@@ -268,7 +270,27 @@ $('#id_tab_conf_replace a[href="#tab_3"]').click(OnClickMultiModeTab); $('#id_tab_conf_replace a[href="#tab_4"]').click(OnClickMultiModeTab); $('#id_tab_conf_replace a[href="#tab_5"]').click(OnClickMultiModeTab); - + function UpdateTabTitleIcon(data) { + CommonUpdateTabTitleIcon(data.exist_conf_replace, '#id_tab_conf_replace a[href="#tab_', 'conf_replace'); + } + $('#id_btn_reset').click(function() { + Modal.confirm({msg:GetResetTabConfigTipMsg(current_tab_index, 'conf_replace')}).on(function(e) { + if (e) { + callVtoySync({ + method : 'conf_replace_del', + index: current_tab_index, + path: g_del_all_path + }, function(data) { + + }); + + m_data_conf_replace[current_tab_index].length = 0; + VtoyFillCurrentPageItem(m_data_conf_replace[g_vtoy_data_default_index]); + Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + } + }); + }); + $('#id_tab_conf_replace a[href="#tab_0"]').tab('show'); VtoyFillCurrentPageItem(m_data_conf_replace[0]); VtoyPageLanguageChange(g_current_language);