mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Ajout fonction tout drouler sur liste catgories
This commit is contained in:
parent
927d797c70
commit
36a36dfdd4
|
|
@ -178,10 +178,10 @@ if ($conf->use_javascript)
|
|||
{
|
||||
$newelement['expanded']=false;
|
||||
}
|
||||
//print 'x'.$cate_arbo[$key]['fullpath'].' level='.$level.' expand='.$newelement['expanded'].'<br>';
|
||||
}
|
||||
|
||||
$node[$cate_arbo[$key]['fullpath']]=$node[$nodeparent]->addItem(new HTML_TreeNode($newelement));
|
||||
//print 'x'.$cate_arbo[$key]['fullpath'].' ' expand='.$newelement['expanded'].'<br>';
|
||||
$node[$cate_arbo[$key]['fullpath']]=&$node[$nodeparent]->addItem(new HTML_TreeNode($newelement));
|
||||
//print 'Resultat: noeud '.$cate_arbo[$key]['fullpath']." créé<br>\n";
|
||||
}
|
||||
|
||||
|
|
@ -190,7 +190,15 @@ if ($conf->use_javascript)
|
|||
// Affiche arbre
|
||||
print '<script src="'.DOL_URL_ROOT.'/includes/treemenu/TreeMenu.js" language="JavaScript" type="text/javascript"></script>';
|
||||
|
||||
$treeMenu = new HTML_TreeMenu_DHTML($menu, array('images' => DOL_URL_ROOT.'/includes/treemenu/images', 'defaultClass' => 'treeMenuDefault', false));
|
||||
$treeMenu = new HTML_TreeMenu_DHTML($menu,
|
||||
array(
|
||||
'images' => DOL_URL_ROOT.'/includes/treemenu/images',
|
||||
'defaultClass' => 'treeMenuDefault',
|
||||
'noTopLevelImages' => false,
|
||||
'jsObjectName' => 'tree_categories',
|
||||
'usePersistence' => false
|
||||
),
|
||||
true);
|
||||
$treeMenu->printMenu();
|
||||
|
||||
//$listBox = new HTML_TreeMenu_Listbox($menu, array('linkTarget' => '_self'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user