diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-02 10:33:26 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-02 10:33:26 -0400 |
| commit | f3136eefe9105deb1d97123629dae80c2de66304 (patch) | |
| tree | 5389bd34d555ab4c3c065292e17cd41576db33ae /www/js/EventCtrl.js | |
| parent | 5e523cf0d1a3644f6a41709b777b08f73ec71d49 (diff) | |
updated libraries, squashed the problem of not getting bar handles on click, optimized montage view
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 10 |
1 files changed, 9 insertions, 1 deletions
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 |
