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:44 UTC

[1/3] incubator-ponymail git commit: accidentally left in a debug func

Repository: incubator-ponymail
Updated Branches:
  refs/heads/coffee-and-cake 713ea3e6e -> a2c1b83f5


accidentally left in a debug func


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/f19375ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/f19375ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/f19375ce

Branch: refs/heads/coffee-and-cake
Commit: f19375cecaad3206eee72f5dd60f852a3b2b86d9
Parents: 713ea3e
Author: Daniel Gruno <hu...@apache.org>
Authored: Fri Sep 2 20:10:20 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Fri Sep 2 20:10:20 2016 +0200

----------------------------------------------------------------------
 site/js/ponymail-coffee.js | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/f19375ce/site/js/ponymail-coffee.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail-coffee.js b/site/js/ponymail-coffee.js
index 3178e39..714a957 100644
--- a/site/js/ponymail-coffee.js
+++ b/site/js/ponymail-coffee.js
@@ -90,7 +90,6 @@ toggleYear = function(div) {
   /* For each year, hide if not this year, else show */
   results = [];
   for (y = j = ref1 = parseInt(sYear), ref2 = parseInt(eYear); ref1 <= ref2 ? j <= ref2 : j >= ref2; y = ref1 <= ref2 ? ++j : --j) {
-    alert(y);
     if (y === year) {
       results.push(get('calendar_months_' + y).show(true));
     } else {


[3/3] incubator-ponymail git commit: make sure these can be split()

Posted by hu...@apache.org.
make sure these can be split()

Stringify integers in case a user passes them instead
of a string


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/a2c1b83f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/a2c1b83f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/a2c1b83f

Branch: refs/heads/coffee-and-cake
Commit: a2c1b83f56d899c9746eaa1b5551ebd208cc6da2
Parents: 172c36c
Author: Daniel Gruno <hu...@apache.org>
Authored: Fri Sep 2 20:18:14 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Fri Sep 2 20:18:14 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/calendar.coffee | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a2c1b83f/site/js/coffee/calendar.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/calendar.coffee b/site/js/coffee/calendar.coffee
index aedb546..b8eb76a 100644
--- a/site/js/coffee/calendar.coffee
+++ b/site/js/coffee/calendar.coffee
@@ -24,13 +24,13 @@ class Calendar
         now = new Date()
         
         ### Split start and end into years and months ###
-        [sYear, sMonth] = start.split("-")
+        [sYear, sMonth] = String(start).split("-")
         
         [eYear, eMonth] = [now.getFullYear(), now.getMonth()+1]
         
         ### If end year+month given, use it ###
         if end
-            [eYear, eMonth] = end.split("-")
+            [eYear, eMonth] = String(end).split("-")
             
         ### Make sure months are there, otherwise set them ###
         if not sMonth


[2/3] incubator-ponymail git commit: make sure months are provided, otherwise manually set

Posted by hu...@apache.org.
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 = []