betaflight-configurator/tabs/default.js

30 lines
860 B
JavaScript
Raw Normal View History

2014-07-10 16:14:17 +00:00
tabs.default = function() {
};
tabs.default.initialize = function(callback) {
GUI.active_tab_ref = this;
GUI.active_tab = 'default';
2014-03-08 05:25:15 +00:00
$('#content').load("./tabs/default.html", function() {
2014-06-16 20:00:08 +00:00
//check_usb_permissions(); // temporary enabled in dev branch, should be commented out untill DFU support goes live
2014-05-06 14:45:26 +00:00
// translate to user-selected language
localize();
// load changelog content
$('div.changelog.configurator .wrapper').load('./changelog.html');
2014-03-08 05:25:15 +00:00
// UI Hooks
$('a.firmware_flasher').click(tab_initialize_firmware_flasher);
$('div.welcome a').click(function() {
ga_tracker.sendEvent('ExternalUrls', 'Click', $(this).prop('href'));
});
2014-07-10 16:14:17 +00:00
if (callback) callback();
});
2014-07-10 16:14:17 +00:00
};
tabs.default.cleanup = function(callback) {
if (callback) callback();
};