Permalink
Browse files

prevent event propogation on close. closes #1

  • Loading branch information...
1 parent ab43121 commit 4e6aa4b98eed6e9ee1f29ffc37e8e0be5da1d015 @seanbehan seanbehan committed May 16, 2012
Showing with 5 additions and 2 deletions.
  1. +4 −1 popbox.js
  2. +1 −1 popbox.min.js
View
@@ -47,7 +47,10 @@
return this.each(function(){
$(this).css({'width': $(settings['box']).width()}); // Width needs to be set otherwise popbox will not move when window resized.
$(settings['open'], this).bind('click', methods.open);
- $(settings['open'], this).parent().find(settings['close']).bind('click', methods.close);
+ $(settings['open'], this).parent().find(settings['close']).bind('click', function(event){
+ event.preventDefault();
+ methods.close();
+ });
});
}
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 4e6aa4b

Please sign in to comment.