mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-27 16:01:14 +00:00
Add theme plugin duplicate file check. (#2078)
This commit is contained in:
@@ -757,7 +757,7 @@
|
||||
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b id="plugson_build_date">20221220 18:30:51</b>
|
||||
<b id="plugson_build_date">20221220 19:41:37</b>
|
||||
</div>
|
||||
<strong><a href="https://www.ventoy.net" target="_blank">https://www.ventoy.net</a></strong>
|
||||
</footer>
|
||||
@@ -777,10 +777,10 @@
|
||||
<script src="/static/js/jQuery-2.1.4.min.js"></script>
|
||||
<!-- jquery validate -->
|
||||
<script src="/static/js/jquery.validate.min.js"></script>
|
||||
<script src="/static/js/jquery.validate.vtoymethods.js?v=101"></script>
|
||||
<script src="/static/js/jquery.validate.vtoymethods.js?v=102"></script>
|
||||
|
||||
<script src="/static/js/jquery.vtoy.alert.js?v=101"></script>
|
||||
<script src="/static/js/vtoy.js?v=101"></script>
|
||||
<script src="/static/js/jquery.vtoy.alert.js?v=102"></script>
|
||||
<script src="/static/js/vtoy.js?v=102"></script>
|
||||
<script src="/static/js/md5.min.js"></script>
|
||||
|
||||
<!-- Bootstrap 3.3.5 -->
|
||||
|
@@ -403,9 +403,13 @@
|
||||
index: current_tab_index,
|
||||
path: data.path
|
||||
}, function(e) {
|
||||
list.push(data);
|
||||
FillThemeFileTable(list, m_data_theme[current_tab_index].default_file);
|
||||
Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
|
||||
if (e.result === 'success') {
|
||||
list.push(data);
|
||||
FillThemeFileTable(list, m_data_theme[current_tab_index].default_file);
|
||||
Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
|
||||
} else if (e.result === 'duplicate') {
|
||||
Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -428,9 +432,13 @@
|
||||
index: current_tab_index,
|
||||
path: data.path
|
||||
}, function(e) {
|
||||
list.push(data);
|
||||
FillThemeFontTable(list);
|
||||
Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
|
||||
if (e.result === 'success') {
|
||||
list.push(data);
|
||||
FillThemeFontTable(list);
|
||||
Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
|
||||
} else if (e.result === 'duplicate') {
|
||||
Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user