xxb/module/group/js/managepriv.js
2023-10-23 15:51:36 +08:00

31 lines
847 B
JavaScript

$(document).ready(function()
{
$('[name*=tree]').each(function()
{
if($(this).val() == 'browse') $(this).parent('label').css('width', '');
});
$('[name*=setting]').each(function()
{
if($(this).val() == 'lang') $(this).parent('label').css('width', '');
});
$('[name*=report]').each(function()
{
if($(this).val() == 'browse') $(this).parent('label').css('width', '');
});
});
function showPriv(value)
{
location.href = createLink('group', 'managePriv', "type=byGroup&param="+ groupID + "&menu=&version=" + value);
}
$('.checkApp').click(function()
{
$(this).parents('.item').find('[type=checkbox]').prop('checked', $(this).prop('checked'));
});
$('.checkModule').click(function()
{
$(this).parents('tr').find('[type=checkbox]').prop('checked', $(this).prop('checked'));
});