Skip to content

Commit

Permalink
Merge pull request #349 from loganm/master
Browse files Browse the repository at this point in the history
Fix isClosed bug for Firefox
  • Loading branch information
craftpip authored Sep 4, 2018
2 parents 2614745 + e6aa21f commit b6b5f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery-confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1212,8 +1212,8 @@
}, this.animationSpeed);
},
loadedClass: 'jconfirm-open',
isClosed: function(){
return !this.$el || this.$el.css('display') === '';
isClosed: function () {
return !this.$el || this.$el.parent().length === 0;
},
isOpen: function(){
return !this.isClosed();
Expand Down

0 comments on commit b6b5f61

Please sign in to comment.