From d15dbca99454587c673dfdbcbf8f4d622a51a938 Mon Sep 17 00:00:00 2001 From: skaman82 Date: Fri, 23 Oct 2015 16:00:03 +0200 Subject: [PATCH] =?UTF-8?q?fixing=20things=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/serial_backend.js | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/js/serial_backend.js b/js/serial_backend.js index cc0d1e33..2f9e36e6 100755 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -238,10 +238,21 @@ function onConnect() { $('#tabs ul.mode-connected').show(); if ("CLFL" == CONFIG.flightControllerIdentifier){ - var documentationButton = $('#button-documentation'); + + /* placing this elsewhere + var documentationButton = $('#button-documentation'); documentationButton.show(); documentationButton.html("Documentation for "+CONFIG.flightControllerVersion); documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion)); + */ + + /* just a thought + var sensor_state = $('#sensor-status'); + sensor_state.show(); + */ + + var flashstate = $('#header_dataflash'); + flashstate.show(); } } @@ -255,8 +266,14 @@ function onClosed(result) { $('#tabs ul.mode-connected').hide(); $('#tabs ul.mode-disconnected').show(); - var documentationButton = $('#button-documentation'); - documentationButton.hide(); + + var flashstate = $('#header_dataflash'); + flashstate.hide(); + + /* just a thought + var sensor_state = $('#sensor-status'); + sensor_state.hide(); + */ } function read_serial(info) { @@ -359,4 +376,4 @@ function bit_set(num, bit) { function bit_clear(num, bit) { return num & ~(1 << bit); -} +} \ No newline at end of file