Test - seem to be finding the problems with mass message now

This commit is contained in:
Rick Falkvinge
2017-01-02 13:03:06 +01:00
parent 1b0ee5a536
commit ecee4b2c0e
+10 -2
View File
@@ -36,6 +36,7 @@
function onClickTest() {
var body = $('#<%=this.TextMessage.ClientID%>').val().trim();
var subject = $('#<%=this.TextSubject.ClientID%>').val().trim();
if (body.length < 2) // interpreted as empty
{
@@ -43,6 +44,13 @@
return false;
}
if (subject.length < 2) // interpreted as empty
{
// TODO: ADD TRANSMISSION MODUS / ONLY TRIGGER ON MODUS WITH SUBJECTS
alertify.alert("You should write a message subject to go with your message."); // TODO: LOC
return false;
}
if (<%=this.RunningOnSandbox%> && testMessageSandboxAddress == '')
{
// Prompt for an address to send to
@@ -65,7 +73,7 @@
recipientTypeId: selectedRecipientClass,
geographyId: selectedGeographyId,
mode: "Mail",
subject: "Test Subject",
subject: subject,
body: body,
dummyMail: testMessageSandboxAddress,
live: false
@@ -83,7 +91,7 @@
return false;
}
function onRecipientChange(newRecipientClass) {
function onRecipientChange(oldClassIgnored, newRecipientClass) {
selectedRecipientClass = newRecipientClass;
updateRecipientCount(newRecipientClass, selectedGeographyId);
}