From bf9580b8a51694504f0d856b0c4554b838b95521 Mon Sep 17 00:00:00 2001 From: dhruv282 Date: Mon, 12 Aug 2019 20:27:45 -0400 Subject: [PATCH] Histogram dimming fix Histogram dimming issue still appearing on currently deployed site. This fix seems to have stopped this issue --- public/scripts/timeline.js | 2 +- tmvis.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/timeline.js b/public/scripts/timeline.js index 836b5a84..494e9a61 100644 --- a/public/scripts/timeline.js +++ b/public/scripts/timeline.js @@ -766,7 +766,7 @@ function startEventNotification(){ notificationSrc.close(); } } - else if(streamedObj.data === "statssent"){ + else if(streamedObj.data === "statssent" || streamedObj.data === "histoDataSent"){ $('#serverStreamingModal .logsContent').empty(); setProgressBar(2); // for avoiding the refresh issue... automatically refreshing the page when the results are available diff --git a/tmvis.js b/tmvis.js index 9a111230..c7398bb2 100644 --- a/tmvis.js +++ b/tmvis.js @@ -1224,6 +1224,7 @@ TimeMap.prototype.getDatesForHistogram = function (callback,response,curCookieCl //var cacheFile = new SimhashCacheFile(this.primesource+"_"+this.collectionidentifier+"_"+this.originalURI,isDebugMode) //cacheFile.writeThumbSumJSONOPContentToFile(mementoJObjArr); + constructSSE("histoDataSent",curCookieClientId); response.write(JSON.stringify(mementoJObjArr)); response.end(); callback('');