Put folder tree into the sidebox using new parent_node attribute

This commit is contained in:
Nathan Gray 2013-02-13 11:33:53 +00:00
parent ce4805ead6
commit b62262b566
2 changed files with 10 additions and 2 deletions

View File

@ -836,6 +836,14 @@ class mail_hooks
}
// Destination div for folder tree
$file[] = array(
'no_lang' => true,
'text'=>'<span id="tree_target"/>',
'link'=>false,
'icon' => false
);
// display them all
display_sidebox($appname,$menu_title,$file);

View File

@ -32,7 +32,7 @@
</grid>
</template>
<template id="mail.index" template="" lang="" group="0" version="1.9.001">
<tree id="nm[foldertree]" onclick="changeFolder(widget.event_args[0],widget);"/>
<tree id="nm[foldertree]" onclick="changeFolder(widget.event_args[0],widget);" parent_node="tree_target"/>
<html id="msg"/>
<nextmatch id="nm" options="mail.index.rows"/>
</template>