diff --git a/widget/controllers/widget.home.controller.js b/widget/controllers/widget.home.controller.js index ea2595f..09164ec 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -343,6 +343,11 @@ DataStore.get(TAG_NAMES.EVENTS_MANUAL_INFO).then(success, error); }; + WidgetHome.resetCalendar = function() { + $rootScope.chnagedMonth = $scope.dt.getFullYear() + "-" + moment($scope.dt).format("MM") + "-" + ("0" + $scope.dt.getDate()).slice(-2) + "T00:00:00" + WidgetHome.getUTCZone(); + WidgetHome.getEvent(); + }; + /* * Fetch user's data from datastore */ diff --git a/widget/index.html b/widget/index.html index bae9afa..58c33b1 100644 --- a/widget/index.html +++ b/widget/index.html @@ -60,6 +60,9 @@ +
+ +