Files
EasySoft-ZenTaoPMS/module/doc/js/createlib.js
2018-10-16 13:25:21 +08:00

30 lines
660 B
JavaScript

$(function()
{
$('#type').change(function()
{
var libType = $(this).val();
changeByLibType(libType);
})
changeByLibType($('#type').val());
toggleAcl($('#acl').val());
});
function changeByLibType(libType)
{
if(libType == 'product')
{
$('table tr.product').removeClass('hidden');
$('table tr.project').addClass('hidden');
}
else if(libType == 'project')
{
$('table tr.product').addClass('hidden');
$('table tr.project').removeClass('hidden');
}
else
{
$('table tr.product').addClass('hidden');
$('table tr.project').addClass('hidden');
}
}