* [ui] fix whitelist box not show in move doc modal in mine space.

This commit is contained in:
sunhao
2024-11-20 08:41:30 +08:00
committed by 刘刚
parent 16fdb77195
commit 61c2327361
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -12,6 +12,8 @@ window.changeLib = function(e)
window.toggleDocAcl = function(e)
{
$this = $(e.target);
$this.closest('form').find('#whiteListBox').toggleClass('hidden', $(e.target).val() != 'private' || type == 'mine');
const $this = $(e instanceof Event ? e.target : e);
const $form = $this.closest('form,.modal-body').first();
const aclType = $form.find('[name="acl"]:checked').val();
$form.find('#whiteListBox').toggleClass('hidden', type === 'mine' || aclType !== 'private');
};
+1
View File
@@ -24,6 +24,7 @@ formPanel
(
on::change('[name=space]', 'changeSpace'),
on::change('[name=lib]', 'changeLib'),
on::init()->call('toggleDocAcl', jsRaw('$element')),
formGroup
(
set::width('5/6'),