Merge branch 'sprint/hufangzhou_25842' into 'master'
* Fix bug #25842. See merge request easycorp/zentaopms!4719
This commit is contained in:
@@ -34,6 +34,15 @@ function loadDocLibs(type)
|
||||
$('#lib').replaceWith(data);
|
||||
$('#lib_chosen').remove();
|
||||
$('#lib').chosen();
|
||||
|
||||
if($('#lib').find('option').length == 0)
|
||||
{
|
||||
$('#submit').attr('disabled', 'disabled');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#submit').removeAttr('disabled');
|
||||
}
|
||||
})
|
||||
|
||||
$('#docType').toggleClass('hidden', type == 'api');
|
||||
|
||||
Reference in New Issue
Block a user