diff --git a/module/doc/js/common.js b/module/doc/js/common.js index 58eee4826e..896d6e0e3e 100644 --- a/module/doc/js/common.js +++ b/module/doc/js/common.js @@ -121,7 +121,14 @@ $(document).ready(function() }; var defaultWidth = $.zui.store.get('splitRowFirstSize:' + id); - if (defaultWidth) setFirstColWidth(defaultWidth); + if(typeof(defaultWidth) !== 'undefined') + { + defaultWidth = 0; + $firstCol.find('.tabs ul.nav-tabs li').each(function(){defaultWidth += $(this).outerWidth()}); + defaultWidth += ($firstCol.find('.tabs ul.nav-tabs li').length - 1) * 10; + defaultWidth += 20; + } + setFirstColWidth(defaultWidth); var documentEventName = '.' + id; diff --git a/module/doc/model.php b/module/doc/model.php index 91fb377946..4103fc5574 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -900,6 +900,7 @@ class docModel extends model if(!isset($libs[$object->lib]) and !isset($extraDocLibs[$object->lib])) return false; if($object->acl == 'open' and !isset($extraDocLibs[$object->lib])) return true; + if($object->acl == 'public' and !isset($extraDocLibs[$object->lib])) return true; $account = ',' . $this->app->user->account . ','; if(isset($object->addedBy) and $object->addedBy == $this->app->user->account) return true; diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index 1ad1b1b4a3..d1a8f27e8d 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -12,8 +12,9 @@ if($this->methodName != 'browse') $moduleID = ''; } if(empty($type)) $type = 'product'; +$sideWidth = $app->getClientLang() == 'en' ? '270px' : '238px'; ?> -
+