Skip to content

Commit

Permalink
Make template options to be complied jquery object
Browse files Browse the repository at this point in the history
  • Loading branch information
nnattawat committed Dec 21, 2015
1 parent 7d85c53 commit 79f1924
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 79f1924

Please sign in to comment.