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 2021/09/19 16:41:45 UTC

[incubator-ponymail-foal] branch master updated: Regen JS

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ca94d6  Regen JS
4ca94d6 is described below

commit 4ca94d6b62d20720a07888308730dbdd79842f95
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 19 11:41:34 2021 -0500

    Regen JS
---
 webui/js/ponymail.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 0d7e5af..9f8debc 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -3928,15 +3928,21 @@ function calendar_scroll(me, x) {
 
 }
 
+
 function calendar_click(year, month) {
     current_year = year;
     current_month = month;
     searching = false;
+    let q = "";
     let newhref = "list.html?%s@%s:%u-%u".format(current_list, current_domain, year, month);
+    if (current_json && current_json.searchParams && current_json.searchParams.q) {
+        q = current_json.searchParams.q;
+        newhref += ":" + q;
+    }
     if (location.href !== newhref) {
         window.history.pushState({}, null, newhref);
     }
-    GET('%sapi/stats.lua?list=%s&domain=%s&d=%u-%u'.format(apiURL, current_list, current_domain, year, month), renderListView, {
+    GET('%sapi/stats.lua?list=%s&domain=%s&d=%u-%u&q=%s'.format(apiURL, current_list, current_domain, year, month, q), renderListView, {
         to: '%s@%s'.format(current_list, current_domain),
         update_calendar: false
     });