This commit is contained in:
tianshujie98
2021-07-28 13:38:00 +08:00
parent 6d95b80fb1
commit 034fe1fe7a
+7 -1
View File
@@ -1793,6 +1793,12 @@ class docModel extends model
return $html;
}
/**
* Build collect button from document.
*
* @access public
* @return string
*/
public function buildCollectButton4Doc()
{
$allLibs = array_keys($this->getLibs('all'));
@@ -2160,7 +2166,7 @@ class docModel extends model
foreach($moduleDocs[$module->id] as $doc)
{
if(!$docID and $currentMethod != 'tablecontents') $docID = $doc->id;
$treeMenu[$module->id] = '<li' . ($doc->id == $docID ? ' class="active"' : '') . '>';
$treeMenu[$module->id] .= '<li' . ($doc->id == $docID ? ' class="active"' : '') . '>';
if($currentMethod == 'tablecontents')
{