Skip to content

Commit

Permalink
Fixed broken view buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
malloch committed Dec 11, 2019
1 parent 942f2e3 commit b74e43f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ function init() {
"</div>"+
"</div>");

// 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"),
Expand All @@ -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();
Expand Down

0 comments on commit b74e43f

Please sign in to comment.