ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: links in stats pane don't set up the correct date range
Date Mon, 09 Jan 2017 14:31:49 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master f5f29a042 -> 10fca9ea1


links in stats pane don't set up the correct date range

This fixes #106

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

Branch: refs/heads/master
Commit: 10fca9ea125a73a67e75f6fe2471b3fe3725ab83
Parents: f5f29a0
Author: Sebb <sebb@apache.org>
Authored: Mon Jan 9 14:31:33 2017 +0000
Committer: Sebb <sebb@apache.org>
Committed: Mon Jan 9 14:31:33 2017 +0000

----------------------------------------------------------------------
 CHANGELOG.md                   | 1 +
 site/js/dev/ponymail_search.js | 5 +++++
 site/js/ponymail.js            | 5 +++++
 3 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/10fca9ea/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2ecdb22..1f2ffc6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -117,6 +117,7 @@
 - does not show mixed private/public lists unless logged in (#70)
 - inconsistent error reporting for invalid mailing lists (#112)
 - Always use Javascript conditional blocks (#333)
+- links in stats pane don't set up the correct date range (#106)
 
 ## CHANGES in 0.9b:
 

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/10fca9ea/site/js/dev/ponymail_search.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_search.js b/site/js/dev/ponymail_search.js
index 7db84f3..e435a02 100644
--- a/site/js/dev/ponymail_search.js
+++ b/site/js/dev/ponymail_search.js
@@ -31,6 +31,7 @@ function toggleEmail(year, mo, nopush) {
     }
     global_deep = false
     current_query = ""
+    current_retention = year + "-" + mo
     var arr = xlist.split('@', 2)
     var listname = arr[0]
     var domain = arr[1]
@@ -61,6 +62,10 @@ function toggleEmail(year, mo, nopush) {
     if (!nopush) {
         window.history.pushState({}, "", "list.html?" + xlist + ":" + year + '-' + xmo);
     }
+    // update the quick search box
+    var dp = document.getElementById('d')
+    dp.value = datePickerValue(current_retention)
+    dp.setAttribute("data", current_retention)
     GetAsync("/api/stats.lua?list=" + listname + "&domain=" + domain + "&s=" + s
+ "&e=" + e, null, buildPage)
     
     // set list title to list and year/month

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/10fca9ea/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index 35cc253..aae2ac5 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -4419,6 +4419,7 @@ function toggleEmail(year, mo, nopush) {
     }
     global_deep = false
     current_query = ""
+    current_retention = year + "-" + mo
     var arr = xlist.split('@', 2)
     var listname = arr[0]
     var domain = arr[1]
@@ -4449,6 +4450,10 @@ function toggleEmail(year, mo, nopush) {
     if (!nopush) {
         window.history.pushState({}, "", "list.html?" + xlist + ":" + year + '-' + xmo);
     }
+    // update the quick search box
+    var dp = document.getElementById('d')
+    dp.value = datePickerValue(current_retention)
+    dp.setAttribute("data", current_retention)
     GetAsync("/api/stats.lua?list=" + listname + "&domain=" + domain + "&s=" + s
+ "&e=" + e, null, buildPage)
     
     // set list title to list and year/month


Mime
View raw message