Automatic Updates
This commit is contained in:
1 parent
8581784770
commit
afbfc891e5
1 file changed
+9
-1
+9
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user