diff options
author | Dominic Clifton <me@dominicclifton.name> | 2015-11-12 00:01:22 +0300 |
---|---|---|
committer | Dominic Clifton <me@dominicclifton.name> | 2015-11-12 00:01:22 +0300 |
commit | d73196ea1169eb892fb18f2f5020cf3cf1004e3b (patch) | |
tree | 87cc054a8562a07425cbc95b5695e98b00b91a7f /main.js | |
parent | a0acd868734d8759c77ed314dfb7f58923111dd1 (diff) |
Fix toggle buttons reverting to checkboxes after reboot.
This moves GUI specific code out of main and the individual tab js files
into gui.js, where it fits better.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -101,32 +101,6 @@ $(document).ready(function () { function content_ready() { GUI.tab_switch_in_progress = false; - - $('.togglesmall').each(function(index, html) { - var switchery = new Switchery(html, - { - size: 'small', - color: '#59aa29', - secondaryColor: '#c4c4c4' - }); - - $(html).removeClass('togglesmall'); - }); - - $('.toggle').each(function(index, html) { - var switchery = new Switchery(html, - { - color: '#59aa29', - secondaryColor: '#c4c4c4' - }); - - $(html).removeClass('toggle'); - }); - - // Build link to in-use CF version documentation - 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)); } switch (tab) { |