* [ui] fix whitelist box not show in move doc modal in mine space.
This commit is contained in:
@@ -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');
|
||||
};
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user