diff --git a/api/js/jsapi/egw.js b/api/js/jsapi/egw.js
index 56a72f3346..3f7fe8fffe 100644
--- a/api/js/jsapi/egw.js
+++ b/api/js/jsapi/egw.js
@@ -204,7 +204,9 @@
var end_time = (new Date).getTime();
var gen_time_div = jQuery('#divGenTime_'+window.egw_appName);
if (!gen_time_div.length) gen_time_div = jQuery('.pageGenTime');
- gen_time_div.append(''+egw.lang('async includes took %1s', (end_time-start_time)/1000)+'');
+ var gen_time_async = jQuery('.asyncIncludeTime').length > 0 ? jQuery('.asyncIncludeTime'):
+ gen_time_div.append('').find('.asyncIncludeTime');
+ gen_time_async.text(egw.lang('async includes took %1s', (end_time-start_time)/1000));
// Make sure opener knows when we close - start a heartbeat
if((popup || window.opener) && window.name != '')
diff --git a/api/js/jsapi/egw_json.js b/api/js/jsapi/egw_json.js
index 4d0020f3db..17449891c1 100644
--- a/api/js/jsapi/egw_json.js
+++ b/api/js/jsapi/egw_json.js
@@ -170,7 +170,9 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
this.handleResponse(data);
var gen_time_div = jQuery('#divGenTime');
if (!gen_time_div.length) gen_time_div = jQuery('.pageGenTime');
- gen_time_div.append(''+egw.lang('async includes took %1s', (end_time-start_time)/1000)+'');
+ var gen_time_async = jQuery('.asyncIncludeTime').length > 0 ? jQuery('.asyncIncludeTime'):
+ gen_time_div.append('').find('.asyncIncludeTime');
+ gen_time_async.text(egw.lang('async includes took %1s', (end_time-start_time)/1000));
}, this);
return;
}
@@ -204,7 +206,8 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd)
gen_time_div.find('span.pageTime').text(egw.lang("Page was generated in %1 seconds ", data.page_generation_time));
if (data.session_restore_time)
{
- var gen_time_session_span = gen_time_div.find('span.session').length > 0 ? gen_time_div.find('span.session'):gen_time_div.append('');
+ var gen_time_session_span = gen_time_div.find('span.session').length > 0 ? gen_time_div.find('span.session'):
+ gen_time_div.append('').find('.session');
gen_time_session_span.text(egw.lang("session restore time in %1 seconds ", data.page_generation_time));
}
}