1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

Fix repeated documentation link generation. Fixed repeated switchery

checkbox code.
This commit is contained in:
Dominic Clifton 2015-11-09 23:01:42 +00:00
parent 1f4838c5e2
commit 8324a2c002
25 changed files with 49 additions and 218 deletions

View file

@ -135,23 +135,6 @@ $(document).ready(function () {
});
/** toggle switch **/
var elems = Array.prototype.slice.call(document.querySelectorAll('#togglesmall'));
elems.forEach(function(html) {
var switchery = new Switchery(html,
{
size: 'small',
color: '#59aa29',
secondaryColor: '#c4c4c4'
});
});
/** toggle switch END **/
});
@ -276,14 +259,6 @@ function onConnect() {
if ("CLFL" == CONFIG.flightControllerIdentifier){
/* placing this elsewhere
documentationButton.show();
var documentationButton = $('div#content #button-documentation');
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
/* */
var sensor_state = $('#sensor-status');
sensor_state.show();