* finish task #2798.

This commit is contained in:
wangyidong
2016-11-15 14:59:42 +08:00
parent 49b2e7b9ae
commit e7991f415b
6 changed files with 50 additions and 28 deletions
+21 -15
View File
@@ -3,21 +3,27 @@ $(function()
$('#libType').change(function()
{
var libType = $(this).val();
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');
}
changeByLibType(libType);
})
changeByLibType($('#libType').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');
}
}