Skip to content

Commit

Permalink
Merge pull request #963 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 Feb 22, 2016
2 parents 5559b1a + 8007213 commit 6118677
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 @@ -97,7 +97,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 6118677

Please sign in to comment.