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 20:39:52 UTC

[3/4] incubator-ponymail git commit: simple URL parsing

simple URL parsing

turn URL into three vars; list, month, query


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

Branch: refs/heads/coffee-and-cake
Commit: 66b9e2a244b3afb1cc263c80e0d454f8c9c8c1b3
Parents: 1c126e7
Author: Daniel Gruno <hu...@apache.org>
Authored: Fri Sep 2 22:39:14 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Fri Sep 2 22:39:14 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/listview.coffee | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/66b9e2a2/site/js/coffee/listview.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/listview.coffee b/site/js/coffee/listview.coffee
index da74ba1..fd0017a 100644
--- a/site/js/coffee/listview.coffee
+++ b/site/js/coffee/listview.coffee
@@ -23,7 +23,12 @@
 window.onpopstate = (event) ->
     listView(null, true)
 
-
+parseURL = () ->
+    [list, month, query] = window.location.search.substr(1).split(":", 3)
+    ponymail_list = list
+    ponymail_month = month
+    ponymail_query = query
+    
 
 listView = (hash, reParse) ->
     ### Get the HTML filename ###