Widget:MattTest: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 55: | Line 55: | ||
$("#screenDate").datepicker({ | $("#screenDate").datepicker({ | ||
onSelect: function() { | onSelect: function() { | ||
checkScreenDate($(this).datepicker("getDate"),$("#eventDate"). | $("#eventDate").datepicker(); | ||
checkScreenDate($(this).datepicker("getDate"),$("#eventDate").datepicker("getDate")); | |||
} | } | ||
}); | }); | ||
Line 807: | Line 808: | ||
} | } | ||
function checkScreenDate(screen, | function checkScreenDate(screen, event){ | ||
var screenMin = new Date(event.getFullYear(),event.getMonth(),event.getDate()); | var screenMin = new Date(event.getFullYear(),event.getMonth(),event.getDate()); | ||
var screenMax = new Date(event.getFullYear(),event.getMonth(),event.getDate() + 5 ); | var screenMax = new Date(event.getFullYear(),event.getMonth(),event.getDate() + 5 ); |