* Change the if statement to toggleClass.
This commit is contained in:
@@ -36,12 +36,5 @@ function loadDocLibs(type)
|
|||||||
$('#lib').chosen();
|
$('#lib').chosen();
|
||||||
})
|
})
|
||||||
|
|
||||||
if(type == 'api')
|
$('#docType').toggleClass('hidden', type == 'api');
|
||||||
{
|
|
||||||
$('#docType').addClass('hidden');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$('#docType').removeClass('hidden');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user