diff --git a/module/doc/control.php b/module/doc/control.php index f750ff202b..08d8980fac 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1291,6 +1291,7 @@ class doc extends control */ public function tableContents($type = 'custom', $objectID = 0, $libID = 0, $moduleID = 0, $browseType = 'all', $orderBy = 'status,id_desc', $param = 0, $recTotal = 0, $recPerPage = 20, $pageID = 1) { + $this->view->isFirstLoad = $objectID == 0 ? 'true' : 'false'; $this->session->set('createProjectLocate', $this->app->getURI(true), 'doc'); if(empty($browseType)) $browseType = 'all'; @@ -1363,6 +1364,7 @@ class doc extends control $this->view->canExport = common::hasPriv('doc', $type . '2export'); $this->view->apiLibID = key($apiLibs); + $this->display(); } diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index f97ae54674..4585d84280 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -61,6 +61,7 @@ js::set('versionLang', $lang->build->common); /* ObjectType and objectID used for other space. */ js::set('objectType', isset($type) ? $type : ''); js::set('objectID', isset($objectID) ? $objectID : ''); +js::set('isFirstLoad', isset($isFirstLoad) ? $isFirstLoad: ''); ?>