diff --git a/src/core/js/tour.js b/src/core/js/tour.js index 07c21efa5a84f69b83ef2a428762d2ea20e61a02..cfe65519eef0f34f708461bca3658e76f5530eff 100644 --- a/src/core/js/tour.js +++ b/src/core/js/tour.js @@ -935,8 +935,6 @@ var tour = new function() { tour_overview.append(next); } - panel.hover(undefined, ()=>{panel.collapse('hide');}); - panel.append(tour_overview); this.leave_tour_button.on("click", () => {this.deactivate();}); @@ -982,6 +980,9 @@ var tour = new function() { tour._instance.set_tour_button_text("Tour"); } $('#caosdb-query-panel').before(tour._instance.panel); + // hide, when the mouse leaves the navbar + $('nav.navbar').hover(undefined, ()=>{$(tour._instance.panel).collapse('hide');}); + }