Skip to content

Commit

Permalink
Fixed body overflow hidden bug
Browse files Browse the repository at this point in the history
  • Loading branch information
VersatilityWerks committed Jun 28, 2015
1 parent 8d1f81a commit 7c6bdac
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/jAlert-v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,15 @@
{
alert.options.onClose(alertInstance);
}

if( $('.jAlert').length > 0 )
{
$('.jAlert:last').centerAlert();
}
else
{
$('body').css('overflow', 'auto');
}

}, alert.options.animationTimeout);

Expand Down
Loading

0 comments on commit 7c6bdac

Please sign in to comment.