Merge branch 'sprint/hufangzhou_25842' into 'master'

* Fix bug #25842.

See merge request easycorp/zentaopms!4719
This commit is contained in:
王怡栋
2022-07-28 08:49:15 +00:00
+9
View File
@@ -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');