Skip to content

Instantly share code, notes, and snippets.

@creativepsyco
Created May 18, 2011 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creativepsyco/979297 to your computer and use it in GitHub Desktop.
Save creativepsyco/979297 to your computer and use it in GitHub Desktop.
Thunderbird Links
/**
* Check if the specified calendar is writable. This is the case when it is not
* marked readOnly, we are not offline, or we are offline and the calendar is
* local.
*
* @param aCalendar The calendar to check
* @return True if the calendar is writable
*/
function isCalendarWritable(aCalendar) {
return (!aCalendar.getProperty("disabled") &&
!aCalendar.readOnly &&
(!getIOService().offline ||
aCalendar.getProperty("requiresNetwork") === false));
}
In-Place Extension: /Users/msk/Desktop/moz/objdir-tb-release/mozilla/dist/Miramar.app/Contents/MacOS/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome/calendar/content/calendar/calUtils.js
isCalen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment