This commit is contained in:
Dobie Wollert
2014-07-25 03:00:29 -04:00
parent c63d462188
commit a403c9079f
39 changed files with 2875 additions and 3541 deletions

View File

@ -22,8 +22,9 @@ angular.module('biomed', ['biomed.filters', 'biomed.services', 'biomed.directive
data = data.replace(PROTECTION_PREFIX, '');
if (JSON_START.test(data) && JSON_END.test(data)) {
data = JSON.parse(data, function(key, val) {
if (DATE_MATCHER.test(val))
return new Date(val);
if (DATE_MATCHER.test(val)) {
return new moment(val).zone(-5).toDate();
}
return val;
})
}
@ -68,6 +69,15 @@ angular.module('biomed', ['biomed.filters', 'biomed.services', 'biomed.directive
templateUrl: '/partials/workorders/edit.html',
controller: biomed.WorkorderEditCtrl
})
.when('/techs/:id', {
templateUrl: '/partials/techs/schedule.html',
controller: biomed.TechScheduleCtrl
})
.when('/admin', {
templateUrl: '/partials/users/index.html',
controller: biomed.UsersIndexCtrl,
reloadOnSearch: false
})
.otherwise({
redirectTo: '/schedule'
});