Created
December 4, 2011 20:48
-
-
Save tbbooher/1431235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#multiple_date_select').multiDatesPicker({ | |
numberOfMonths: 3, | |
dateFormat: 'mm/dd/yy', | |
altField: '#meeting_dates', | |
addDisabledDates: json_data.meeting_dates, | |
minDate: json_data.start_date, | |
maxDate: json_data.end_date | |
}); | |
// want to do this | |
options = {numberOfMOnths: 3, dateFormat: 'mm/dd/yy'} | |
$('#multiple_date_select').multiDatesPicker(options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#multiple_date_select').multiDatesPicker({ | |
numberOfMonths: 3, | |
dateFormat: 'mm/dd/yy', | |
altField: '#meeting_dates', | |
addDisabledDates: json_data.meeting_dates, | |
minDate: json_data.start_date, | |
maxDate: json_data.end_date | |
}); | |
// want to do this | |
options = {numberOfMOnths: 3, dateFormat: 'mm/dd/yy'} | |
$('#multiple_date_select').multiDatesPicker(options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$(".input_time").timePicker({ startTime: "5:00", endTime: "19:00", step: 60}); | |
if ($("#multiple_date_select").length > 0) { | |
var current_dates = []; | |
var start_date = ""; | |
var end_date = ""; | |
var options = {}; | |
$.getJSON(window.location.pathname + ".json", function (json_data) { | |
options.numberOfMonths = 3; | |
options.dateFormat = 'mm/dd/yy'; | |
options.altField = '#meeting_dates'; | |
options.minDate = json_data.start_date; | |
options.maxDate = json_data.end_date; | |
if (json_data.meeting_dates.length > 0) { | |
options.addDisabledDates = json_data.meeting_dates; | |
} | |
$('#multiple_date_select').multiDatesPicker(options); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment