Add files via upload

This commit is contained in:
公明
2026-07-24 14:08:19 +08:00
committed by GitHub
parent 151b445c74
commit 7d1e9bdac4
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -57,6 +57,12 @@ function syncAssetSelect(selectOrId) {
if (typeof syncSettingsCustomSelect === 'function') syncSettingsCustomSelect(select);
}
function closeAssetCustomSelects() {
if (typeof closeAllSettingsCustomSelects === 'function') {
closeAllSettingsCustomSelects();
}
}
function assetT(key, fallback, options) {
if (window.i18next && typeof window.i18next.t === 'function') {
const value = window.i18next.t(key, options || {});
@@ -874,6 +880,7 @@ async function openAssetProjectModal() {
}
function closeAssetProjectModal() {
closeAssetCustomSelects();
if (typeof closeAppModal === 'function') closeAppModal('asset-project-modal');
else document.getElementById('asset-project-modal').style.display = 'none';
}
@@ -922,6 +929,7 @@ function openAssetBulkEdit() {
}
function closeAssetBulkEdit() {
closeAssetCustomSelects();
if (typeof closeAppModal === 'function') closeAppModal('asset-bulk-edit-modal');
else document.getElementById('asset-bulk-edit-modal').style.display = 'none';
}
@@ -1279,6 +1287,7 @@ async function openAssetEditor(indexOrAsset) {
function closeAssetEditor(force) {
if (!force && assetPageState.editorDirty && !confirm(assetT('assets.discardChanges', '放弃尚未保存的更改吗?'))) return;
closeAssetCustomSelects();
if (typeof closeAppModal === 'function') closeAppModal('asset-editor-modal');
else document.getElementById('asset-editor-modal').style.display = 'none';
const returnFocus = assetPageState.editorReturnFocus;
+1
View File
@@ -4568,3 +4568,4 @@ document.addEventListener('languagechange', function () {
window.initSettingsCustomSelects = initSettingsCustomSelects;
window.refreshSettingsCustomSelects = refreshSettingsCustomSelects;
window.closeAllSettingsCustomSelects = closeAllSettingsCustomSelects;