mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
remove tooltip when the page change
This commit is contained in:
@@ -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