this is more-or-less working, but as I said, the spinner quits once the AJAX call goes. But then, even the menus are inaccessible in IE until the call finishes.
Code:
setTimeout(function() {
// Get All Procedures that were selected
$('.procselector:checked').each(function(index) { // Loop through each checkbox
for (var i=0; i< email_array.length; i++) { // And send each one to all email addresses
$.ajax({
url:'/viewproc/email_view_proc/'+$(this).val()+'/XXXXXXXXXXXXXX,
type:'POST',
cache:false,
async:false,
data:'XXXXXXXXXXXXXXXXXXXXXXX',
beforeSend : function() {
$("div#email_proc_form").hide();
$("div#emaiL_proc_saving").show();
}
}).done(function(){
$("div#emaiL_proc_saving").hide();
$("div#email_proc_done").show();
});//close ajax function
} // for email array loop
}); // each loop
},1000);
Bookmarks