Fix vtx saving (#1718)

Fix vtx saving
10.7.0-preview
Michael Keller 2019-10-08 00:47:30 +13:00 committed by GitHub
commit 4c2ac7215f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,7 @@ TABS.vtx = {
VTXTABLE_BAND_LIST: [],
VTXTABLE_POWERLEVEL_LIST: [],
analyticsChanges: {},
updating: true,
};
TABS.vtx.initialize = function (callback) {
@ -38,6 +39,7 @@ TABS.vtx.initialize = function (callback) {
// translate to user-selected language
i18n.localizePage();
self.updating = false;
GUI.content_ready(callback);
}
@ -503,7 +505,9 @@ TABS.vtx.initialize = function (callback) {
});
$('a.save').click(function () {
if (!self.updating) {
save_vtx();
}
});
}
@ -651,6 +655,7 @@ TABS.vtx.initialize = function (callback) {
// Save all the values from the tab to MSP
function save_vtx() {
self.updating = true;
dump_html_to_msp();