From 41f300739fd3fe41b674aa0467da54167560918e Mon Sep 17 00:00:00 2001 From: tdurieux Date: Fri, 9 Apr 2021 10:13:59 +0200 Subject: [PATCH] remove tooltip when the page change --- public/script/homeApp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/script/homeApp.js b/public/script/homeApp.js index d6b4fe9..eca9471 100644 --- a/public/script/homeApp.js +++ b/public/script/homeApp.js @@ -214,6 +214,10 @@ angular getStat(); }) .controller("dashboardController", function($scope, $http, $location) { + $scope.$on('$routeChangeStart', function() { + // remove tooltip + $('[data-toggle="tooltip"]').tooltip('dispose') + }); $scope.$watch("user.status", () => { if ($scope.user == null) { $location.url("/");