1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

polishing run

This commit is contained in:
cTn 2014-08-12 16:05:22 +02:00
parent e27a194ec7
commit 2753f354e0
5 changed files with 41 additions and 38 deletions

View file

@ -1,11 +1,11 @@
'use strict';
TABS.default = {};
TABS.default.initialize = function(callback) {
TABS.default.initialize = function (callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'default';
$('#content').load("./tabs/default.html", function() {
$('#content').load("./tabs/default.html", function () {
//check_usb_permissions(); // temporary enabled in dev branch, should be commented out untill DFU support goes live
// translate to user-selected language
@ -15,11 +15,11 @@ TABS.default.initialize = function(callback) {
$('div.changelog.configurator .wrapper').load('./changelog.html');
// UI Hooks
$('a.firmware_flasher').click(function() {
$('a.firmware_flasher').click(function () {
TABS.firmware_flasher.initialize();
});
$('div.welcome a, div.sponsors a').click(function() {
$('div.welcome a, div.sponsors a').click(function () {
googleAnalytics.sendEvent('ExternalUrls', 'Click', $(this).prop('href'));
});
@ -27,6 +27,6 @@ TABS.default.initialize = function(callback) {
});
};
TABS.default.cleanup = function(callback) {
TABS.default.cleanup = function (callback) {
if (callback) callback();
};