Skip to content
Browse files

Added target to options, in order to access input using this.target i…

…nside onClose and onOpen and onChange.

Conflicts:
	js/daterangepicker.jQuery.js
  • Loading branch information...
1 parent c3c759e commit 2aaf87a2c95496174dc0404fbb7d81685f307781 @Korri Korri committed with jefflembeck Nov 21, 2011
Showing with 22 additions and 21 deletions.
  1. +22 −21 js/daterangepicker.jQuery.js
View
43 js/daterangepicker.jQuery.js
@@ -40,27 +40,28 @@
allDatesBefore: 'All Dates Before',
allDatesAfter: 'All Dates After',
dateRange: 'Date Range'
- },
- rangeStartTitle: 'Start date',
- rangeEndTitle: 'End date',
- nextLinkText: 'Next',
- prevLinkText: 'Prev',
- doneButtonText: 'Done',
- earliestDate: Date.parse('-15years'), //earliest date allowed
- latestDate: Date.parse('+15years'), //latest date allowed
- constrainDates: false,
- rangeSplitter: '-', //string to use between dates in single input
- dateFormat: 'm/d/yy', // date formatting. Available formats: http://docs.jquery.com/UI/Datepicker/%24.datepicker.formatDate
- closeOnSelect: true, //if a complete selection is made, close the menu
- arrows: false,
- appendTo: 'body',
- onClose: function(){},
- onOpen: function(){},
- onChange: function(){},
- datepickerOptions: null //object containing native UI datepicker API options
- }, settings);
-
-
+ },
+ rangeStartTitle: 'Start date',
+ rangeEndTitle: 'End date',
+ nextLinkText: 'Next',
+ prevLinkText: 'Prev',
+ target: rangeInput,
+ doneButtonText: 'Done',
+ earliestDate: Date.parse('-15years'), //earliest date allowed
+ latestDate: Date.parse('+15years'), //latest date allowed
+ constrainDates: false,
+ rangeSplitter: '-', //string to use between dates in single input
+ dateFormat: 'm/d/yy', // date formatting. Available formats: http://docs.jquery.com/UI/Datepicker/%24.datepicker.formatDate
+ closeOnSelect: true, //if a complete selection is made, close the menu
+ arrows: false,
+ appendTo: 'body',
+ onClose: function(){},
+ onOpen: function(){},
+ onChange: function(){},
+ datepickerOptions: null //object containing native UI datepicker API options
+ }, settings);
+
+
//custom datepicker options, extended by options
var datepickerOptions = {

0 comments on commit 2aaf87a

Please sign in to comment.
Something went wrong with that request. Please try again.