From 38ebf4159fb92a20896e7c8688018e93165fc961 Mon Sep 17 00:00:00 2001 From: "s.samko" Date: Thu, 17 Oct 2024 13:12:37 +0100 Subject: [PATCH] Fix #10493 - Dashlet title vanishes if you set >1 Dashlet to auto refresh --- include/MySugar/javascript/MySugar.js | 2 +- jssource/src_files/include/MySugar/javascript/MySugar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/MySugar/javascript/MySugar.js b/include/MySugar/javascript/MySugar.js index d7f9d655ef4..cea91ec75c6 100755 --- a/include/MySugar/javascript/MySugar.js +++ b/include/MySugar/javascript/MySugar.js @@ -51,7 +51,7 @@ ajaxStatus.showStatus(SUGAR.language.get('app_strings','LBL_LOADING'));if(!url){ else if(url=='predefined_chart'){url='index.php?action=DynamicAction&DynamicAction=displayDashlet&session_commit=1&module='+module+'&to_pdf=1&id='+id;scriptUrl='index.php?action=DynamicAction&DynamicAction=getPredefinedChartScript&session_commit=1&module='+module+'&to_pdf=1&id='+id;is_chart_dashlet=true;} if(dynamic){url+='&dynamic=true';} SUGAR.mySugar.currentDashlet=document.getElementById('dashlet_entire_'+id);$.ajax({"method":"GET","url":url}).done(function(data,textStatus,jqXHR){var updateDashlet=null;if($(data).find('#dashlet_entire_'+id).length==0){updateDashlet=$(data).find('.bd-center').html();}else{updateDashlet=$(data).find('#dashlet_entire_'+id+' .bd-center').html();} -$('#dashlet_entire_'+id).find('.bd-center').html(updateDashlet);ajaxStatus.hideStatus();});$('#dashlet_header_'+SUGAR.mySugar.configureDashletId).load(url+' #dashlet_header_'+SUGAR.mySugar.configureDashletId);return false;},setChooser:function(){var displayColumnsDef=[];var hideTabsDef=[];var left_td=document.getElementById('display_tabs_td');var right_td=document.getElementById('hide_tabs_td');var displayTabs=left_td.getElementsByTagName('select')[0];var hideTabs=right_td.getElementsByTagName('select')[0];for(i=0;i