mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
check if folder tree is enable when creating javascript code
This commit is contained in:
parent
69c84c86fd
commit
2d6c0eea9e
|
@ -122,6 +122,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Theme_Style {
|
|||
$orderby = $this->params['orderby'];
|
||||
$orderdir = (isset($orderby[1]) ? ($orderby[1] == 'd' ? 'desc' : 'asc') : 'asc');
|
||||
$expandFolderTree = $this->params['expandFolderTree'];
|
||||
$enableFolderTree = $this->params['enableFolderTree'];
|
||||
$enableDropUpload = $this->params['enableDropUpload'];
|
||||
$maxItemsPerPage = $this->params['maxItemsPerPage'];
|
||||
$maxuploadsize = $this->params['maxuploadsize'];
|
||||
|
@ -230,7 +231,7 @@ $('body').on('click', '.order-btn', function(ev) {
|
|||
});
|
||||
<?php } ?>
|
||||
<?php
|
||||
if($showtree == 1)
|
||||
if($enableFolderTree && $showtree == 1)
|
||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, 'maintree', ($expandFolderTree == 1) ? -1 : 3, $orderby);
|
||||
|
||||
if ($enableDropUpload /*&& $folder->getAccessMode($user) >= M_READWRITE*/) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user