Skip to content

Instantly share code, notes, and snippets.

@Apina
Created July 15, 2013 09:50
Show Gist options
  • Save Apina/5998752 to your computer and use it in GitHub Desktop.
Save Apina/5998752 to your computer and use it in GitHub Desktop.
EE set the calendar to show a specific date - this goes in the espresso-celendar.php file approx line 860. Note that month starts at 0 (zero) not 1, so code below is showing 21st March 2013
//this is just showing you where the code needs to go
if( ee_parentHeight < ee_newHeight ) {
ee_newHeight = ee_newHeight + 30;
dayCnt.parents('tr').height( ee_newHeight ).css({ 'height' : ee_newHeight + 'px' });
}
}
});
},
ee_imgTimeout
);
// this is the actual code that changes the date
$('#espresso_calendar').fullCalendar('gotoDate', 2013, 2, 21);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment