Class ZmCalendarApp
Class Detail
ZmCalendarApp(container, parentController)
Creates and initializes the calendar application.
Author: Conrad Damon.
Method Detail
<static>
{ZmActionMenu}
ZmCalendarApp.addCalViewMenu(parent)
Adds an invite actions submenu for accept/decline/tentative.
<static>
{ZmActionMenu}
ZmCalendarApp.addInviteReplyMenu(parent)
Adds an invite actions submenu for accept/decline/tentative.
<static>
ZmCalendarApp.createMiniCalButton(parent, buttonId, dateButtonListener, dateCalSelectionListener, reparent)
Creates a new button with a DwtCalendar as the menu.
<static>
ZmCalendarApp.createReminderButton(parent, buttonId, buttonListener, menuSelectionListener)
Creates a new button with a reminder options as its menu.
{ZmApptComposeController}
getApptComposeController(sessionId)
Gets the appointment compose controller.
{ZmCalViewController}
getCalController(sessionId, searchResultsController)
Gets the calendar controller.
{String}
getCalendarName(id)
Gets the name of the calendar with specified id.
{Array}
getCheckedCalendarFolderIds(localOnly, includeTrash)
Gets the list of checked calendar ids. If calendar packages are not loaded,
gets the list from deferred folder ids.
{ZmResourceList}
getEquipment()
Gets a list of equipment.
{ZmFreeBusyCache}
getFreeBusyCache()
Gets the free busy cache.
{ZmCalViewController}
getListController()
Gets the list controller.
{ZmResourceList}
getLocations()
Gets a list of locations.
{Array}
getReminderCalendarFolderIds()
Gets the list of calendar ids for reminders. If calendar packages are not loaded,
gets the list from deferred folder ids.
{ZmReminderController}
getReminderController()
Gets the reminder controller.
<static>
{String}
ZmCalendarApp.getReminderSummary(reminderMinutes)
Gets the summary of reminder info from the reminder minutes.
<static>
ZmCalendarApp.getReminderTimeWarningDisplayOptions()
Returns the reminder warning time display options formatted for preferences
we create preferences reminder button here .
<static>
ZmCalendarApp.postLoadSetDefaultReminderValue()
Client side mapping of never is -1 and 'at time of event' is 0.
If never is chosen in default reminder dropdown, user saves his preferences. We then modify the request
and set the pref zimbraPrefCalendarApptReminderWarningTimevalue value to 0, to make the behaviour
backward compatible, as earlier never was mapped to 0. Now, after reload, the value of pref zimbraPrefCalendarApptReminderWarningTimevalue
in client side i.e ZmSetting.CAL_REMINDER_WARNING_TIME, is 0 as the server returns me this value.
This was causing issue in the view of reminder option in pref section and while composing a new appt.
So, here we map default reminder pref to its client side mapping.
Same thing with 'at time of event'.
<static>
ZmCalendarApp.setDefaultReminderTimePrefValueOnSave(pref, value, list)
On doing save, we modify the request and map zimbraPrefCalendarApptReminderWarningTimevalue
so that the value of never, 0, is not changed at server.
If never is selected in reminder dropdown, we map never value -1 to previous value, 0
and if 'at time of event' is chosen, we map 0 to -1 while constructing request.
showMiniCalendar(show, delay)
Shows the mini-calendar.
|
||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:34 GMT-0400 (EDT)
|