diff options
Diffstat (limited to 'js/globalFunctionsCollection.js')
-rw-r--r-- | js/globalFunctionsCollection.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/globalFunctionsCollection.js b/js/globalFunctionsCollection.js index c5e3dbac..3203ce3a 100644 --- a/js/globalFunctionsCollection.js +++ b/js/globalFunctionsCollection.js @@ -21,5 +21,27 @@ let GlobalFunctionsCollection = function () { return data.length }; + self.init = function ($element) { + + if (semver.lt(CONFIG.flightControllerVersion, "2.4.0")) { + return; + } + + $container = $element; + }; + + self.render = function () { + let $table = $container.find(".function__table") + $table.find("tbody tr").remove(); + + for (let k in self.get()) { + if (self.get().hasOwnProperty(k)) { + self.get()[k].render(k, $table); + } + } + + GUI.switchery(); + } + return self; }
\ No newline at end of file |