diff --git a/module/doc/css/common.css b/module/doc/css/common.css index de4e3bab20..5f9f2fbee6 100644 --- a/module/doc/css/common.css +++ b/module/doc/css/common.css @@ -13,8 +13,6 @@ .row-spliting .col-spliter:before, .row-spliting .col-spliter:after {opacity: 1;} -html[lang='en'] #whiteListBox .input-group:last-child .input-group-addon{padding:5px 16px} - @media (max-width: 720px) { .split-row > .side-col, @@ -84,3 +82,5 @@ td.c-name a:visited{color: #082999} #pageNav .dropdown-menu{max-height:250px; overflow-y:auto;} #createDropdown ul.dropdown-menu{width:100%;} + +.color-darkblue{background:rgb(0,0,139)} diff --git a/module/doc/css/common.en.css b/module/doc/css/common.en.css new file mode 100644 index 0000000000..b632165581 --- /dev/null +++ b/module/doc/css/common.en.css @@ -0,0 +1 @@ +#whiteListBox .input-group:last-child .input-group-addon{padding:5px 16px} diff --git a/module/doc/model.php b/module/doc/model.php index a90e0162cf..cb24447ca1 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1621,12 +1621,13 @@ class docModel extends model */ public function buildCreateButton4Doc() { - $libID = $this->dao->select('id')->from(TABLE_DOCLIB)->where('deleted')->eq(0)->orderBy('id desc')->limit('1')->fetch('id'); + $libs = $this->getLibs('all'); $html = ""; - if($libID) + if($libs) { + $libID = key($libs); $html .= "