mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +03:00
adding support for connect_lock property in GUI
This commit is contained in:
parent
b6fb43993a
commit
75ff1dcc90
1 changed files with 40 additions and 38 deletions
|
@ -134,6 +134,7 @@ $(document).ready(function() {
|
||||||
$('div#port-picker a.refresh').click();
|
$('div#port-picker a.refresh').click();
|
||||||
|
|
||||||
$('div#port-picker a.connect').click(function() {
|
$('div#port-picker a.connect').click(function() {
|
||||||
|
if (GUI.connect_lock != true) { // GUI control overrides the user control
|
||||||
var clicks = $(this).data('clicks');
|
var clicks = $(this).data('clicks');
|
||||||
|
|
||||||
selected_port = String($(port_picker).val());
|
selected_port = String($(port_picker).val());
|
||||||
|
@ -174,6 +175,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$(this).data("clicks", !clicks);
|
$(this).data("clicks", !clicks);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue