mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Fixing whitespace and indentation.
This commit is contained in:
parent
5de5f6d191
commit
d32ba714bf
1 changed files with 16 additions and 18 deletions
34
js/gui.js
34
js/gui.js
|
@ -239,7 +239,7 @@ GUI_control.prototype.tab_switch_cleanup = function (callback) {
|
||||||
|
|
||||||
GUI_control.prototype.content_ready = function (callback) {
|
GUI_control.prototype.content_ready = function (callback) {
|
||||||
|
|
||||||
$('.togglesmall').each(function(index, html) {
|
$('.togglesmall').each(function(index, html) {
|
||||||
var switchery = new Switchery(html,
|
var switchery = new Switchery(html,
|
||||||
{
|
{
|
||||||
size: 'small',
|
size: 'small',
|
||||||
|
@ -260,22 +260,22 @@ GUI_control.prototype.content_ready = function (callback) {
|
||||||
$(html).removeClass('toggle');
|
$(html).removeClass('toggle');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.togglemedium').each(function(index, html) {
|
$('.togglemedium').each(function(index, html) {
|
||||||
var switchery = new Switchery(html,
|
var switchery = new Switchery(html,
|
||||||
{
|
{
|
||||||
className: 'switcherymid',
|
className: 'switcherymid',
|
||||||
color: '#59aa29',
|
color: '#59aa29',
|
||||||
secondaryColor: '#c4c4c4'
|
secondaryColor: '#c4c4c4'
|
||||||
});
|
});
|
||||||
|
|
||||||
$(html).removeClass('togglemedium');
|
$(html).removeClass('togglemedium');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build link to in-use CF version documentation
|
// Build link to in-use CF version documentation
|
||||||
var documentationButton = $('div#content #button-documentation');
|
var documentationButton = $('div#content #button-documentation');
|
||||||
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
||||||
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
||||||
|
|
||||||
// loading tooltip
|
// loading tooltip
|
||||||
jQuery(document).ready(function($) {
|
jQuery(document).ready(function($) {
|
||||||
$('cf_tip').each(function() { // Grab all ".cf_tip" elements, and for each...
|
$('cf_tip').each(function() { // Grab all ".cf_tip" elements, and for each...
|
||||||
|
@ -284,21 +284,19 @@ GUI_control.prototype.content_ready = function (callback) {
|
||||||
|
|
||||||
$('.cf_tip').each(function() {
|
$('.cf_tip').each(function() {
|
||||||
$(this).jBox('Tooltip', {
|
$(this).jBox('Tooltip', {
|
||||||
content: $(this).children('.cf_tooltiptext'),
|
content: $(this).children('.cf_tooltiptext'),
|
||||||
delayOpen: 100,
|
delayOpen: 100,
|
||||||
delayClose: 100,
|
delayClose: 100,
|
||||||
position: {
|
position: {
|
||||||
x: 'right',
|
x: 'right',
|
||||||
y: 'center'
|
y: 'center'
|
||||||
},
|
},
|
||||||
outside: 'x'
|
outside: 'x'
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
if (callback) callback();
|
|
||||||
|
|
||||||
|
if (callback) callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialize object into GUI variable
|
// initialize object into GUI variable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue