22 var logger = Logger('main.js');
27 Util.showLoadingDialog(true);
29 Settings.updatePackage()
30 .then(Package.updatePackageTree)
32 Util.showLoadingDialog(false);
34 .catch(function (reason) {
36 Util.showLoadingDialog(false);
37 Util.showAlertDialog('Failed to load package list.<br>Please check the tic-core.');
40 // Keep the state of the active item on navbar
41 $(".navbar a").on("click", function(){
42 $(".navbar").find(".active").removeClass("active");
43 $(this).parent().addClass("active");
48 $(document).ready(function () {