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": {
|
||||
"message": "Close"
|
||||
},
|
||||
"save": {
|
||||
"message": "Save"
|
||||
},
|
||||
"active": {
|
||||
"message": "Active"
|
||||
},
|
||||
|
|
|
@ -42,4 +42,9 @@
|
|||
</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>
|
|
@ -23,19 +23,6 @@ TABS.programming.initialize = function (callback, scrollPosition) {
|
|||
mspHelper.sendGlobalFunctions,
|
||||
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() {
|
||||
GUI.load("./tabs/programming.html", processHtml);
|
||||
|
@ -52,6 +39,11 @@ TABS.programming.initialize = function (callback, scrollPosition) {
|
|||
helper.tabs.init($('.tab-programming'));
|
||||
|
||||
localize();
|
||||
|
||||
$('#save-button').click(function () {
|
||||
saveChainer.execute();
|
||||
});
|
||||
|
||||
GUI.content_ready(callback);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue