mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-04 23:22:24 +00:00
get root folder in printTreeNavigationJs() only if partialtree is not set
This commit is contained in:
parent
3d33c1d49c
commit
7761f5d77b
|
@ -1846,9 +1846,9 @@ $(document).ready(function() {
|
|||
$folder = $this->params['dms']->getFolder($folderid);
|
||||
if(!$partialtree) {
|
||||
$path = $folder->getPath();
|
||||
/* Get the first folder (root folder) of path */
|
||||
$folder = array_shift($path);
|
||||
}
|
||||
/* Get the first folder (root folder) of path */
|
||||
$folder = array_shift($path);
|
||||
$node = array('label'=>$folder->getName(), 'id'=>$folder->getID(), 'load_on_demand'=>false, 'is_folder'=>true);
|
||||
if(!$folder->hasSubFolders()) {
|
||||
$node['load_on_demand'] = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user