1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

handle all sorts of edge cases that would otherwise break UI or functionality

This commit is contained in:
cTn 2014-11-11 11:59:12 +01:00
parent 97e37347d6
commit 7a0d3a1199
3 changed files with 23 additions and 8 deletions

View file

@ -141,6 +141,9 @@ STM32_protocol.prototype.initialize = function () {
self.progress_bar_e.val(0);
self.progress_bar_e.removeClass('valid invalid');
// lock some UI elements TODO needs rework
$('select[name="release"]').prop('disabled', true);
serial.onReceive.addListener(function (info) {
self.read(info);
});
@ -671,6 +674,9 @@ STM32_protocol.prototype.upload_procedure = function (step) {
// unlocking connect button
GUI.connect_lock = false;
// unlock some UI elements TODO needs rework
$('select[name="release"]').prop('disabled', false);
// handle timing
var timeSpent = new Date().getTime() - self.upload_time_start;