From 8be639777893e90f6c04cc8dbc1fba832ae6e553 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 6 Apr 2023 15:32:45 +0800 Subject: [PATCH 1/2] * Fixed an issue where the document was not clickable. --- module/doc/control.php | 1 + module/doc/css/view.css | 1 + module/doc/model.php | 1 + module/doc/view/lefttree.html.php | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/module/doc/control.php b/module/doc/control.php index 78fb0a617b..687974e296 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1218,6 +1218,7 @@ class doc extends control $this->view->users = $this->user->getPairs('noclosed,noletter'); $this->view->autoloadPage = $this->doc->checkAutoloadPage($doc); $this->view->libTree = $this->doc->getLibTree($libID, $libs, $type, $doc->module, $objectID); + $this->view->preAndNext = $this->loadModel('common')->getPreAndNextObject('doc', $docID); $this->display(); } diff --git a/module/doc/css/view.css b/module/doc/css/view.css index d4e4b007b8..ce035628a2 100644 --- a/module/doc/css/view.css +++ b/module/doc/css/view.css @@ -47,3 +47,4 @@ .overflow-visible {overflow: visible;} .overflow-hidden {overflow: hidden;} #mainContent > .panel {margin-bottom: 0; height: calc(100vh - 125px); overflow-y: auto;} +.detail-title .actions .ajaxCollect > img {width: 20px;} diff --git a/module/doc/model.php b/module/doc/model.php index 53e4f4f7ac..476cc9c54f 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2911,6 +2911,7 @@ class docModel extends model if(count($executionLibs[$executionID]) == 1) { $execution->id = $item->id; + $execution->type = 'lib'; $execution->hasAction = true; $execution->children = $item->children; } diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 0dcf02f3f3..35d816a03d 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -338,7 +338,8 @@ $(function() $(this).removeClass('show-icon'); }).on('click', 'a', function() { - if(!$(this).data('action')) return; + if($(this).data('type') == 'execution') return; + var isLib = $(this).hasClass('lib'); var moduleID = $(this).data('id'); var libID = 0; From a882f213488cf9c549de78540f0b4480a5ff2b5f Mon Sep 17 00:00:00 2001 From: guofeilong Date: Thu, 6 Apr 2023 15:33:06 +0800 Subject: [PATCH 2/2] * Add pd-r to class hover in a . --- module/doc/view/lefttree.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 35d816a03d..a916de4b34 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -26,7 +26,8 @@ .img-lib {flex: 0 0 14px; height: 14px; margin-right: 5px;} .tree-icon {position: absolute; right: 0;} .tree li > a {max-width: 100%; padding: 2px;} -.file-tree a.show-icon > div {padding-right: 15px;} +.file-tree a.show-icon > div, +.file-tree a.hover > div {padding-right: 15px;} .tree li.has-input {overflow: hidden;} .tree-text {overflow: hidden;} i.btn-info, i.btn-info:hover {border: none; background: #fff; box-shadow: unset;}