From 506eaa5fdd8d9ba8f8156b02eaeeedfac392b944 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Fri, 9 Apr 2021 10:30:21 +0800 Subject: [PATCH] * Fix bug #11867. --- module/doc/control.php | 14 ++++++++++++++ module/doc/view/edit.html.php | 1 - module/doc/view/side.html.php | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 0696dacc5e..ef8daa8ea6 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -491,8 +491,22 @@ class doc extends control else { $this->app->rawMethod = $objectType; + + /* High light menu. */ + if($objectType) + { + $menu = $this->lang->doc->menu->$objectType; + $menu['alias'] .= ',edit'; + $menu['subModule'] = 'doc'; + $this->lang->doc->menu->$objectType = $menu; + } } + $objects = $this->doc->getOrderedObjects($objectType); + $libs = $this->doc->getLibsByObject($objectType, $objectID); + $this->lang->modulePageNav = $this->doc->select($objectType, $objects, $objectID, $libs, $libID); + $this->lang->TRActions = common::hasPriv('doc', 'create') ? $this->doc->buildCreateButton4Doc($objectType, $objectID, $libID) : ''; + $this->view->title = $lib->name . $this->lang->colon . $this->lang->doc->edit; $this->view->position[] = html::a($this->createLink('doc', 'browse', "libID=$libID"), $lib->name); $this->view->position[] = $this->lang->doc->edit; diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index 8e5e663c3f..e9ce3e1968 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -10,7 +10,6 @@ * @link http://www.zentao.net */ ?> -doc->appendNavCSS();?> contentType == 'html') include '../../common/view/kindeditor.html.php';?> contentType == 'markdown') include '../../common/view/markdown.html.php';?> diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index f20cfdebe4..7c34571ec3 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -33,7 +33,7 @@ $sideWidth = common::checkNotCN() ? '270' : '238'; if($type == 'book') { common::printLink('doc', 'editLib', "rootID=$libID", $lang->doc->editBook, '', "class='btn btn-info btn-wide iframe'", '', true); - common::printLink('doc', 'manageBook', "bookID=$libID", $lang->doc->manageBook, '', "class='btn btn-info btn-wide iframe'", '', true); + common::printLink('doc', 'manageBook', "bookID=$libID", $lang->doc->manageBook, '', "class='btn btn-info btn-wide'"); } else {