Skip to content

Commit

Permalink
Merge pull request #60 from xyanide/patch-1
Browse files Browse the repository at this point in the history
Added a $.modal.isActive function to detect if a modal is currently open
  • Loading branch information
kylefox committed Oct 30, 2013
2 parents ff0156f + 2997f7a commit c0de654
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@
if (!current) return;
current.resize();
};

// Returns if there currently is an active modal
$.modal.isActive = function () {
return current ? true : false;
}

$.modal.defaults = {
overlay: "#000",
Expand Down

0 comments on commit c0de654

Please sign in to comment.