You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/09/02 18:18:45 UTC
[2/3] incubator-ponymail git commit: make sure months are provided,
otherwise manually set
make sure months are provided, otherwise manually set
if only a year is provided, set the start month to 1
and end month to 12 respectively.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/172c36c7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/172c36c7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/172c36c7
Branch: refs/heads/coffee-and-cake
Commit: 172c36c7345d63b2ccbed77fad8313b494a95712
Parents: f19375c
Author: Daniel Gruno <hu...@apache.org>
Authored: Fri Sep 2 20:16:55 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Fri Sep 2 20:16:55 2016 +0200
----------------------------------------------------------------------
site/js/coffee/calendar.coffee | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/172c36c7/site/js/coffee/calendar.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/calendar.coffee b/site/js/coffee/calendar.coffee
index 65fe32f..aedb546 100644
--- a/site/js/coffee/calendar.coffee
+++ b/site/js/coffee/calendar.coffee
@@ -31,6 +31,12 @@ class Calendar
### If end year+month given, use it ###
if end
[eYear, eMonth] = end.split("-")
+
+ ### Make sure months are there, otherwise set them ###
+ if not sMonth
+ sMonth = 1
+ if not eMonth
+ eMonth = 12
### For each year, construct the year div to hold months ###
years = []