Skip to content

Commit

Permalink
Merge pull request #59 from ibrahima/patch-2
Browse files Browse the repository at this point in the history
Fix closeOnOverlayClick option
  • Loading branch information
samdark committed Apr 30, 2016
2 parents f9a5239 + a506435 commit e5e0d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.the-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
if(localOptions.closeOnOverlayClick) {
$('.' + localOptions.overlayClass).on('click.' + pluginNamespace, function(e){
if (e.target.className == localOptions.overlayClass){
$.modal().close();
$.modal().close(localOptions);
}
});
}
Expand Down

0 comments on commit e5e0d64

Please sign in to comment.