Widget:MattTest: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 78: Line 78:
onSelect: function(curDate, instance) {
onSelect: function(curDate, instance) {
    if(curDate != instance.lastVal) {
    if(curDate != instance.lastVal) {
screenUpdate();
screenUpdate($("#eventDate").datepicker("getDate"));
    }
    }
  }
  }
Line 813: Line 813:
}
}


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

Revision as of 18:28, 30 April 2018