summaryrefslogtreecommitdiff
path: root/script/postman_resend_email_sript.js
blob: 1905bc55993548ea49a155c5d8227be239007a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function postman_resend_email(emailId) {
	var data = {
		'action' : 'postman_resend_mail',
		'email' : emailId
	};

	jQuery.post(ajaxurl, data, function(response) {
		if (response.success) {
			alert(response.data.message);
//			jQuery('span#resend-' + emailId).text(postman_js_resend_label);
		} else {
			alert(sprintf(postman_js_email_not_resent, response.data.message));
		}
	}).fail(function(response) {
		ajaxFailed(response);
	});
}