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.<br>Error: ' + reason);
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");
46 // initially, hide the log view
47 // in job and image section
48 $('#log-view-content').hide();
49 $('.log-view-content .log-view-content-close').on('click', function (e) {
51 $('#log-view-content-body').empty();
52 $('#log-view-content').hide();
57 $(document).ready(function () {