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/12 20:20:48 UTC
[incubator-ponymail-foal] branch master updated: Regenerate 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 94b136b Regenerate JS
94b136b is described below
commit 94b136b9e0eb5157fce21e21750c9b2c274c95e4
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Sep 12 15:20:39 2021 -0500
Regenerate JS
---
webui/js/ponymail.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 20b8f5c..e8bfe4a 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -3332,6 +3332,10 @@ function renderCalendar(FY, FM, LY, LM) {
let CY = now.getFullYear();
let CM = now.getMonth();
let SY = Math.min(LY, CY); // last year in calendar, considering current date
+ // If Last Year is into the future, set Last Month to this one.
+ if (LY > CY) {
+ LM = CM;
+ }
let cdiv = new HTML('div', { class: 'sidebar_calendar' })
let N = 0;
@@ -3421,6 +3425,7 @@ function calendar_click(year, month) {
GET('%sapi/stats.lua?list=%s&domain=%s&d=%u-%u'.format(apiURL, current_list, current_domain, year, month), renderListView, {to: '%s@%s'.format(current_list, current_domain), update_calendar: false});
}
+
/******************************************
Fetched from source/sidebar-stats.js
******************************************/