]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix a bug in menu tip plugin webpage of VentoyPlugson. (#1602)
authorlongpanda <admin@ventoy.net>
Sat, 30 Apr 2022 06:52:00 +0000 (14:52 +0800)
committerlongpanda <admin@ventoy.net>
Sat, 30 Apr 2022 06:52:00 +0000 (14:52 +0800)
Plugson/www/buildtime
Plugson/www/index.html
Plugson/www/plugson_menu_tip.html

index bbcb4d7cc4a7da8ff66572d386ef253ec9032496..89141bd2eca60c7b569a2190f24f9e624fb6cd1e 100644 (file)
@@ -1 +1 @@
-20220108 22:41:02
\ No newline at end of file
+20220430 13:06:42
\ No newline at end of file
index b65efa5216a5242c1380d99071fed46a17b8728b..e6f5fd1d133d0414afb0e60649e19dd4ef522b48 100644 (file)
 \r
         <footer class="main-footer">\r
             <div class="pull-right hidden-xs">\r
 \r
         <footer class="main-footer">\r
             <div class="pull-right hidden-xs">\r
-                <b id="plugson_build_date">20220311 21:24:51</b>
+                <b id="plugson_build_date">20220430 13:06:42</b>
             </div>\r
             <strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>\r
         </footer>\r
             </div>\r
             <strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>\r
         </footer>\r
index 4b12cd8dcdab85117386a8a1e66dac8385269879..f91b7c6c57f5c98caeda765a983ba57a4cb0108d 100644 (file)
     $('input:text[id=id_tip_text_top]').val(data.top);\r
     $('input:text[id=id_tip_text_color]').val(data.color);\r
 \r
     $('input:text[id=id_tip_text_top]').val(data.top);\r
     $('input:text[id=id_tip_text_color]').val(data.color);\r
 \r
-    FillTipTable(data);\r
+    FillTipTable(data.tips);\r
   }\r
 \r
 \r
   }\r
 \r
 \r
     }\r
     \r
     current_tab_index = index;\r
     }\r
     \r
     current_tab_index = index;\r
-    VtoyFillCurrentPageItem(m_data_tip[index].tips);\r
+    VtoyFillCurrentPageItem(m_data_tip[index]);\r
   }\r
 \r
   //Main process\r
   }\r
 \r
   //Main process\r
 \r
   $('input:text[id=id_tip_text_left]').change(function() {\r
     var value = $('input:text[id=id_tip_text_left]').val();\r
 \r
   $('input:text[id=id_tip_text_left]').change(function() {\r
     var value = $('input:text[id=id_tip_text_left]').val();\r
-    if (ventoy_check_percent(value)) {\r
+    if (ventoy_check_percent(value)) {      \r
       VtoySaveCurrentPage();\r
       VtoySaveCurrentPage();\r
+      m_data_tip[current_tab_index].left = value;\r
     } else {\r
       Message.error(g_vtoy_cur_language.STR_INVALID_PERCENT);\r
       $('input:text[id=id_tip_text_left]').val(m_data_tip[current_tab_index].left);\r
     } else {\r
       Message.error(g_vtoy_cur_language.STR_INVALID_PERCENT);\r
       $('input:text[id=id_tip_text_left]').val(m_data_tip[current_tab_index].left);\r
     var value = $('input:text[id=id_tip_text_top]').val();\r
     if (ventoy_check_percent(value)) {\r
       VtoySaveCurrentPage();\r
     var value = $('input:text[id=id_tip_text_top]').val();\r
     if (ventoy_check_percent(value)) {\r
       VtoySaveCurrentPage();\r
+      m_data_tip[current_tab_index].top = value;\r
     } else {\r
       Message.error(g_vtoy_cur_language.STR_INVALID_PERCENT);\r
       $('input:text[id=id_tip_text_top]').val(m_data_tip[current_tab_index].top);\r
     } else {\r
       Message.error(g_vtoy_cur_language.STR_INVALID_PERCENT);\r
       $('input:text[id=id_tip_text_top]').val(m_data_tip[current_tab_index].top);\r
     if (value.length > 0) {\r
       if (ventoy_check_color(value)) {\r
         VtoySaveCurrentPage();\r
     if (value.length > 0) {\r
       if (ventoy_check_color(value)) {\r
         VtoySaveCurrentPage();\r
+        m_data_tip[current_tab_index].color = value;\r
       } else {\r
         Message.error(g_vtoy_cur_language.STR_INVALID_COLOR);\r
         $('input:text[id=id_tip_text_color]').val(m_data_tip[current_tab_index].color);\r
       } else {\r
         Message.error(g_vtoy_cur_language.STR_INVALID_COLOR);\r
         $('input:text[id=id_tip_text_color]').val(m_data_tip[current_tab_index].color);\r