diff options
Diffstat (limited to 'Postman/Postman-Diagnostic-Test/postman_diagnostics.js')
-rw-r--r-- | Postman/Postman-Diagnostic-Test/postman_diagnostics.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Postman/Postman-Diagnostic-Test/postman_diagnostics.js b/Postman/Postman-Diagnostic-Test/postman_diagnostics.js new file mode 100644 index 0000000..4aeaa5c --- /dev/null +++ b/Postman/Postman-Diagnostic-Test/postman_diagnostics.js @@ -0,0 +1,18 @@ +jQuery(document).ready(function() { + getDiagnosticData(); +}); + +/** + */ +function getDiagnosticData() { + var data = { + 'action' : 'postman_diagnostics' + }; + jQuery.post(ajaxurl, data, function(response) { + if (response.success) { + jQuery('#diagnostic-text').val(response.data.message); + } + }).fail(function(response) { + ajaxFailed(response); + }); +} |