This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 89e842aa0e2e15300c2d9595bbea68130e1ffe8b Author: Sebb <[email protected]> AuthorDate: Thu Nov 18 00:45:24 2021 +0000 Replace remaining top-level vars --- webui/js/config.js | 4 ++-- webui/js/source/scaffolding-html.js | 4 ++-- webui/js/source/sidebar-calendar.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webui/js/config.js b/webui/js/config.js index 2637ccf..9d177f6 100644 --- a/webui/js/config.js +++ b/webui/js/config.js @@ -15,7 +15,7 @@ limitations under the License. */ -var pm_config = { +const pm_config = { oauth: { // OAuth settings apache: { @@ -58,7 +58,7 @@ const GRAVATAR_URL = "/api/gravatar?md5=%s"; // This must agree with apiURL abov // Localized preferences (defaults) -var prefs = { +const prefs = { subscribeLinks: false, // Add subscribe button in stats pane? displayMode: 'threaded', // threaded or flat groupBy: 'thread', // thread or date diff --git a/webui/js/source/scaffolding-html.js b/webui/js/source/scaffolding-html.js index a2e792d..114735f 100644 --- a/webui/js/source/scaffolding-html.js +++ b/webui/js/source/scaffolding-html.js @@ -31,9 +31,9 @@ #}, "Some text inside a div") */ -var txt = (msg) => document.createTextNode(msg); +const txt = (msg) => document.createTextNode(msg); -var HTML = (function() { +const HTML = (function() { function HTML(type, params, children) { /* create the raw element, or clone if passed an existing element */ diff --git a/webui/js/source/sidebar-calendar.js b/webui/js/source/sidebar-calendar.js index df81368..72b0906 100644 --- a/webui/js/source/sidebar-calendar.js +++ b/webui/js/source/sidebar-calendar.js @@ -16,8 +16,8 @@ */ const MONTHS_SHORTENED = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; -var calendar_index = 0; -var calendar_years_shown = 4; +let calendar_index = 0; +let calendar_years_shown = 4; function renderCalendar(FY, FM, LY, LM, activity = null) { calendar_index = 0;
