mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-02 14:49:33 +02:00
remove tooltip when the page change
This commit is contained in:
1 parent
9ebf6a52f7
commit
41f300739f
1 file changed
+4
@@ -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("/");
|
||||
|
||||
Reference in new issue
Block a user