When I click the +Add button on my calendar the start/end date/time is being set to the current date instead of the date that I'm clicking on.
I believe this has to do with a script I added that converts all of my events into All Day Events. This is the script:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("ready");
function ready()
{
// checks All Day Event
if (!$('span[title="All Day Event"] > input').attr("checked"))
{
$('span[title="All Day Event"] > input').click();
}
//hide check-box
$('tr:has(span[title="All Day Event"])').not('tr:has(tr)').hide();
//$('nobr:contains("All Day Event")').closest('tr').hide();
}
</script>
How can I modify this script so that the date that I'm clicking on is the date that is pre-populated in the start/end date fields?