Skip to content

Commit

Permalink
Fixed issue where preventing event propagation on close prevented oth…
Browse files Browse the repository at this point in the history
…er click events on page from firing. It is now confined to the close button in the pop box.
  • Loading branch information
knicklabs committed May 16, 2012
1 parent 728bd08 commit 0c434cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions popbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
},

close: function(event){
event.preventDefault();
$(settings['box']).fadeOut("fast");
if ($(event.target).closest(settings['selector']).length && $(event.target).hasClass(settings['close'].slice(1))) {
$(settings['box']).fadeOut("fast");
}
}
};

Expand Down

0 comments on commit 0c434cf

Please sign in to comment.