Forum Post: RE: Change defaults on calendar object

  • Thread starter Thread starter Godfrey Sorita
  • Start date Start date
Status
Not open for further replies.
G

Godfrey Sorita

Guest
This version hides the section of the calendar component instead of the whole body. Since the code used to hide the calendar component is JavaScript, there might be a short execution delay. script type="text/javascript" calendarSectionName = 'Calendar'; function setCalendarFilters() { /* Description: Use to set 'Show' filter Possible values for objectFilter variable: 1. -1 = All Tasks & Events 2. -10 = All Tasks 3. -20 = All Events 4. Object Definition ID = Specific Object(e.g 110006390) */ var objectFilter = '-20'; $("#rbe_objectsFilter").val(objectFilter); /* Description: Use to set 'Assigned To' filer Possible values for assignedToFilter variable: 1. Me = Only Me 2. ALL_USERS = Any Users 3. R Role ID = Specific role(e.g R90) 4. G Group ID = Specific group(e.g G110007529) */ var assignedToFilter = 'Me'; $("#rbe_assignedToFilter").val(assignedToFilter); } function delayedRefresh() { delayInMilliseconds = 1000; setTimeout(function() { rbf_refreshData(); $("div[name='"+calendarSectionName+"']").show(); }, delayInMilliseconds); } $("div[name='"+calendarSectionName+"']").hide(); rbf_addOnLoadMethod(setCalendarFilters); rbf_addOnLoadMethod(delayedRefresh); /script Please change the value of 'calendarSectionName' with the section name of calendar component.

Continue reading...
 
Status
Not open for further replies.
Back
Top