mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-07 06:08:06 +02:00
remove tooltip when the page change
This commit is contained in:
@@ -214,6 +214,10 @@ angular
|
|||||||
getStat();
|
getStat();
|
||||||
})
|
})
|
||||||
.controller("dashboardController", function($scope, $http, $location) {
|
.controller("dashboardController", function($scope, $http, $location) {
|
||||||
|
$scope.$on('$routeChangeStart', function() {
|
||||||
|
// remove tooltip
|
||||||
|
$('[data-toggle="tooltip"]').tooltip('dispose')
|
||||||
|
});
|
||||||
$scope.$watch("user.status", () => {
|
$scope.$watch("user.status", () => {
|
||||||
if ($scope.user == null) {
|
if ($scope.user == null) {
|
||||||
$location.url("/");
|
$location.url("/");
|
||||||
|
|||||||
Reference in New Issue
Block a user