You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
405 B
JavaScript
14 lines
405 B
JavaScript
function executeMigration(migrationNumber, direction, success, error) {
|
|
var heskPath = $('p#hesk-path').text();
|
|
|
|
$.ajax({
|
|
url: heskPath + 'install/ajax/process-migration.php',
|
|
method: 'POST',
|
|
data: JSON.stringify({
|
|
migrationNumber: migrationNumber,
|
|
direction: direction
|
|
}),
|
|
success: success(data),
|
|
error: error(data)
|
|
})
|
|
} |