code cleaning up

This commit is contained in:
tmshv committed 2015-08-05 00:54:37 +03:00
1 parent 1a11cf8c85
commit ee826400df
1 file changed
-13
-13
View File
@@ -8,7 +8,6 @@ module.exports = function (app) {
$http.get("/schedules")
.success(function (schedules) {
//return ;
var last = schedules.length - 1;
$scope.schedules = schedules.map(function (schedule) {
@@ -95,18 +94,6 @@ function range(start, num, step) {
return list;
}
///**
// * Monday date of current week
// * @param {[type]} d [description]
// * @return {[type]} [description]
// */
//function getMonday(d) {
// d = new Date(d);
// var day = d.getDay();
// var diff = d.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday
// return new Date(d.setDate(diff));
//}
function getDates(start) {
var day = start.getDay();
return range(0, 6, 1).reduce(function (dates, weekDay) {