Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xfra35 committed Mar 14, 2016
1 parent c6c767e commit c87c3e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Use `$.modal.isActive()` to check if a modal is currently being displayed.
These are the supported options and their default values:

$.modal.defaults = {
closeExisting: true, // Close existing modals. Set this to false if you need to stack multiple modal instances.
escapeClose: true, // Allows the user to close the modal by pressing `ESC`
clickClose: true, // Allows the user to close the modal by clicking the overlay
closeText: 'Close', // Text content for the close <a> tag.
Expand All @@ -188,9 +189,9 @@ The following events are triggered on the modal element at various points in the

The first and only argument passed to these event handlers is the `modal` object, which has three properties:

modal.elm; // Original jQuery object upon which modal() was invoked.
modal.$elm; // Original jQuery object upon which modal() was invoked.
modal.options; // Options passed to the modal.
modal.blocker; // The overlay element.
modal.$blocker; // The overlay element.

So, you could do something like this:

Expand Down

0 comments on commit c87c3e4

Please sign in to comment.