From bfc0c4821056504d022c2256b512d32f072e13f0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 13 Feb 2013 16:30:30 +0000 Subject: [PATCH] use egw.includeJS instead of egw.ready for ajax-exec, eg. used in mail --- etemplate/inc/class.etemplate.inc.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 44b6a77325..976e327907 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -174,7 +174,25 @@ class etemplate_new extends etemplate_widget_template $langRequire[] = array('app' => $app, 'lang' => $lang); } - echo ' + // check if we are in an ajax-exec call from jdots template (or future other tabed templates) + if (isset($GLOBALS['egw']->framework->response)) + { + echo ' +
+ +'; + } + else + { + echo '
'; + } common::egw_footer(); } }