* finish task #5626.

This commit is contained in:
wangyidong
2019-06-03 11:52:54 +08:00
parent 6c721bb4cf
commit 67f21ea76e
3 changed files with 11 additions and 2 deletions
+8 -1
View File
@@ -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;
+1
View File
@@ -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;
+2 -1
View File
@@ -12,8 +12,9 @@ if($this->methodName != 'browse')
$moduleID = '';
}
if(empty($type)) $type = 'product';
$sideWidth = $app->getClientLang() == 'en' ? '270px' : '238px';
?>
<div class="side-col" style="width: 238px" data-min-width="240">
<div class="side-col" style="width:<?php echo $sideWidth;?>" data-min-width="240">
<div class="cell">
<div class="tabs">
<ul class='nav nav-tabs'>