From 7f8a0f58591fb68a7eb414df9c86ba38c70fb104 Mon Sep 17 00:00:00 2001 From: ak703 Date: Mon, 9 Feb 2004 23:44:46 +0000 Subject: [PATCH] modified for use of foldertree in felamimail (and other apps later..) --- phpgwapi/templates/idots/head.inc.php | 6 ++++++ phpgwapi/templates/idots/head.tpl | 1 + 2 files changed, 7 insertions(+) diff --git a/phpgwapi/templates/idots/head.inc.php b/phpgwapi/templates/idots/head.inc.php index c4eed1bea6..ad640822b6 100644 --- a/phpgwapi/templates/idots/head.inc.php +++ b/phpgwapi/templates/idots/head.inc.php @@ -62,6 +62,11 @@ '; } +// 030204 ndee for calling foldertree + + $foldertree_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/js/foldertree/foldertree.js'; + $js_foldertree = ''; + $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl->set_unknowns('remove'); $tpl->set_file(array('_head' => 'head.tpl')); @@ -84,6 +89,7 @@ 'theme_css' => $theme_css, 'css' => $GLOBALS['phpgw']->common->get_css(), 'java_script' => $GLOBALS['phpgw']->common->get_java_script(), + 'js_foldertree' => $js_foldertree, ); $tpl->set_var($var); $tpl->pfp('out','head'); diff --git a/phpgwapi/templates/idots/head.tpl b/phpgwapi/templates/idots/head.tpl index 08cb9286d7..b6e4144929 100644 --- a/phpgwapi/templates/idots/head.tpl +++ b/phpgwapi/templates/idots/head.tpl @@ -17,6 +17,7 @@ {simple_show_hide} {pngfix} {css} + {js_foldertree} {java_script}