2013-10-30 16:42:04 +00:00
|
|
|
function tab_initialize_default() {
|
2014-02-14 21:17:51 +00:00
|
|
|
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-06-08 17:32:24 +00:00
|
|
|
|
2014-05-06 14:45:26 +00:00
|
|
|
// translate to user-selected language
|
|
|
|
localize();
|
|
|
|
|
2013-10-30 16:42:04 +00:00
|
|
|
// load changelog content
|
|
|
|
$('div.changelog.configurator .wrapper').load('./changelog.html');
|
2014-03-08 05:25:15 +00:00
|
|
|
|
2013-11-13 07:55:29 +00:00
|
|
|
// UI Hooks
|
2014-03-22 23:28:41 +00:00
|
|
|
$('a.firmware_flasher').click(tab_initialize_firmware_flasher);
|
2014-06-27 17:19:06 +00:00
|
|
|
|
|
|
|
$('div.welcome a').click(function() {
|
|
|
|
var url = $(this).prop('href');
|
|
|
|
|
|
|
|
ga_tracker.sendEvent('ExternalUrls', 'Click', url);
|
|
|
|
});
|
2013-10-30 16:42:04 +00:00
|
|
|
});
|
|
|
|
}
|