14 lines
444 B
JavaScript
14 lines
444 B
JavaScript
$(function()
|
|
{
|
|
$('ul.tree:first > li').addClass('open').addClass('id');
|
|
$('#module').change(function()
|
|
{
|
|
if($(this).val() == '') return;
|
|
$('.treeBox').load(createLink('group', 'ajaxGetPrivTree', 'privIdList=' + privIdList + '&module=' + $(this).val() + '&type=' + type), function()
|
|
{
|
|
$('ul.tree').tree();
|
|
$('ul.tree:first > li').addClass('open').addClass('id');
|
|
});
|
|
})
|
|
})
|