mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Option to save LC and GF
This commit is contained in:
parent
fe1d32d088
commit
6fce522961
3 changed files with 14 additions and 14 deletions
|
@ -3149,6 +3149,9 @@
|
||||||
"logicClose": {
|
"logicClose": {
|
||||||
"message": "Close"
|
"message": "Close"
|
||||||
},
|
},
|
||||||
|
"save": {
|
||||||
|
"message": "Save"
|
||||||
|
},
|
||||||
"active": {
|
"active": {
|
||||||
"message": "Active"
|
"message": "Active"
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,4 +42,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="content_toolbar">
|
||||||
|
<div class="btn save_btn">
|
||||||
|
<a id="save-button" class="save" href="#" data-i18n="save"></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -23,20 +23,7 @@ TABS.programming.initialize = function (callback, scrollPosition) {
|
||||||
mspHelper.sendGlobalFunctions,
|
mspHelper.sendGlobalFunctions,
|
||||||
mspHelper.saveToEeprom
|
mspHelper.saveToEeprom
|
||||||
]);
|
]);
|
||||||
saveChainer.setExitPoint(reboot);
|
|
||||||
|
|
||||||
function reboot() {
|
|
||||||
//noinspection JSUnresolvedVariable
|
|
||||||
GUI.log(chrome.i18n.getMessage('configurationEepromSaved'));
|
|
||||||
|
|
||||||
GUI.tab_switch_cleanup(function() {
|
|
||||||
MSP.send_message(MSPCodes.MSP_SET_REBOOT, false, false, function () {
|
|
||||||
GUI.log(chrome.i18n.getMessage('deviceRebooting'));
|
|
||||||
GUI.handleReconnect($('.tab_programming a'));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadHtml() {
|
function loadHtml() {
|
||||||
GUI.load("./tabs/programming.html", processHtml);
|
GUI.load("./tabs/programming.html", processHtml);
|
||||||
}
|
}
|
||||||
|
@ -52,6 +39,11 @@ TABS.programming.initialize = function (callback, scrollPosition) {
|
||||||
helper.tabs.init($('.tab-programming'));
|
helper.tabs.init($('.tab-programming'));
|
||||||
|
|
||||||
localize();
|
localize();
|
||||||
|
|
||||||
|
$('#save-button').click(function () {
|
||||||
|
saveChainer.execute();
|
||||||
|
});
|
||||||
|
|
||||||
GUI.content_ready(callback);
|
GUI.content_ready(callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue