Skip to content

Commit

Permalink
Listen for close event on the modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Apr 20, 2011
1 parent b9d9be4 commit 266ac82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.reveal.js
Expand Up @@ -66,7 +66,7 @@

//Close Modal Listeners
var closeButton = $('.' + options.dismissmodalclass).bind('click.modalEvent',closeModal)
$(document).bind('reveal:close', closeModal);
modal.bind('reveal:close', closeModal);
if(options.closeonbackgroundclick) {
modalBG.css({"cursor":"pointer"})
modalBG.bind('click.modalEvent',closeModal)
Expand Down

0 comments on commit 266ac82

Please sign in to comment.