mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Implement test SMS sending
This commit is contained in:
parent
85c9b633ec
commit
b44175aba2
5 changed files with 104 additions and 13 deletions
|
|
@ -9,7 +9,7 @@
|
|||
$(this).attr("disabled", "disabled");
|
||||
var ajax_data = {
|
||||
recipient_name: $("#advanced_mailer_recipient_name").val(),
|
||||
recipient_email: $("#advanced_mailer_recipient_email").val(),
|
||||
recipient_email: $("#advanced_mailer_recipient_email").val()
|
||||
};
|
||||
$.exec_json(
|
||||
"advanced_mailer.procAdvanced_mailerAdminTestSendMail", ajax_data,
|
||||
|
|
@ -24,6 +24,28 @@
|
|||
);
|
||||
});
|
||||
|
||||
$("#advanced_mailer_test_send_sms").click(function(event) {
|
||||
event.preventDefault();
|
||||
$("#advanced_mailer_test_result").text("");
|
||||
$(this).attr("disabled", "disabled");
|
||||
var ajax_data = {
|
||||
recipient_number: $("#advanced_mailer_recipient_number").val(),
|
||||
country_code: $("#advanced_mailer_country_code").val(),
|
||||
content: $("#advanced_mailer_content").val()
|
||||
};
|
||||
$.exec_json(
|
||||
"advanced_mailer.procAdvanced_mailerAdminTestSendSMS", ajax_data,
|
||||
function(response) {
|
||||
$("#advanced_mailer_test_result").html(response.test_result);
|
||||
$("#advanced_mailer_test_send").removeAttr("disabled");
|
||||
},
|
||||
function(response) {
|
||||
$("#advanced_mailer_test_result").text("AJAX Error");
|
||||
$("#advanced_mailer_test_send").removeAttr("disabled");
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
} (jQuery));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue