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:
authorskaman82 <albert@wd-design.de>2015-11-10 11:38:43 +0300
committerskaman82 <albert@wd-design.de>2015-11-10 11:38:43 +0300
commitb6b2812271822d89c1043e0f2bca5c659571764e (patch)
tree1faeb06675450930c86542326ff4e8d21862cfab /main.js
parentf67a82ba7cb1703d17ef53a4a6290666b668a71c (diff)
Fixing toggle buttons and the motors tab
Diffstat (limited to 'main.js')
-rw-r--r--main.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.js b/main.js
index c91dd86a..a7a96b4e 100644
--- a/main.js
+++ b/main.js
@@ -123,6 +123,17 @@ $(document).ready(function () {
$(html).removeClass('toggle');
});
+ $('.togglemedium').each(function(index, html) {
+ var switchery = new Switchery(html,
+ {
+ className: 'switcherymid',
+ 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);