summaryrefslogtreecommitdiff
path: root/script/postman.js
diff options
context:
space:
mode:
authoryehuda <yehuda@myinbox.in>2019-05-16 12:15:39 +0300
committeryehuda <yehuda@myinbox.in>2019-05-16 12:15:39 +0300
commit6b0c4d5d97cac613ad8218fc9f0779eec63c28e3 (patch)
tree3ac2513ad5cb08650b03f55d837cf6b1d578dd21 /script/postman.js
parentc88e7ad0b42cefd8fb7b509c8c2e355f567d9434 (diff)
parent09ad01149ef5981407149bc3c9502058482fb419 (diff)
downloadPost-SMTP-6b0c4d5d97cac613ad8218fc9f0779eec63c28e3.zip
Merge remote-tracking branch 'origin/dev'
Diffstat (limited to 'script/postman.js')
-rw-r--r--script/postman.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/script/postman.js b/script/postman.js
index 0134430..edd33ac 100644
--- a/script/postman.js
+++ b/script/postman.js
@@ -14,6 +14,18 @@ jQuery(document).ready(function($) {
});
});
+ $('.post-smtp-donation .donation-dismiss').on('click', function() {
+ var $this = $(this);
+ var args = {
+ action: 'dismiss_donation_notify',
+ security: $this.data('security'),
+ };
+
+ $.post(ajaxurl, args, function() {
+ $this.parent().slideUp();
+ });
+ });
+
$('#postman_trash_all').on('click',function(e) {
if (confirm("Are You Sure?") == false) {
e.preventDefault();