mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
29 lines
796 B
JavaScript
29 lines
796 B
JavaScript
|
|
(function($) {
|
|
|
|
$(function() {
|
|
|
|
$("#advanced_mailer_test_send").click(function(event) {
|
|
event.preventDefault();
|
|
$("#advanced_mailer_test_result").text("");
|
|
$(this).attr("disabled", "disabled");
|
|
var ajax_data = {
|
|
recipient_name: $("#advanced_mailer_recipient_name").val(),
|
|
recipient_email: $("#advanced_mailer_recipient_email").val(),
|
|
};
|
|
$.exec_json(
|
|
"advanced_mailer.procAdvanced_mailerAdminTestSend", 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));
|