From afbfc891e56a29660632985b2d65fb35b81573ce Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 17 May 2018 16:43:39 +0200 Subject: [PATCH] Automatic Updates --- History.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/History.js b/History.js index a8cf7e443..bee26df8e 100644 --- a/History.js +++ b/History.js @@ -60,11 +60,13 @@ datetime = pDatetime; timePeriod = pTimePeriod; - fileSequence = pStorage.fileSequence[0]; + fileSequence = pStorage.fileSequences[0]; recalculate(callBackFunction); recalculateScale(callBackFunction); + fileSequence.eventHandler.listenToEvent("Files Updated", onFilesUpdated); // Only the first sequence is supported right now. + callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE); } catch (err) { @@ -101,6 +103,12 @@ } } + function onFilesUpdated() { + + recalculate(); + + } + function setTimePeriod(pTimePeriod) { try {