diff --git a/module/doc/css/common.css b/module/doc/css/common.css index 32daee4258..191bff0055 100644 --- a/module/doc/css/common.css +++ b/module/doc/css/common.css @@ -71,3 +71,5 @@ td.c-name a{color: #0c60e1} td.c-name a:visited{color: #082999} .main-col .panel-heading a:visited{color: #082999} + +.panel-title.font-normal .btn-group{margin-left: 20px;} diff --git a/module/doc/model.php b/module/doc/model.php index 1bfaf8f2af..3830a7dd1b 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -49,7 +49,7 @@ class docModel extends model $mainLib = isset($this->lang->doc->libTypeList[$type]) ? $this->lang->doc->libTypeList[$type] : $mainLib; $currentLib = 0; - if(strpos('product,project,custom', $type) !== false) + if(in_array($type, array_keys($this->lang->doc->libTypeList))) { if($type == 'product') $currentLib = $productID; if($type == 'project') $currentLib = $projectID; diff --git a/module/doc/view/alllibs.html.php b/module/doc/view/alllibs.html.php index 51f5b0171a..b0305765d1 100644 --- a/module/doc/view/alllibs.html.php +++ b/module/doc/view/alllibs.html.php @@ -23,15 +23,13 @@