* Change the if statement to toggleClass.

This commit is contained in:
hufangzhou
2022-07-20 14:27:08 +08:00
parent fab8fedf10
commit 9e54c0b55c
+1 -8
View File
@@ -36,12 +36,5 @@ function loadDocLibs(type)
$('#lib').chosen();
})
if(type == 'api')
{
$('#docType').addClass('hidden');
}
else
{
$('#docType').removeClass('hidden');
}
$('#docType').toggleClass('hidden', type == 'api');
}