minor fixes
check that 'alt' is a thing.
diff --git a/site/js/dev/ponymail_composer.js b/site/js/dev/ponymail_composer.js
index 9da9245..c972b2b 100644
--- a/site/js/dev/ponymail_composer.js
+++ b/site/js/dev/ponymail_composer.js
@@ -63,7 +63,7 @@
// Push the subject and email body into the form data
of.push("subject=" + encodeURIComponent(document.getElementById('reply_subject').value))
of.push("body=" + encodeURIComponent(document.getElementById('reply_body').value))
- if (login && login.alternates) {
+ if (login && login.alternates && document.getElementById('alt')) {
of.push("alt=" + encodeURIComponent(document.getElementById('alt').options[document.getElementById('alt').selectedIndex].value))
}
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index bc4d2ab..41d532c 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -138,7 +138,7 @@
// Push the subject and email body into the form data
of.push("subject=" + encodeURIComponent(document.getElementById('reply_subject').value))
of.push("body=" + encodeURIComponent(document.getElementById('reply_body').value))
- if (login && login.alternates) {
+ if (login && login.alternates && document.getElementById('alt')) {
of.push("alt=" + encodeURIComponent(document.getElementById('alt').options[document.getElementById('alt').selectedIndex].value))
}