Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Clifton <me@dominicclifton.name>2015-11-12 00:01:22 +0300
committerDominic Clifton <me@dominicclifton.name>2015-11-12 00:01:22 +0300
commitd73196ea1169eb892fb18f2f5020cf3cf1004e3b (patch)
tree87cc054a8562a07425cbc95b5695e98b00b91a7f /main.js
parenta0acd868734d8759c77ed314dfb7f58923111dd1 (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.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/main.js b/main.js
index c91dd86a..a1181f49 100644
--- a/main.js
+++ b/main.js
@@ -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) {