mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 01:05:12 +03:00
Fix input fields
This commit is contained in:
parent
f99a685372
commit
41861d1547
2 changed files with 5 additions and 1 deletions
|
@ -548,6 +548,10 @@ GUI_control.prototype.alert = function(message) {
|
||||||
dialog.showMessageBoxSync({ message: message, icon: "./images/inav_icon_128.png" });
|
dialog.showMessageBoxSync({ message: message, icon: "./images/inav_icon_128.png" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GUI_control.prototype.confirm = function(message) {
|
||||||
|
return dialog.showMessageBoxSync({ message: message, icon: "./images/inav_icon_128.png", buttons: ["Yes", "No"]}) == 0;
|
||||||
|
}
|
||||||
|
|
||||||
// initialize object into GUI variable
|
// initialize object into GUI variable
|
||||||
var GUI = new GUI_control();
|
var GUI = new GUI_control();
|
||||||
|
|
||||||
|
|
|
@ -3436,7 +3436,7 @@ TABS.mission_control.initialize = function (callback) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (confirm(i18n.getMessage("missionGeozoneReboot"))) {
|
if (GUI.confirm(i18n.getMessage("missionGeozoneReboot"))) {
|
||||||
$(event.currentTarget).addClass('disabled');
|
$(event.currentTarget).addClass('disabled');
|
||||||
GUI.log('Start of sending Geozones');
|
GUI.log('Start of sending Geozones');
|
||||||
mspHelper.saveGeozones();
|
mspHelper.saveGeozones();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue