testing progress

This commit is contained in:
2025-08-12 14:46:30 -07:00
parent f6429110e5
commit a5f6ab8b64
3 changed files with 0 additions and 44 deletions

View File

@@ -1156,25 +1156,6 @@ jQuery(document).ready(function($) {
});
};
window.testWorkflow = function(workflowId) {
var testNumber = prompt('Enter phone number to test (e.g., +1234567890):');
if (testNumber) {
$.post(twp_ajax.ajax_url, {
action: 'twp_test_call',
to_number: testNumber,
workflow_id: workflowId,
nonce: twp_ajax.nonce
}, function(response) {
if (response.success && response.data.success) {
alert('Test call initiated successfully!');
} else {
alert('Error initiating test call: ' + (response.data.error || 'Unknown error'));
}
});
}
};
window.deleteWorkflow = function(workflowId) {
if (confirm('Are you sure you want to delete this workflow?')) {
$.post(twp_ajax.ajax_url, {