Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ jQuery(document).ready(function($) { /** * This function will start the restore over ajax for the passed in job_id. * * @param {string} job_id - the restore job id */ function updraft_restore_command(job_id) { var xhttp = new XMLHttpRequest(); var xhttp_data = 'action=updraft_ajaxrestore&updraftplus_ajax_restore=do_ajax_restore&job_id=' + job_id; var previous_data_length = 0; var show_alert = true; var debug = $('#updraftplus_ajax_restore_debug').length; xhttp.open("POST", ajaxurl, true); xhttp.onprogress = function(response) { if (response.currentTarget.status >= 200 && response.currentTarget.status < 300) { if (-1 !== response.currentTarget.responseText.indexOf('