* [misc] add file selector to doc basic setting dialog for old doc.

This commit is contained in:
sunhao
2024-12-09 09:21:27 +08:00
committed by 刘刚
parent bf28286bed
commit 4e0c042b92
2 changed files with 6 additions and 1 deletions
-1
View File
@@ -1127,7 +1127,6 @@ const commands =
uid : doc.data.uid,
};
mergeDocFormData(docData, formData);
$.post($.createLink('doc', 'edit', `docID=${docID}`), docData);
}
});
},
+6
View File
@@ -87,6 +87,12 @@ formPanel
)
)
: null,
$doc->contentType != 'doc' ? formGroup
(
setStyle('min-height', 'auto'),
set::label($lang->doc->files),
fileSelector()
) : null,
$isDraft ? null : formGroup
(
set::label($lang->doclib->control),