Test - seem to be finding the problems with mass message now
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user