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
commit 2b94aed930357f8fd635716d62addfce25c4d469 Author: Daniel Gruno <[email protected]> AuthorDate: Tue Sep 21 15:11:53 2021 -0500 regen JS --- webui/js/ponymail.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js index 28bbc51..a0b89de 100644 --- a/webui/js/ponymail.js +++ b/webui/js/ponymail.js @@ -3971,11 +3971,16 @@ function calendar_click(year, month) { current_month = month; searching = false; let q = ""; - let newhref = "list.html?%s@%s:%u-%u".format(current_list, current_domain, year, month); + let calendar_current_list = current_list; + let calendar_current_domain = current_domain; if (current_json && current_json.searchParams && current_json.searchParams.q) { q = current_json.searchParams.q; - newhref += ":" + q; + calendar_current_list = current_json.searchParams.list; + calendar_current_domain = current_json.searchParams.domain; } + let newhref = "list?%s@%s:%u-%u".format(calendar_current_list, calendar_current_domain, year, month); + if (q && q.length > 0) newhref += ":" + q; + if (location.href !== newhref) { window.history.pushState({}, null, newhref); }
