From 4479391721fe40b39d7dc06e639e354d316faa43 Mon Sep 17 00:00:00 2001 From: yehudah Date: Wed, 18 Apr 2018 20:06:44 +0000 Subject: * remove mailgun docs * fix js error ($) * fix mail function param * script for dismiss "not configured.." message --- script/postman.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'script') diff --git a/script/postman.js b/script/postman.js index 0ae1947..0134430 100644 --- a/script/postman.js +++ b/script/postman.js @@ -1,6 +1,19 @@ jQuery(document).ready(function($) { $( ".email-log-date" ).datepicker(); + $('.notice-dismiss.postman-release-message').on('click', function() { + var $this = $(this); + var args = { + action: 'dismiss_version_notify', + security: $this.data('security'), + version: $this.data('version'), + }; + + $.post(ajaxurl, args, function() { + $this.parent().slideUp(); + }); + }); + $('#postman_trash_all').on('click',function(e) { if (confirm("Are You Sure?") == false) { e.preventDefault(); -- cgit v1.2.3