* Fix openApp in doc.

This commit is contained in:
zhujinyong
2021-04-03 17:14:57 +08:00
parent a67d020489
commit eaf5ff8795
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -352,6 +352,10 @@ class doc extends control
$this->execution->setMenu($objectID);
unset($this->lang->exectuion->menu->doc['subMenu']);
}
else
{
$this->app->rawMethod = $objectType;
}
$lib = $this->doc->getLibByID($libID);
$type = $lib->type;
+1 -1
View File
@@ -15,7 +15,7 @@
.main-row > .side-col {transition: width .2s;}
.main-row > .main-col .article-content {transition: max-width; margin: 0 auto !important;}
.main-row > .side-col > .cell {transition: opacity .2s;}
.main-row > .side-col > .cell {transition: opacity .2s; margin-bottom: 10px;}
.doc-fullscreen .main-row > .side-col {width: 0; position: relative; overflow: hidden;}
.doc-fullscreen .fullscreen-btn > .icon-fullscreen:before {content: '\e972';}
.right-icon a {color: #1183fb;}
+2 -2
View File
@@ -1975,7 +1975,7 @@ EOF;
foreach($moduleDocs[0] as $doc)
{
if(!$docID) $docID = $doc->id;
$treeMenu[0] .= '<li' . ($doc->id == $docID ? ' class="active"' : '') . '>' . html::a(inlink('objectLibs', "type=$type&objectID=$objectID&libID=$rootID&docID={$doc->id}"), $doc->title) . '</li>';
$treeMenu[0] .= '<li' . ($doc->id == $docID ? ' class="active"' : '') . '>' . html::a(inlink('objectLibs', "type=$type&objectID=$objectID&libID=$rootID&docID={$doc->id}"), $doc->title, '', "data-app='{$this->app->openApp}'") . '</li>';
}
}
@@ -2007,7 +2007,7 @@ EOF;
foreach($moduleDocs[$module->id] as $doc)
{
if(!$docID) $docID = $doc->id;
$treeMenu[$module->id] .= '<li' . ($doc->id == $docID ? ' class="active"' : '') . '>' . html::a(inlink('objectLibs', "type=$type&objectID=$objectID&libID=$libID&docID={$doc->id}"), $doc->title) . '</li>';
$treeMenu[$module->id] .= '<li' . ($doc->id == $docID ? ' class="active"' : '') . '>' . html::a(inlink('objectLibs', "type=$type&objectID=$objectID&libID=$libID&docID={$doc->id}"), $doc->title, '', "data-app='{$this->app->openApp}'") . '</li>';
}
}