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 19:17:41 UTC
[3/7] incubator-ponymail git commit: clicking a month should call a
listview update
clicking a month should call a listview update
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/71513ddf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/71513ddf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/71513ddf
Branch: refs/heads/coffee-and-cake
Commit: 71513ddfad7d3122004862847b9e67b9387c5300
Parents: 26a7097
Author: Daniel Gruno <hu...@apache.org>
Authored: Fri Sep 2 21:01:27 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Fri Sep 2 21:01:27 2016 +0200
----------------------------------------------------------------------
site/js/coffee/calendar.coffee | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/71513ddf/site/js/coffee/calendar.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/calendar.coffee b/site/js/coffee/calendar.coffee
index a0242ae..22b6909 100644
--- a/site/js/coffee/calendar.coffee
+++ b/site/js/coffee/calendar.coffee
@@ -107,4 +107,12 @@ toggleYear = (div) ->
toggleMonth = (div) ->
#### TODO later... ###
+ m = div.getAttribute("data")
+ [year, month] = m.split("-")
+
+ ### Update the list view using the new month ###
+ listView({
+ month: m
+ })
+
\ No newline at end of file