Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(moadl): toggle 'modal-open' class after animation
Browse files Browse the repository at this point in the history
Fixes #1629
  • Loading branch information
pkozlowski-opensource committed Jan 22, 2014
1 parent dfc36fd commit 4d641ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
//remove window DOM element
removeAfterAnimate(modalWindow.modalDomEl, modalWindow.modalScope, 300, function() {
modalWindow.modalScope.$destroy();
body.toggleClass(OPENED_MODAL_CLASS, openedWindows.length() > 0);
checkRemoveBackdrop();
});
body.toggleClass(OPENED_MODAL_CLASS, openedWindows.length() > 0);
}

function checkRemoveBackdrop() {
Expand Down

0 comments on commit 4d641ca

Please sign in to comment.