]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/plugson_theme.html
1.1.07 release
[Ventoy.git] / Plugson / www / plugson_theme.html
index 89f069fa93e64a8914ebcf6391a8eb26246f69ca..1e6e8b0d59f4275522c494025d4a615e22498846 100644 (file)
                       <td class="td_ctrl_col" id="td_title_setting">选项设置</td>\r
                       <td>\r
                         <select id="id_theme_sel_gfxmode" name="name_theme_sel_gfxmode" class="form-control">\r
                       <td class="td_ctrl_col" id="td_title_setting">选项设置</td>\r
                       <td>\r
                         <select id="id_theme_sel_gfxmode" name="name_theme_sel_gfxmode" class="form-control">\r
+                            <option title="max">max</option>\r
                             <option title="1920x1080">1920x1080</option>\r
                             <option title="1680x1050">1680x1050</option>\r
                             <option title="1600x900">1600x900</option>\r
                             <option title="1920x1080">1920x1080</option>\r
                             <option title="1680x1050">1680x1050</option>\r
                             <option title="1600x900">1600x900</option>\r
       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