Automatic Updates

This commit is contained in:
Luis Fernando Molina committed 2018-05-17 16:43:39 +02:00
1 parent 8581784770
commit afbfc891e5
1 file changed
+9 -1
+9 -1
View File
@@ -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 {