code cleaning up; - pages/; -routers/;

This commit is contained in:
tmshv committed 2015-03-01 04:49:49 +03:00
1 parent 6e4749476a
commit 4d0c64bb93
23 files changed
+62 -1339

No files matched your search

+6 -4
View File
@@ -3,8 +3,10 @@
*/
var app = angular.module("hudozhka", [
"ngRoute", "hudozhka.data",
"angulartics", "angulartics.google.analytics",
"hudozhka.data",
"ngRoute",
"angulartics",
"angulartics.google.analytics"
]);
app.config(function ($locationProvider, $routeProvider) {
@@ -47,8 +49,8 @@ app.config(function ($locationProvider, $routeProvider) {
});
app.run(function($location, $rootScope, $http) {
$rootScope.$on("$routeChangeSuccess", function (event, current, previous) {
$rootScope.title = current.$$route.title;
$rootScope.$on("$routeChangeSuccess", function (event, current) {
$rootScope.title = current["$$route"].title;
});
$http.defaults.headers.common["Accept"] = "application/json";
-5
View File
@@ -20,11 +20,6 @@ module.exports = function (app) {
]);
});
//$scope.schedule = schedule($scope.year, sem, [
// populate(team.short, "teacher"),
// populate(course.name, "lesson")
//]);
$scope.isToday = function (weekDayIndex) {
return (now.getDay() - 1) === weekDayIndex;
};