You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/09/24 13:19:38 UTC
[incubator-ponymail-foal] branch master updated: Document onload
functions
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
The following commit(s) were added to refs/heads/master by this push:
new c78c9d7 Document onload functions
c78c9d7 is described below
commit c78c9d7fe53c9421af009a905f5b3696b538710b
Author: Sebb <se...@apache.org>
AuthorDate: Fri Sep 24 14:19:29 2021 +0100
Document onload functions
---
webui/js/ponymail.js | 5 ++++-
webui/js/source/list-index.js | 1 +
webui/js/source/mgmt.js | 1 +
webui/js/source/primer.js | 3 ++-
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 1dc2817..25f7480 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -2033,6 +2033,7 @@ function list_index_onepage(state, json) {
}
}
+// onload function for index.html
function prime_list_index() {
GET('%sapi/preferences.lua'.format(apiURL), list_index_onepage, {});
}
@@ -2999,6 +3000,7 @@ function admin_audit_next() {
GET('%sapi/mgmt.json?action=log&page=%u&size=%u'.format(apiURL, audit_page, audit_size), admin_audit_view, null);
}
+// Onload function for admin.html
function admin_init() {
let mid = location.href.split('/').pop();
// Specific email/list handling?
@@ -3209,7 +3211,7 @@ function post_prime(state) {
}
}
-
+// onload function for list.html
function parseURL(state) {
let bits = window.location.search.substr(1).split(":", 3);
let list = bits[0];
@@ -3265,6 +3267,7 @@ function parseURL(state) {
// Parse a permalink and fetch the thread
+// onload function for thread.html
function parse_permalink() {
// message id is the bit after the last /
let mid = location.href.split('/').pop();
diff --git a/webui/js/source/list-index.js b/webui/js/source/list-index.js
index 41b5d5f..c37097b 100644
--- a/webui/js/source/list-index.js
+++ b/webui/js/source/list-index.js
@@ -116,6 +116,7 @@ function list_index_onepage(state, json) {
}
}
+// onload function for index.html
function prime_list_index() {
GET('%sapi/preferences.lua'.format(apiURL), list_index_onepage, {});
}
\ No newline at end of file
diff --git a/webui/js/source/mgmt.js b/webui/js/source/mgmt.js
index 971e175..a2a6f63 100644
--- a/webui/js/source/mgmt.js
+++ b/webui/js/source/mgmt.js
@@ -295,6 +295,7 @@ function admin_audit_next() {
GET('%sapi/mgmt.json?action=log&page=%u&size=%u'.format(apiURL, audit_page, audit_size), admin_audit_view, null);
}
+// Onload function for admin.html
function admin_init() {
let mid = location.href.split('/').pop();
// Specific email/list handling?
diff --git a/webui/js/source/primer.js b/webui/js/source/primer.js
index dca90b0..fb13860 100644
--- a/webui/js/source/primer.js
+++ b/webui/js/source/primer.js
@@ -82,7 +82,7 @@ function post_prime(state) {
}
}
-
+// onload function for list.html
function parseURL(state) {
let bits = window.location.search.substr(1).split(":", 3);
let list = bits[0];
@@ -138,6 +138,7 @@ function parseURL(state) {
// Parse a permalink and fetch the thread
+// onload function for thread.html
function parse_permalink() {
// message id is the bit after the last /
let mid = location.href.split('/').pop();