jQuery(document).ready(function($) { var sessionTotal = 0; function checkStatus() { $.post(ajaxurl, { action: 'v1_sync_init', security: v1_nonce }, function(res) { if (res.success) { $('#sync-status').html('Resume point: ' + res.data.last_date + ''); } }); } checkStatus(); $('#btn-sync').on('click', function() { var $btn = $(this); $btn.prop('disabled', true).text('Syncing...'); $('#sync-progress-wrap, #sync-msg').show(); function shovelData() { $.post(ajaxurl, { action: 'v1_sync_batch', security: v1_nonce }, function(res) { if (res.success) { var moved = res.data.count; if (moved > 0) { sessionTotal += moved; $('#sync-msg').text('Moved ' + sessionTotal.toLocaleString() + ' records so far...'); // Smooth progress bar simulation var simulatedPct = Math.min((sessionTotal / 210000) * 100, 99); $('#sync-progress-bar').css('width', simulatedPct + '%'); shovelData(); // GO AGAIN } else { $('#sync-msg').text('Finished! Everything is synced.'); $('#sync-progress-bar').css({'width': '100%', 'background': '#46b450'}); $btn.prop('disabled', false).text('Sync Complete'); checkStatus(); } } }).fail(function(xhr) { $('#sync-msg').html('Paused. Moved ' + sessionTotal.toLocaleString() + ' this session. Refresh to continue.'); $btn.prop('disabled', false).text('Resume Sync'); }); } shovelData(); }); $('#v1-dashboard').on('click', '#btn-wipe', function() { if(confirm('Wipe and restart?')) { $.post(ajaxurl, {action:'v1_sync_wipe', security:v1_nonce}, function() { location.reload(); }); } }); }); Mexican police detain hundreds of Central American migrants - Institute for Sound Public Policy

Mexican police detain hundreds of Central American migrants

published 2019-04-22 15:11:39 by
[ad_1]

Mexican police and immigration agents have detained hundreds of Central American migrants in the largest single raid on a migrant caravan since the groups started moving through Mexico last year.

Police targeted the tail end of a caravan of about 3,000 migrants who were making their way through the southern state of Chiapas.

Federal police and agents on Monday forced the migrants and their families into pickup trucks to take them to buses, presumably to deport them.

Mexico had welcomed the first caravans last year with open arms, but the reception has gotten colder since tens of thousands of migrants overwhelmed U.S. border crossings.

[ad_2]
Source link

Visit us on Social Media:

USTW
IfSPP
PFIR

Leave a Reply