mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
osd
This commit is contained in:
parent
f3bfb085f8
commit
191c368c88
13 changed files with 1169 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue