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 3c039af Rename variable to avoid clash with keyword
3c039af is described below
commit 3c039af581cf893c57805101ef1e21e70ce25ea5
Author: Sebb <[email protected]>
AuthorDate: Sat Nov 13 16:51:36 2021 +0000
Rename variable to avoid clash with keyword
---
webui/js/ponymail.js | 11 ++++++-----
webui/js/source/composer.js | 11 ++++++-----
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index b04b1f7..3095f96 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -599,20 +599,21 @@ let mua_mid = null;
let mua_headers = {};
function compose_send() {
- let of = [];
+ let content = [];
for (let k in mua_headers) {
- of .push(k + "=" + encodeURIComponent(mua_headers[k]));
+ content.push(k + "=" + encodeURIComponent(mua_headers[k]));
}
// Push the subject and email body into the form data
- of .push("subject=" +
encodeURIComponent(document.getElementById('composer_subject').value)); of
.push("body=" +
encodeURIComponent(document.getElementById('composer_body').value));
+ content.push("subject=" +
encodeURIComponent(document.getElementById('composer_subject').value));
+ content.push("body=" +
encodeURIComponent(document.getElementById('composer_body').value));
if (ponymail_preferences.login && ponymail_preferences.login.alternates &&
document.getElementById('composer_alt')) {
- of .push("alt=" +
encodeURIComponent(document.getElementById('composer_alt').options[document.getElementById('composer_alt').selectedIndex].value));
+ content.push("alt=" +
encodeURIComponent(document.getElementById('composer_alt').options[document.getElementById('composer_alt').selectedIndex].value));
}
let request = new XMLHttpRequest();
request.open("POST", "/api/compose.lua");
request.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
- request.send( of .join("&")); // send email as a POST string
+ request.send(content.join("&")); // send email as a POST string
document.getElementById('composer_modal').style.display = 'none';
modal("Message dispatched!", "Your email has been sent. Depending on
moderation rules, it may take a while before it shows up in the archives.",
"help");
diff --git a/webui/js/source/composer.js b/webui/js/source/composer.js
index a80555c..0ea30a8 100644
--- a/webui/js/source/composer.js
+++ b/webui/js/source/composer.js
@@ -4,20 +4,21 @@ let mua_mid = null;
let mua_headers = {};
function compose_send() {
- let of = [];
+ let content = [];
for (let k in mua_headers) {
- of .push(k + "=" + encodeURIComponent(mua_headers[k]));
+ content.push(k + "=" + encodeURIComponent(mua_headers[k]));
}
// Push the subject and email body into the form data
- of .push("subject=" +
encodeURIComponent(document.getElementById('composer_subject').value)); of
.push("body=" +
encodeURIComponent(document.getElementById('composer_body').value));
+ content.push("subject=" +
encodeURIComponent(document.getElementById('composer_subject').value));
+ content.push("body=" +
encodeURIComponent(document.getElementById('composer_body').value));
if (ponymail_preferences.login && ponymail_preferences.login.alternates &&
document.getElementById('composer_alt')) {
- of .push("alt=" +
encodeURIComponent(document.getElementById('composer_alt').options[document.getElementById('composer_alt').selectedIndex].value));
+ content.push("alt=" +
encodeURIComponent(document.getElementById('composer_alt').options[document.getElementById('composer_alt').selectedIndex].value));
}
let request = new XMLHttpRequest();
request.open("POST", "/api/compose.lua");
request.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
- request.send( of .join("&")); // send email as a POST string
+ request.send(content.join("&")); // send email as a POST string
document.getElementById('composer_modal').style.display = 'none';
modal("Message dispatched!", "Your email has been sent. Depending on
moderation rules, it may take a while before it shows up in the archives.",
"help");