diff options
Diffstat (limited to 'script/postman_resend_email_sript.js')
-rw-r--r-- | script/postman_resend_email_sript.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/script/postman_resend_email_sript.js b/script/postman_resend_email_sript.js new file mode 100644 index 0000000..1905bc5 --- /dev/null +++ b/script/postman_resend_email_sript.js @@ -0,0 +1,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); + }); +} |