diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html
index 2108bf1..90e36a3 100644
--- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html
+++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html
@@ -199,9 +199,6 @@
-
-
-
@@ -209,12 +206,10 @@
| Day Of Week |
+
In |
Out |
- In |
- Out |
- In |
- Out |
+
Sub-Total |
@@ -222,17 +217,17 @@
|
- |
+
+ |
+
+
|
- |
- |
- |
- |
- 8 |
+
+ |
- | Weekly Total |
+ Weekly Total |
|
diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js
index a150941..5b0771b 100644
--- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js
+++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js
@@ -129,9 +129,17 @@
console.log("target is null, going nowhere");
}
};
- self.convertToHours = function(value) {
- return value / 60;
- }
+ self.convertToHours = function (value) {
+ var hrs = value / 60;
+ if (hrs < 1) {
+ return value + " mins";
+ }
+ return (value / 60)+" hrs";
+ };
+ self.convertToDisplayTime = function (dateValue) {
+ var date = new Date(dateValue);
+ return date.getHours() + ":" + (date.getMinutes() < 10 ? '0' : '') + date.getMinutes();
+ };
self.dismissAlert = function(data, event) {
self.errorData(null);
};
@@ -156,7 +164,6 @@
value: pageNumber
}
];
-
var url = self.createRequestUrl("users", args, false, false);
location.hash = url;
console.log(url);
@@ -171,7 +178,6 @@
todayHighlight: true,
calendarWeeks: true
});
-
if (!selectedDate) {
selectedDate = new Date();
} else {
@@ -190,7 +196,7 @@
// moment(kk).weeksInYear()
//);
self.selectedCalendarWeek(moment(kk).isoWeek());
- self.goToTimeLogs(self.chosenTimeLogUserId, null, [{ key: "selectedDate", value: kk.toISOString() }]);
+ self.goToTimeLogs(self.chosenTimeLogUserId, null, [{ key: "selectedDate", value: moment(kk).format("MM-DD-YYYY") }]);
});
}
}