Skip to content

Commit

Permalink
Fix for compatibility
Browse files Browse the repository at this point in the history
this fix make compatible the plugin with frameworks like angular.
Becuase angular load the file in a tmp context and if we add the result
to document.body the final render never load that to main flow.
  • Loading branch information
CXRommel committed Jun 3, 2014
1 parent 7cba888 commit 03f8584
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 @@ -379,7 +379,7 @@ For usage and examples: colpick.com/plugin
display: 'block'
});
} else {
cal.appendTo(document.body);
cal.appendTo($(this).parent());
$(this).on(options.showEvent, show);
cal.css({
position:'absolute'
Expand Down

0 comments on commit 03f8584

Please sign in to comment.