Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2020-04-11 15:30:18 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2020-04-11 15:30:18 +0300
commitba0ba69191a08792c7a52753970d819903015e4b (patch)
treec8f5171e7c057ce48f01c250ca252c31a949c7d3 /js
parentf85a17d1ad1f6de648082e85a089c396ccdcee46 (diff)
Report GVARs
Diffstat (limited to 'js')
-rw-r--r--js/globalVariablesStatus.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/globalVariablesStatus.js b/js/globalVariablesStatus.js
index 9fa33e30..57abc6c2 100644
--- a/js/globalVariablesStatus.js
+++ b/js/globalVariablesStatus.js
@@ -21,5 +21,13 @@ let GlobalVariablesStatus = function () {
return data;
}
+ self.update = function ($container) {
+ for (let i in self.getAll()) {
+ if (self.getAll().hasOwnProperty(i)) {
+ $container.find("[data-gvar-index=" + i + "]").html(self.get(i));
+ }
+ }
+ }
+
return self;
}; \ No newline at end of file