From 9baa95359c7c86e332674fcc5a3952cdc4466c90 Mon Sep 17 00:00:00 2001 From: longpanda Date: Sat, 30 Apr 2022 14:52:00 +0800 Subject: [PATCH] Fix a bug in menu tip plugin webpage of VentoyPlugson. (#1602) --- Plugson/www/buildtime | 2 +- Plugson/www/index.html | 2 +- Plugson/www/plugson_menu_tip.html | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Plugson/www/buildtime b/Plugson/www/buildtime index bbcb4d7c..89141bd2 100644 --- a/Plugson/www/buildtime +++ b/Plugson/www/buildtime @@ -1 +1 @@ -20220108 22:41:02 \ No newline at end of file +20220430 13:06:42 \ No newline at end of file diff --git a/Plugson/www/index.html b/Plugson/www/index.html index b65efa52..e6f5fd1d 100644 --- a/Plugson/www/index.html +++ b/Plugson/www/index.html @@ -723,7 +723,7 @@ diff --git a/Plugson/www/plugson_menu_tip.html b/Plugson/www/plugson_menu_tip.html index 4b12cd8d..f91b7c6c 100644 --- a/Plugson/www/plugson_menu_tip.html +++ b/Plugson/www/plugson_menu_tip.html @@ -195,7 +195,7 @@ $('input:text[id=id_tip_text_top]').val(data.top); $('input:text[id=id_tip_text_color]').val(data.color); - FillTipTable(data); + FillTipTable(data.tips); } @@ -208,7 +208,7 @@ } current_tab_index = index; - VtoyFillCurrentPageItem(m_data_tip[index].tips); + VtoyFillCurrentPageItem(m_data_tip[index]); } //Main process @@ -332,8 +332,9 @@ $('input:text[id=id_tip_text_left]').change(function() { var value = $('input:text[id=id_tip_text_left]').val(); - if (ventoy_check_percent(value)) { + if (ventoy_check_percent(value)) { VtoySaveCurrentPage(); + m_data_tip[current_tab_index].left = value; } else { Message.error(g_vtoy_cur_language.STR_INVALID_PERCENT); $('input:text[id=id_tip_text_left]').val(m_data_tip[current_tab_index].left); @@ -343,6 +344,7 @@ var value = $('input:text[id=id_tip_text_top]').val(); if (ventoy_check_percent(value)) { VtoySaveCurrentPage(); + m_data_tip[current_tab_index].top = value; } else { Message.error(g_vtoy_cur_language.STR_INVALID_PERCENT); $('input:text[id=id_tip_text_top]').val(m_data_tip[current_tab_index].top); @@ -353,6 +355,7 @@ if (value.length > 0) { if (ventoy_check_color(value)) { VtoySaveCurrentPage(); + m_data_tip[current_tab_index].color = value; } else { Message.error(g_vtoy_cur_language.STR_INVALID_COLOR); $('input:text[id=id_tip_text_color]').val(m_data_tip[current_tab_index].color);