Widget:MattTest: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 72: Line 72:
$("#screenDate").datepicker({
$("#screenDate").datepicker({
onSelect: function() {
onSelect: function() {
checkScreenDate();
checkScreenDate($("#screenDate").datepicker("getDate"),$("#eventDate").datepicker("getDate"));
}
}
});
});
Line 824: Line 824:
}
}


function checkScreenDate(){
function checkScreenDate(screen, event){
var screen = $("#screenDate").datepicker("getDate");
var event = $("#eventDate").datepicker("getDate");
var screenMin = new Date(event.getFullYear(),event.getMonth(),event.getDate());
var screenMin = new Date(event.getFullYear(),event.getMonth(),event.getDate());

Revision as of 18:31, 30 April 2018