* finish task #2798.
This commit is contained in:
+21
-15
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user