From 80072138200a37a05f6ec3c424a64b3ae4d2cff5 Mon Sep 17 00:00:00 2001 From: nnattawat Date: Mon, 8 Feb 2016 16:03:59 +1100 Subject: [PATCH] Make template options to be complied jquery object --- daterangepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daterangepicker.js b/daterangepicker.js index 7eab933b..97057b6e 100644 --- a/daterangepicker.js +++ b/daterangepicker.js @@ -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 = '