Skip to content

Commit

Permalink
fix to work with issue #30
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Kornher <mail@moritzkornher.de>
  • Loading branch information
mrgrain committed Jan 18, 2015
1 parent 59b6d4a commit d745e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/colpick.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ For usage and examples: colpick.com/plugin
// Prevent the trigger of any direct parent
ev.stopPropagation();
var cal = $('#' + $(this).data('colpickId'));
if (!cal.data('colpick').polyfill) {
if (ev && !cal.data('colpick').polyfill) {
ev.preventDefault();
}
cal.data('colpick').onBeforeShow.apply(this, [cal.get(0)]);
Expand Down

0 comments on commit d745e76

Please sign in to comment.