|
|
@ -394,11 +394,12 @@ app.directive('textAutoHeight', function($timeout){
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, false);
|
|
|
|
}, false);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
app.config(['$routeProvider',function ($routeProvider) {
|
|
|
|
app.config(['$routeProvider',"$httpProvider",function ($routeProvider, $httpProvider) {
|
|
|
|
$routeProvider
|
|
|
|
$routeProvider
|
|
|
|
.when('/activities', {
|
|
|
|
.when('/activities', {
|
|
|
|
templateUrl: 'activities.html',
|
|
|
|
templateUrl: 'activities.html',
|
|
|
@ -435,4 +436,22 @@ app.config(['$routeProvider',function ($routeProvider) {
|
|
|
|
.otherwise({
|
|
|
|
.otherwise({
|
|
|
|
redirectTo: '/activities'
|
|
|
|
redirectTo: '/activities'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$httpProvider.interceptors.push('timestampMarker');
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//loading
|
|
|
|
|
|
|
|
app.factory('timestampMarker', ["$rootScope", function ($rootScope) {
|
|
|
|
|
|
|
|
var timestampMarker = {
|
|
|
|
|
|
|
|
request: function (config) {
|
|
|
|
|
|
|
|
$rootScope.loading = true;
|
|
|
|
|
|
|
|
config.requestTimestamp = new Date().getTime();
|
|
|
|
|
|
|
|
return config;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
response: function (response) {
|
|
|
|
|
|
|
|
// $rootScope.loading = false;
|
|
|
|
|
|
|
|
response.config.responseTimestamp = new Date().getTime();
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
return timestampMarker;
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|