* fix bug #33910.
This commit is contained in:
@@ -803,6 +803,8 @@ class doc extends control
|
||||
*/
|
||||
public function ajaxGetModules($objectType, $objectID, $docType = 'doc')
|
||||
{
|
||||
if(empty($objectID)) return print(html::select('module', array(), '', "class='form-control'"));
|
||||
|
||||
if($docType == 'doc')
|
||||
{
|
||||
$unclosed = strpos($this->config->doc->custom->showLibs, 'unclosed') !== false ? 'unclosedProject' : '';
|
||||
|
||||
@@ -10,6 +10,7 @@ function loadObjectModules(objectType, objectID, docType)
|
||||
{
|
||||
if(typeof docType == 'undefined') docType = 'doc';
|
||||
var link = createLink('doc', 'ajaxGetModules', 'objectType=' + objectType + '&objectID=' + objectID + '&type=' + docType);
|
||||
if(objectType == 'execution' && objectID == 0) var link = createLink('doc', 'ajaxGetModules', 'objectType=project&objectID=' + $('#project').val() + '&type=' + docType);
|
||||
$('#moduleBox').load(link, function(){$('#moduleBox').find('select').picker(); $('#moduleLabel').remove();});
|
||||
}
|
||||
|
||||
|
||||
@@ -100,6 +100,11 @@ function changeApiType()
|
||||
if(apiType == 'project') $('#project').change();
|
||||
if(apiType == 'product') $('#product').change();
|
||||
if(apiType == 'nolink') loadDocLibs('api', 'api');
|
||||
if(apiType == '')
|
||||
{
|
||||
$('#moduleBox').html("<select id='module' name='module' class='form-control'><option value=''></option></select>");
|
||||
$('#moduleBox #module').picker();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user