diff --git a/index.html b/index.html index d5b9ef4..3a4ef17 100755 --- a/index.html +++ b/index.html @@ -946,6 +946,11 @@

Events

/* This event will be triggered after date range picker open animation */ console.log('after open'); }) +.bind('datepicker-init',function() +{ + /* This event will be triggered after date range picker is initiated */ + console.log('after init'); +})
diff --git a/src/jquery.daterangepicker.js b/src/jquery.daterangepicker.js index 5ddbbf2..1c2162c 100755 --- a/src/jquery.daterangepicker.js +++ b/src/jquery.daterangepicker.js @@ -1064,6 +1064,7 @@ setTimeout(function() { updateCalendarWidth(); initiated = true; + $(self).trigger('datepicker-init', {}); }, 0); box.click(function(evt) { @@ -2560,4 +2561,4 @@ } }; -})); \ No newline at end of file +}));