From 79f5e392e99db972341dfc7b3617a0cf855dc7c4 Mon Sep 17 00:00:00 2001 From: "Chris.Watts90@outlook.com" Date: Wed, 15 Feb 2017 16:53:06 +0000 Subject: [PATCH] test the databind for some of the timelog properties with the new Flattened TimeLogList object. added convertToHours method to spa.js to enable WeeklyTotal(mins) to be converted to hours for ui. #15 --- .../WindowsDataCenter/WindowsDataCenter/www/index.html | 7 +++---- .../WindowsDataCenter/WindowsDataCenter/www/spa.js | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html index 9804490..2108bf1 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/index.html @@ -205,7 +205,6 @@
- @@ -222,8 +221,8 @@ - - + + @@ -234,7 +233,7 @@ - +
Monday
Weekly Total
diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js index 3bc49c0..a150941 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js @@ -129,6 +129,9 @@ console.log("target is null, going nowhere"); } }; + self.convertToHours = function(value) { + return value / 60; + } self.dismissAlert = function(data, event) { self.errorData(null); };