diff --git a/js/main.js b/js/main.js index b98ca281..224a4187 100644 --- a/js/main.js +++ b/js/main.js @@ -64,6 +64,12 @@ function init() { ""+ ""); + // init the view + $('#container').empty(); + tooltip = new Tooltip(); + viewManager = new ViewManager(document.getElementById('container'), database, + tooltip); + // init the top menu $('#TopMenuWrapper').empty() saverLoader = new SaverLoader(document.getElementById("TopMenuWrapper"), @@ -77,12 +83,6 @@ function init() { netSelector = new NetworkSelector(document.getElementById("TopMenuWrapper"), database, viewManager); - // init the view - $('#container').empty(); - tooltip = new Tooltip(); - viewManager = new ViewManager(document.getElementById('container'), database, - tooltip); - // init controller initMonitorCommands(); initViewCommands();