summaryrefslogtreecommitdiff
path: root/Postman/Postman-Diagnostic-Test/postman_diagnostics.js
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/Postman-Diagnostic-Test/postman_diagnostics.js')
-rw-r--r--Postman/Postman-Diagnostic-Test/postman_diagnostics.js19
1 files changed, 19 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..140668e
--- /dev/null
+++ b/Postman/Postman-Diagnostic-Test/postman_diagnostics.js
@@ -0,0 +1,19 @@
+jQuery(document).ready(function() {
+ getDiagnosticData();
+});
+
+/**
+ */
+function getDiagnosticData() {
+ var data = {
+ 'action' : 'postman_diagnostics',
+ 'security' : jQuery('#security').val()
+ };
+ jQuery.post(ajaxurl, data, function(response) {
+ if (response.success) {
+ jQuery('#diagnostic-text').val(response.data.message);
+ }
+ }).fail(function(response) {
+ ajaxFailed(response);
+ });
+}