Fix asyncIncludetime in genPageTime repeats itself into DOM instead of updating the value

This commit is contained in:
Hadi Nategh
2016-07-15 09:34:48 +02:00
parent baf4de72d1
commit 9d054b9437
2 changed files with 8 additions and 3 deletions

View File

@@ -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('<span class="asyncIncludeTime">'+egw.lang('async includes took %1s', (end_time-start_time)/1000)+'</span>');
var gen_time_async = jQuery('.asyncIncludeTime').length > 0 ? jQuery('.asyncIncludeTime'):
gen_time_div.append('<span class="asyncIncludeTime"></span>').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 != '')