]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/plugson_menu_tip.html
added Spanish (Latinoamérica) translation (#1865)
[Ventoy.git] / Plugson / www / plugson_menu_tip.html
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
-    FillTipTable(data);\r
+    FillTipTable(data.tips);\r
   }\r
 \r
 \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
   $('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
+      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
     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
     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