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 {