Ejemplo n.º 1
0
                            $('#change_status_buttons').hide();
                        }
                        function do_manual_send(){
                            if(!run_manual_send){
                                return;
                            }
                            // do an ajax call to the newsletter_queue_manual.php script
                            // parse the result and update the corresponding recipient in the listing
                            $('#manual_send_status').prepend('<li><?php 
_e('Telling server to send in batches of %s, please wait...', module_config::c('newsletter_send_burst_count', 40));
?>
</li>');
                            $.ajax({
                                type: 'POST',
                                url: '<?php 
echo module_newsletter::link_queue_manual($newsletter_id, $send_id);
?>
',
                                data: 'retry_failures=<?php 
echo $retry_failures ? 'yes' : '';
?>
&retry_pending=<?php 
echo $retry_pending ? 'yes' : '';
?>
',
                                dataType: 'json',
                                success: function(d){
                                    for(var x in d){
                                        if(x=='timeout'){
                                            if(d[x] > 0){
                                                setTimeout(function(){