Skip to content

Commit

Permalink
Added a $.modal.isActive function to detect if a modal is currently open
Browse files Browse the repository at this point in the history
  • Loading branch information
xyanide committed Oct 30, 2013
1 parent ff0156f commit 2997f7a
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 2997f7a

Please sign in to comment.