ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [3/4] incubator-ponymail git commit: simple URL parsing
Date Fri, 02 Sep 2016 20:39:52 GMT
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 <humbedooh@apache.org>
Authored: Fri Sep 2 22:39:14 2016 +0200
Committer: Daniel Gruno <humbedooh@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 ###


Mime
View raw message