* Change the default checked issue.

This commit is contained in:
tianshujie
2023-07-18 16:26:42 +08:00
parent 8a6838bed3
commit 1ab358b8d5
2 changed files with 4 additions and 4 deletions
+2
View File
@@ -20,6 +20,7 @@ window.changeDoclibAcl = function(e)
{
$('.apilib').removeClass('hidden');
$('#aclBox .check-list').html($('#aclAPIBox .check-list').html());
$("#aclBox input[id='acl_open']").prop('checked', true);
$('.executionBox').addClass('hidden');
}
@@ -27,6 +28,7 @@ window.changeDoclibAcl = function(e)
{
$('.apilib').addClass('hidden');
$('#aclBox .check-list').html($('#aclOtherBox .check-list').html());
$("#aclBox input[id='acl_default']").prop('checked', true);
$('.executionBox').removeClass('hidden');
}
+2 -4
View File
@@ -101,8 +101,8 @@ formPanel
set::name('acl'),
set::items($lang->doclib->aclList),
set::value($acl),
on::change("toggleAcl('lib');"),
)
on::change("toggleAcl('lib')"),
),
),
),
formRow
@@ -156,7 +156,6 @@ formPanel
(
set::name('acl'),
set::items($lang->api->aclList),
set::value('open'),
)
)
),
@@ -171,7 +170,6 @@ formPanel
(
set::name('acl'),
set::items($lang->doclib->aclList),
set::value('default'),
)
),
formHidden('type', $type),