]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the VentoyPlugson issue that default_file value is wrong for more than 10 theme...
authorlongpanda <admin@ventoy.net>
Sat, 14 Oct 2023 14:15:24 +0000 (22:15 +0800)
committerlongpanda <admin@ventoy.net>
Sat, 14 Oct 2023 14:15:24 +0000 (22:15 +0800)
Plugson/www/buildtime
Plugson/www/helplist
Plugson/www/index.html
Plugson/www/menulist
Plugson/www/plugson_theme.html

index f357e36430b5e02e53ca4d92ddb4146e18b13384..788f0ad34d150068a25cfbb89798db4800144fc6 100644 (file)
@@ -1 +1 @@
-20231003 23:36:44
\ No newline at end of file
+20231014 18:52:12
\ No newline at end of file
index c05e7f844ae6c56d696224beca607e345dc69a72..5c517416a41474be0e512b971d7277574865ed66 100644 (file)
@@ -1 +1 @@
-ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsr_RSta_INtr_TRuk_UAzh_CNzh_TW
\ No newline at end of file
+ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDit_ITja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsr_RSta_INtr_TRuk_UAzh_CNzh_TW
\ No newline at end of file
index f9757b5b4c4f77389bb126e279aa963c3ae53bb1..0a35d601710a3fd144534c999bcbb256efb332c7 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">20231003 23:36:44</b>
+                <b id="plugson_build_date">20231014 18:52:12</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
     <script src="/static/js/jQuery-2.1.4.min.js"></script>\r
     <!-- jquery validate -->\r
     <script src="/static/js/jquery.validate.min.js"></script>    \r
     <script src="/static/js/jQuery-2.1.4.min.js"></script>\r
     <!-- jquery validate -->\r
     <script src="/static/js/jquery.validate.min.js"></script>    \r
-    <script src="/static/js/jquery.validate.vtoymethods.js?v=189"></script>\r
+    <script src="/static/js/jquery.validate.vtoymethods.js?v=192"></script>\r
 \r
 \r
-    <script src="/static/js/jquery.vtoy.alert.js?v=189"></script>\r
-    <script src="/static/js/vtoy.js?v=189"></script>\r
+    <script src="/static/js/jquery.vtoy.alert.js?v=192"></script>\r
+    <script src="/static/js/vtoy.js?v=192"></script>\r
     <script src="/static/js/md5.min.js"></script>\r
 \r
     <!-- Bootstrap 3.3.5 -->\r
     <script src="/static/js/md5.min.js"></script>\r
 \r
     <!-- Bootstrap 3.3.5 -->\r
index 238876413dc00a58e123a64e100e9a612b4bcd50..81dc5253042910b841faf00f6d31c26f143ed7c8 100644 (file)
@@ -1 +1 @@
-ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsl_sisr_RSta_INtr_TRuk_UAzh_CNzh_TW
\ No newline at end of file
+ar_ARbn_BNcs_CZde_DEel_GRen_USes_ESfr_FRhi_HIhr_HRhu_HUid_IDit_ITja_JPka_GEko_KRpl_PLpt_BRpt_PTru_RUsl_sisr_RSta_INtr_TRuk_UAzh_CNzh_TW
\ No newline at end of file
index c59a58087b1bc536e39b1a7ac64b113bc8522896..1e6e8b0d59f4275522c494025d4a615e22498846 100644 (file)
       var id = $(this).attr('id');\r
       if (typeof(id) != 'undefined' && id.startsWith('id_theme_file')) {\r
         $(this).change(function() {\r
       var id = $(this).attr('id');\r
       if (typeof(id) != 'undefined' && id.startsWith('id_theme_file')) {\r
         $(this).change(function() {\r
-          m_data_theme[current_tab_index].default_file =parseInt(id.substr(id.length - 1));\r
+          var prelen = 'id_theme_file_radio'.length;\r
+          m_data_theme[current_tab_index].default_file = parseInt(id.substr(id.length - 1));\r
+          if (id.substr(0, prelen) === 'id_theme_file_radio') {\r
+              m_data_theme[current_tab_index].default_file = parseInt(id.substr(prelen));\r
+          }\r
+          \r
           VtoySaveCurrentPage();\r
         });\r
       }\r
           VtoySaveCurrentPage();\r
         });\r
       }\r