From 839a053f150163544cea685a70a2c1cc0cf5875c Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 16 Sep 2016 10:48:42 -0400 Subject: #330 - added max-date validation Former-commit-id: 4ad0359ead06f633dbf48549e6bc967cb3f61dde --- www/js/EventDateTimeFilterCtrl.js | 8 ++++++++ www/templates/events-date-time-filter.html | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/js/EventDateTimeFilterCtrl.js b/www/js/EventDateTimeFilterCtrl.js index ee614e52..3c9bcb8a 100644 --- a/www/js/EventDateTimeFilterCtrl.js +++ b/www/js/EventDateTimeFilterCtrl.js @@ -25,6 +25,10 @@ angular.module('zmApp.controllers') } }; + $scope.$on('$ionicView.beforeEnter', function () { + $scope.today = moment().format("YYYY-MM-DD"); + }); + //-------------------------------------------------------------------------- // Clears filters //-------------------------------------------------------------------------- @@ -89,6 +93,10 @@ angular.module('zmApp.controllers') $rootScope.toString = moment($rootScope.toDate).format("YYYY-MM-DD") + " " + moment($rootScope.toTime).format("HH:mm:ss"); + + + + //console.log("CONCAT DATES " + temp); // // var startDate = moment(temp).format("YYYY-MM-DD hh:mm:ss"); diff --git a/www/templates/events-date-time-filter.html b/www/templates/events-date-time-filter.html index 465f79e5..84e39ea2 100644 --- a/www/templates/events-date-time-filter.html +++ b/www/templates/events-date-time-filter.html @@ -5,7 +5,7 @@