From f3136eefe9105deb1d97123629dae80c2de66304 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Thu, 2 Jul 2015 10:33:26 -0400 Subject: updated libraries, squashed the problem of not getting bar handles on click, optimized montage view --- www/js/EventCtrl.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index e4ac3516..eed6424c 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1,6 +1,6 @@ /* jshint -W041 */ /* jslint browser: true*/ -/* global cordova,StatusBar,angular,console */ +/* global cordova,StatusBar,angular,console,moment */ // This is the controller for Event view. StateParams is if I recall the monitor ID. // This was before I got access to the new APIs. FIXME: Revisit this code to see what I am doing with it @@ -472,6 +472,14 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', ['$ionicPlatfo }); }; + //-------------------------------------- + // formats events dates in a nice way + //--------------------------------------- + + $scope.prettify = function(str) + { + return moment(str).format('h:mm:ssa on MMMM Do YYYY'); + }; //-------------------------------------------------------- // For consistency we are keeping the refresher list // but its a dummy. The reason I deviated is because -- cgit v1.2.3