1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00
This commit is contained in:
nathan 2016-06-29 02:22:58 -07:00
parent f3bfb085f8
commit 191c368c88
13 changed files with 1169 additions and 8 deletions

View file

@ -20,6 +20,7 @@ var GUI_control = function () {
this.defaultAllowedTabsWhenConnected = [
'failsafe',
'transponder',
'osd',
'adjustments',
'auxiliary',
'cli',
@ -239,8 +240,7 @@ GUI_control.prototype.tab_switch_cleanup = function (callback) {
}
};
GUI_control.prototype.content_ready = function (callback) {
GUI_control.prototype.switchery = function() {
$('.togglesmall').each(function(index, elem) {
var switchery = new Switchery(elem, {
size: 'small',
@ -275,6 +275,11 @@ GUI_control.prototype.content_ready = function (callback) {
});
$(elem).removeClass('togglemedium');
});
};
GUI_control.prototype.content_ready = function (callback) {
this.switchery();
if (CONFIGURATOR.connectionValid) {
// Build link to in-use CF version documentation