Skip to content

Commit

Permalink
Merge pull request #904 from nnattawat/make_angular_template_compilable
Browse files Browse the repository at this point in the history
Make template options to be complied jquery object
  • Loading branch information
dangrossman committed Jan 19, 2016
2 parents 05bf0fe + 79f1924 commit a738e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
options = $.extend(this.element.data(), options);

//html template for the picker UI
if (typeof options.template !== 'string')
if (typeof options.template !== 'string' && !options.template instanceof jQuery)
options.template = '<div class="daterangepicker dropdown-menu">' +
'<div class="calendar left">' +
'<div class="daterangepicker_input">' +
Expand Down

0 comments on commit a738e8a

Please sign in to comment.