testing progress
This commit is contained in:
@@ -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, {
|
||||
|
Reference in New Issue
Block a user