Hi,
I've upgraded my instance to apex 5.1 and thus far I'm very happy with it. However, I had some small customization's I did to my calendar that no longer work.
These 2 customization's are on the same calendar page and did the following:
- Refreshed it every so often
- Showed the times when the Day View is displayed on my events
So, the below is what/where my Javascript is (Which is combined with some Dynamic Actions, if it should be somewhere else in 5.1 please let me know (everything worked great in 5.0). If anyone can nudge me in the right direction it would be greatly appreciated.
Function and Global Variable Declaration
---------------------------------------------------------
function refreshCalendar() {
$("#refreshbutton span.t-Icon").addClass("fa-spin");
window.setTimeout(function() {
$("#teamcalendar_calendar").fullCalendar("refetchEvents");
window.setTimeout(function() {
$("#refreshbutton span.t-Icon").removeClass("fa-spin");
}, 1000);
}, 50);
}
Execute when Page Loads
--------------------------------------
$("#teamcalendar_calendar").fullCalendar('option','height',670);
var periodicrefresh = setInterval(function() {
refreshCalendar();
}, 120000);
/*
The below code shows the time in the week view.
*/
$(".fc-agendaDay-button").click(function() {
$s("P193_VIEW","Day");
});
$(".fc-agendaWeek-button").click(function() {
$s("P193_VIEW","Week");
});
$(".fc-month-button").click(function() {
$s("P193_VIEW","Month");
});
$(".fc-list-button").click(function() {
$s("P193_VIEW","List");
});
HTML Header
-------------------
<script language="JavaScript" type="text/javascript">
function f_setItem (pItem)
{
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',&APP_PAGE_ID.);
get.add(pItem,$x(pItem).value)
gReturn = get.get();
get = null;
}
</script>