I have a nice modal that blocks out the screen while a post is being submitted via ajax. The blockUI starts fine, the modal displays, but the modal does not unblock when the Ajax is done posting, it just continues to display.
$(document).ajaxStop($.unblockUI);
$(document).ready(function() {
$('#ninja_forms_field_50').click(function() {
$.blockUI({ message: $('#rLo') });
});
});
<div id="rLo" style="display:none;">
<p style="font-size:33px; font-weight:300; text-align:center; line-height: 48px;">Your Recipe is Processing!</p>
<img src="<?php bloginfo('template_url'); ?>/images/loadinfo.net.gif" alt="Loading..." />
<?php include(TEMPLATEPATH.'/quotes.php'); ?>
</div>