mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
output number of folders/docs only if not 0
This commit is contained in:
parent
b5120113f7
commit
e20d7a21f8
|
@ -3238,8 +3238,10 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
|||
$subsub = SeedDMS_Core_DMS::filterAccess($subsub, $user, M_READ);
|
||||
$subdoc = $subFolder->getDocuments();
|
||||
$subdoc = SeedDMS_Core_DMS::filterAccess($subdoc, $user, M_READ);
|
||||
$content .= '<i class="fa fa-folder" title="'.getMLText("folders").'"></i> '.count($subsub)."<br />";
|
||||
$content .= '<i class="fa fa-file" title="'.getMLText("documents").'"></i> '.count($subdoc);
|
||||
if(count($subsub))
|
||||
$content .= '<i class="fa fa-folder" title="'.getMLText("folders").'"></i> '.count($subsub)."<br />";
|
||||
if(count($subdoc))
|
||||
$content .= '<i class="fa fa-file" title="'.getMLText("documents").'"></i> '.count($subdoc);
|
||||
}
|
||||
$content .= "</div>";
|
||||
return $content;
|
||||
|
|
|
@ -3271,8 +3271,10 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
|||
$subsub = SeedDMS_Core_DMS::filterAccess($subsub, $user, M_READ);
|
||||
$subdoc = $subFolder->getDocuments();
|
||||
$subdoc = SeedDMS_Core_DMS::filterAccess($subdoc, $user, M_READ);
|
||||
$content .= '<i class="fa fa-folder" title="'.getMLText("folders").'"></i> '.count($subsub)."<br />";
|
||||
$content .= '<i class="fa fa-file" title="'.getMLText("documents").'"></i> '.count($subdoc);
|
||||
if(count($subsub))
|
||||
$content .= '<i class="fa fa-folder" title="'.getMLText("folders").'"></i> '.count($subsub)."<br />";
|
||||
if(count($subdoc))
|
||||
$content .= '<i class="fa fa-file" title="'.getMLText("documents").'"></i> '.count($subdoc);
|
||||
}
|
||||
$content .= "</div>";
|
||||
return $content;
|
||||
|
|
Loading…
Reference in New Issue
Block a user