Skip to content

Commit

Permalink
Fix closeOnOverlayClick option
Browse files Browse the repository at this point in the history
The patch I grabbed from #25 actually broke the close on overlay click feature, the close call should have localOptions passed in. This makes that actually work again. Sorry for not actually testing the patch properly :/
  • Loading branch information
ibrahima committed Apr 30, 2016
1 parent f9a5239 commit a506435
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 a506435

Please sign in to comment.