rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
sep = document.createElementNS("http: | sep = document.createElementNS(XUL_NS, "menuseparator"); | function BuildJSEAttributeNameList(){ ClearMenulist(gDialog.AddJSEAttributeNameList); // Get events specific to current element var elementName = gElement.localName.toLowerCase(); if (elementName in gJSAttr) { var attNames = gJSAttr[elementName]; var i; var popup; var sep; if (attNames && attNames... |
try { for (var prop in aObject) | for (var prop in aObject) { try { | buildPropertyTree: function(aTreeChildren, aObject) { try { for (var prop in aObject) this.addTreeItem(aTreeChildren, prop, aObject[prop], aObject); } catch (ex) { // hide unsightly NOT YET IMPLEMENTED errors when accessing certain properties } }, |
} catch (ex) { | } catch (ex) { } | buildPropertyTree: function(aTreeChildren, aObject) { try { for (var prop in aObject) this.addTreeItem(aTreeChildren, prop, aObject[prop], aObject); } catch (ex) { // hide unsightly NOT YET IMPLEMENTED errors when accessing certain properties } }, |
try { historyCount = gPrefs.CopyUnicharPref("editor.history.url_maximum"); } catch(e) {} | try { historyCount = gPrefs.GetIntPref("editor.history.url_maximum"); } catch(e) {} | function BuildRecentMenu(savePrefs){ // Can't do anything if no prefs if (!gPrefs) return; var popup = document.getElementById("menupopup_RecentFiles"); if (!popup || !window.editorShell || !window.editorShell.editorDocument) return; // Delete existing menu while (popup.firstChild) popup.removeChild(... |
if (col.id == "breaks:col-0") | if (typeof col == "object") col = col.id; if (col == "breaks:col-0") | function bv_cellprops (index, col, properties){ if (col.id == "breaks:col-0") { var row = this.childData.locateChildByVisualRow(index); if (row.type == "future") properties.AppendElement (this.atomFBreak); else properties.AppendElement (this.atomBreak); }} |
["save-breakpoints"], ["restore-settings"], ["-"], | function bv_init (){ console.menuSpecs["context:breaks"] = { getContext: this.getContext, items: [ ["find-url"], ["-"], ["clear-break", { enabledif: "has('hasBreak')" }], ["clear-fbreak", { enabledif: "has('hasFBreak')" }], ["-"], ["clear-all"], ... | |
if (!aItem.alarmOffset && !(aItem.parentItem && aItem.parentItem.alarmOffset)) { return; } | function calAlarmService() { this.wrappedJSObject = this; this.calendarObserver = { alarmService: this, // calIObserver: onStartBatch: function() { }, onEndBatch: function() { }, onLoad: function() { }, onAddItem: function(aItem) { if (!aItem.alarmOffset && ... | |
function hasAlarm(a) { return a.alarmOffset || a.parentItem.alarmOffset; } occs = occs.filter(hasAlarm); | function calAlarmService() { this.wrappedJSObject = this; this.calendarObserver = { alarmService: this, // calIObserver: onStartBatch: function() { }, onEndBatch: function() { }, onLoad: function() { }, onAddItem: function(aItem) { if (!aItem.alarmOffset && ... | |
this.setUpRefreshTimer(); | function calCalendarManager() { this.wrappedJSObject = this; this.initDB(); this.mCache = {}; this.setUpReadOnlyObservers();} | |
this.mItems = { }; | function calDavCalendar() { this.wrappedJSObject = this; this.mObservers = [ ]; this.mItems = { };} | |
var red = calcColor.substring( 0, 2 ); var green = calcColor.substring( 2, 4 ); var blue = calcColor.substring( 4, 6 ); | var red = parseInt( calcColor.substring( 0, 2 ), 16 ); var green = parseInt( calcColor.substring( 2, 4 ), 16 ); var blue = parseInt( calcColor.substring( 4, 6 ), 16 ); | function calendarColorStyleRuleUpdate( ThisCalendarObject ){ var j = -1; var i; // obtain calendar name from the Id var containerName = ThisCalendarObject.Id.split(':')[2]; var tempStyleSheets = document.styleSheets; for (i=0; i<tempStyleSheets.length; i++) { if (tempStyleSheets[i].href.match(/chr... |
var sum = parseInt( red, 16 ) + parseInt( green, 16 ) + parseInt( blue, 16 ); | var max = Math.max( Math.max( red, green ), blue ); var min = Math.min( Math.min( red, green ), blue ); var lightness = ( max + min ) / 2; | function calendarColorStyleRuleUpdate( ThisCalendarObject ){ var j = -1; var i; // obtain calendar name from the Id var containerName = ThisCalendarObject.Id.split(':')[2]; var tempStyleSheets = document.styleSheets; for (i=0; i<tempStyleSheets.length; i++) { if (tempStyleSheets[i].href.match(/chr... |
if ( sum < 256 ) | if ( lightness < 120 ) | function calendarColorStyleRuleUpdate( ThisCalendarObject ){ var j = -1; var i; // obtain calendar name from the Id var containerName = ThisCalendarObject.Id.split(':')[2]; var tempStyleSheets = document.styleSheets; for (i=0; i<tempStyleSheets.length; i++) { if (tempStyleSheets[i].href.match(/chr... |
gDefaultTimezone = null; | gDefaultTimezone = guessSystemTimezone(); dump("gDefaultTimezone: " + gDefaultTimezone); | function calendarDefaultTimezone() { if (gDefaultTimezone == -1) { var prefobj = prefService.getBranch("calendar."); try { gDefaultTimezone = prefobj.getCharPref("timezone.local"); } catch (e) { gDefaultTimezone = null; } } return gDefaultTimezone;} |
dump("gDefaultTimezone: " + gDefaultTimezone); | dump("gDefaultTimezone: " + gDefaultTimezone + "\n"); | function calendarDefaultTimezone() { if (gDefaultTimezone == -1) { var prefobj = prefService.getBranch("calendar."); try { gDefaultTimezone = prefobj.getCharPref("timezone.local"); } catch (e) { gDefaultTimezone = guessSystemTimezone(); dump("gDefaultTimezone: " ... |
alert( "The ICAL Componenet is not registered properly. Please follow the instructions below:\n"+ | alert( "The ICAL Component is not registered properly. Please follow the instructions below:\n"+ | function CalendarEventDataSource( observer, UserPath, syncPath ){ try { var iCalLibComponent = Components.classes["@mozilla.org/ical-container;1"].createInstance(); } catch ( e ) { alert( "The ICAL Componenet is not registered properly. Please follow the instructions below:\n"+ "Windows ... |
var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance(); | try { var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance(); } catch ( e ) { alert( "The ICAL Componenet is not registered properly. Please file a bug at http: return; } | function CalendarEventDataSource( observer, UserPath, syncPath ){ var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance(); if( !iCalLibComponent ) { alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file an... |
if( !iCalLibComponent ) { alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file and restart Mozilla." ); return; } | function CalendarEventDataSource( observer, UserPath, syncPath ){ var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance(); if( !iCalLibComponent ) { alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file an... | |
if( !this.gICalLib ) { alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file and restart Mozilla." ); return; } | function CalendarEventDataSource( observer, UserPath, syncPath ){ var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance(); if( !iCalLibComponent ) { alert( "The ICAL Componenet is not registered properly. Please quit Mozilla, remove your component.reg file an... | |
finishCalendarUnifinder( gEventSource ); finishCalendarEmail( gEventSource ); | function calendarFinish(){ gCalendarWindow.close( );} | |
var pbi = prefService.getBranch(""); pbi = pbi.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver("calendar.category.color.", categoryPrefObserver); | finishCalendarManager(); | function calendarFinish(){ finishCalendarUnifinder(); finishCalendarToDoUnifinder(); var pbi = prefService.getBranch(""); pbi = pbi.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver("calendar.category.color.", categoryPrefObserver); gCalendarWindow.close(); gICalLib.removeObserve... |
var pbi = prefService.getBranch(""); pbi = pbi.QueryInterface(Components.interfaces.nsIPrefBranchInternal); pbi.removeObserver("calendar.category.color.", categoryPrefObserver); | function calendarFinish(){ finishCalendarUnifinder(); finishCalendarToDoUnifinder(); gCalendarWindow.close(); gICalLib.removeObserver( gEventSource.alarmObserver );} | |
if (document.styleSheets[i].href == "chrome: | if (document.styleSheets[i].href.indexOf( "/calendar.css" ) != -1 ) | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... |
var alarmSvc = Components.classes["@mozilla.org/calendar/alarm-service;1"] .getService(Components.interfaces.calIAlarmService); alarmSvc.startup(); | function calendarInit() { // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow(); // Set up the checkbox variables. Do not use the typical change*() functions // because those will actually toggle the current value. if (document.getElementById("toggle_workdays_only").getAttribute("ch... | |
prepareCalendarUnifinder( gEventSource ); | prepareCalendarUnifinder( ); | function calendarInit() { // get the calendar event data source // global calendar gEventSource = new CalendarEventDataSource( ); // get the Ical Library gICalLib = gEventSource.getICalLib(); // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow( gEventSource ); // set up... |
updateColors(); | function calendarInit() { // XXX remove this eventually gICalLib = new Object(); // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow(); //when you switch to a view, it takes care of refreshing the events, so that call is not needed. gCalendarWindow.currentView.switchTo( gCalen... | |
document.getElementById( 'event-filter-menulist' ).setAttribute( "label", document.getElementById( 'event-filter-menulist' ).selectedItem.getAttribute( 'label' ) ); | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow( gEventSource ); //when you switch to a view, it ... | |
for (var i=0; i < window.arguments.length; i++) { try { var cl = window.arguments[i].QueryInterface(Components.interfaces.nsICommandLine); } catch(ex) { dump("unknown argument passed to main window\n"); continue; } handleCommandLine(cl); } | function calendarInit() { // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow(); // Set up the checkbox variables. Do not use the typical change*() functions // because those will actually toggle the current value. if (document.getElementById("toggle_workdays_only").getAttribute("ch... | |
update_date(); | scheduleMidnightUpdate(refreshUIBits); | function calendarInit() { // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow(); // Set up the checkbox variables. Do not use the typical change*() functions // because those will actually toggle the current value. if (document.getElementById("toggle_workdays_only").getAttribute("ch... |
document.getElementById("view-deck") .addEventListener("dayselect", observeViewDaySelect, false); | getViewDeck().addEventListener("dayselect", observeViewDaySelect, false); getViewDeck().addEventListener("itemselect", onSelectionChanged, true); | function calendarInit() { // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow(); // Set up the checkbox variables. Do not use the typical change*() functions // because those will actually toggle the current value. if (document.getElementById("toggle_workdays_only").getAttribute("ch... |
var toolbox = document.getElementById("calendar-toolbox"); toolbox.customizeDone = CalendarToolboxCustomizeDone; | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... | |
var red = calcColor.substring(0, 2); var green = calcColor.substring(2, 4); var blue = calcColor.substring(4, 6); | var red = parseInt(calcColor.substring(0, 2), 16); var green = parseInt(calcColor.substring(2, 4), 16); var blue = parseInt(calcColor.substring(4, 6), 16); | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... |
var sum = parseInt(red, 16) + parseInt(green, 16) + parseInt(blue, 16); | var max = Math.max(Math.max(red, green), blue); var min = Math.min(Math.min(red, green), blue); var lightness = (max + min) / 2; | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... |
if (sum < 256) | if (lightness < 120) | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... |
var containerName; | function calendarInit() { if(applicationName == "Thunderbird") { document.getElementById( 'tasksMenuNavigator' ).setAttribute( "collapsed", "true" ); } // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // th... | |
if( ("arguments" in window.arguments) && ("channel" in window.arguments[0]) ) | if( ("arguments" in window) && ("channel" in window.arguments[0]) ) | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... |
var catergoryPrefBranch = prefService.getBranch(""); var pbi = catergoryPrefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal); pbi.addObserver("calendar.category.color.", categoryPrefObserver, false); categoryPrefObserver.mCalendarStyleSheet = gCalendarStyleSheet; categoryPrefObserver.observe(null, nul... | function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ... | |
if( this.rootContainer.getSubNodes()[i].getAttribute( "http: | var Calendar = this.rootContainer.getSubNodes()[i]; if( Calendar.getAttribute( "http: | function calendarManager( CalendarWindow ){ this.CalendarWindow = CalendarWindow; /* We need a Calendar directory in our profile directory */ var CalendarDirectory = new File( this.getProfileDirectory().path ); CalendarDirectory.append( "Calendar" ); /* make sure the calendar directory exists, create it if... |
this.addCalendar( this.rootContainer.getSubNodes()[i] ); } | this.addCalendar( Calendar ); } autoreload = Calendar.getAttribute( "http: if ( autoreload > 0 ) { function closure( ThisObject,ThisCalendar ) { function autoreloadCmd(){ if( ThisCalendar.getAttribute( "http: ThisObject.reloadCalendar( ThisCalendar ); } } return autoreloadCmd; } var X = closure( this, Calendar ); var ... | function calendarManager( CalendarWindow ){ this.CalendarWindow = CalendarWindow; /* We need a Calendar directory in our profile directory */ var CalendarDirectory = new File( this.getProfileDirectory().path ); CalendarDirectory.append( "Calendar" ); /* make sure the calendar directory exists, create it if... |
var RefreshServers = getBoolPref(this.CalendarWindow.calendarPreferences.calendarPref, "servers.reloadonlaunch", gCalendarBundle.getString("reloadServersOnLaunch" ) ); if( RefreshServers == true ) this.refreshAllRemoteCalendars( ); } | function calendarManager( CalendarWindow ){ this.CalendarWindow = CalendarWindow; /* We need a Calendar directory in our profile directory */ var CalendarDirectory = new File( this.getProfileDirectory().path ); CalendarDirectory.append( "Calendar" ); /* make sure the calendar directory exists, create it if... | |
this.shared = false; this.autoreload = 0; | function CalendarObject(){ this.path = ""; this.serverNumber = 0; this.name = ""; this.remote = false; this.remotePath = ""; this.active = false; this.color = ""; this.publishAutomatically = false;} | |
getBoolPref( this.calendarPref, "dateformat.storeingmt", calendarStringBundle.GetStringFromName("storeInGmt") ); | function calendarPreferences( CalendarWindow ){ window.calendarPrefObserver = new calendarPrefObserver( this ); this.calendarWindow = CalendarWindow; this.calendarPref = prefService.getBranch("calendar."); // preferences calendar node var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calend... | |
getIntPref( this.calendarPref, "alarms.onforevents", 0 ); getIntPref( this.calendarPref, "alarms.onfortodos", 0 ); | function calendarPreferences( CalendarWindow ){ window.calendarPrefObserver = new calendarPrefObserver( this ); this.calendarWindow = CalendarWindow; this.calendarPref = prefService.getBranch("calendar."); // preferences calendar node var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/cale... | |
getBoolPref( this.calendarPref, "alarms.showmissed", categoriesStringBundle.GetStringFromName("showMissed" ) ); | function calendarPreferences( CalendarWindow ){ window.calendarPrefObserver = new calendarPrefObserver( this ); this.calendarWindow = CalendarWindow; this.calendarPref = prefService.getBranch("calendar."); // preferences calendar node var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/cale... | |
getCharPref( this.calendarPref, "alarms.soundURL", calendarStringBundle.GetStringFromName("soundURL")); | function calendarPreferences( CalendarWindow ){ window.calendarPrefObserver = new calendarPrefObserver( this ); this.calendarWindow = CalendarWindow; this.calendarPref = prefService.getBranch("calendar."); // preferences calendar node var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calend... | |
pbi.addObserver("calendar", this, false); | pbi.addObserver("calendar.", this, false); | function calendarPrefObserver( CalendarPreferences ){ this.CalendarPreferences = CalendarPreferences; try { var pbi = rootPrefNode.QueryInterface(Components.interfaces.nsIPrefBranchInternal); pbi.addObserver("calendar", this, false); window.addEventListener("unload", this, false); } catch(ex) { dump... |
dump("done\n"); } | } | function calendarPublish(aDataString, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_string_to_channel(pr... |
alert("an error occurred: " + e + "\n"); | alert("an error occurred in calendarPublish: " + e + "\n"); | function calendarPublish(aDataString, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_string_to_channel(pr... |
var ad = a.startDate || a.entryDate; var bd = b.startDate || b.entryDate; | var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate; | function calendarUpdateComplete(){ [this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { var ad = a.startDate || a.entryDate; var bd = b.startDate || b.entryDate; return ad.compare(bd); } when.events.sort(compare); }); thi... |
alert("an error occurred: " + e + "\n"); | alert("an error occurred in calendarUploadFile: " + e + "\n"); | function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } ... |
protocolChannel.asyncOpen(gPublishingListener, null); | protocolChannel.asyncOpen(gPublishingListener, protocolChannel); | function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } ... |
gCalendarWindow.EventSelection.replaceSelection( currentTarget.calendarEventDisplay.event ); | gCalendarWindow.EventSelection.replaceSelection( currentTarget.event ); | function calendarViewClick ( aEvent ) { var currentTarget = aEvent.currentTarget; var currentTargetFirstClassName = currentTarget.className.split(" ")[0]; if(currentTargetFirstClassName == "day-view-hour-box-class") dayViewHourClick( aEvent ); if(currentTargetFirstClassName == "day-view-event-class") gCalenda... |
this.EventSelection = new CalendarEventSelection( this ); calendarViewController.selectionManager = this.EventSelection; | function CalendarWindow( ){ //setup the calendar event selection this.EventSelection = new CalendarEventSelection( this ); calendarViewController.selectionManager = this.EventSelection; // Extension authors can tweak this array to make gCalendarWindow.switchToView // play nicely with any additional views t... | |
this.calendarPreferences = new calendarPreferences( this ); this.miniMonth = document.getElementById( "lefthandcalendar" ); | function CalendarWindow( ){ //setup the preferences this.calendarPreferences = new calendarPreferences( this ); // miniMonth used by preferences this.miniMonth = document.getElementById( "lefthandcalendar" ); //setup the calendar event selection this.EventSelection = new CalendarEventSelection( this ); ... | |
this.dateFormater = new DateFormater(); | this.dateFormater = new DateFormater( this ); | function CalendarWindow( calendarDataSource ){ this.eventSource = calendarDataSource; //setup the preferences this.calendarPreferences = new calendarPreferences( this ); this.EventSelection = new CalendarEventSelection( this ); this.dateFormater = new DateFormater(); this.monthView = new MonthView(... |
this.dateFormater = new DateFormater( this ); | function CalendarWindow( ){ //setup the preferences this.calendarPreferences = new calendarPreferences( this ); // miniMonth used by preferences this.miniMonth = document.getElementById( "lefthandcalendar" ); //setup the calendar event selection this.EventSelection = new CalendarEventSelection( this ); ... | |
this.initItemBase(); this.initEvent(); | function calEvent() { this.wrappedJSObject = this;} | |
return( getNextOrPreviousRecurrence( eventA ).getTime() - getNextOrPreviousRecurrence( eventB ).getTime() ); | return( getCurrentNextOrPreviousRecurrence( eventA ).getTime() - getCurrentNextOrPreviousRecurrence( eventB ).getTime() ); | CalendarEventDataSource.prototype.orderRawEventsByDate = function calEvent_orderRawEventsByDate( eventA, eventB ){ return( getNextOrPreviousRecurrence( eventA ).getTime() - getNextOrPreviousRecurrence( eventB ).getTime() );} |
this.occurrenceStartDate = createCalDateTime(); this.occurrenceEndDate = createCalDateTime(); | this.occurrenceStartDate = new CalDateTime(); this.occurrenceEndDate = new CalDateTime(); | function calItemOccurrence () { this.wrappedJSObject = this; this.occurrenceStartDate = createCalDateTime(); this.occurrenceEndDate = createCalDateTime();} |
this._reponseStatus = channel.ResponseStatus; this._responseString = channel.ResponseString; | this._reponseStatus = channel.responseStatus; this._responseString = channel.responseString; | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... |
if (channel.ResponseStatus != 200) { | if (channel.responseStatus != 200) { | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... |
channel.ResponseStatus; | channel.responseStatus; | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... |
channel.ResponseStatus); | channel.responseStatus); | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... |
call: function(methodName) { | call: function(methodName, methodArgs, count) { | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... |
var methodArgs = [].concat(arguments); methodArgs.shift(); | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... | |
if (new Date() - now > 1 * 60 * 1000) | if (new Date() - now > 1 * 60 * 1000) { this._inProgress = false; | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... |
} | call: function(methodName) { debug('call'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not initilized'); t... | |
gStartTime = startTime; gEndTime = endTime; | var duration = endTime.subtractDate(startTime); startTime = startTime.clone(); endTime = endTime.clone(); endTime.normalize(); startTime.normalize(); var kDefaultTimezone = calendarDefaultTimezone(); gStartTimezone = startTime.timezone; gEndTimezone = endTime.timezone; gStartTime = startTime.getInTimezone(kDefaultTimez... | var callback = function(attendees,organizer,startTime,endTime) { savedWindow.attendees = attendees; savedWindow.organizer = organizer; gStartTime = startTime; gEndTime = endTime; updateAttendees(); updateDateTime(); }; |
dd ("Caught exception calling " + (isBefore ? "before" : "after") + " hook " + h); | function callHooks (command, isBefore) { var names, hooks; if (isBefore) hooks = command.beforeHooks; else hooks = command.afterHooks; for (var h in hooks) { if ("dbgDispatch" in console && console.dbgDispatch) { ... | |
CalendarObject.Id = node.resource.Value; calendarColorStyleRuleUpdate( CalendarObject ); | calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ var now = new Date(); var name = "calendar"+now.getTime(); CalendarObject.active = true; CalendarObject.remotePath = CalendarObject.remotePath.replace( "webcal:", "http:" ); var node = this.rootConta... | |
var name = "calendar"+this.rootContainer.getSubNodes().length; | var now = new Date(); var name = "calendar"+now.getTime(); | calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ var name = "calendar"+this.rootContainer.getSubNodes().length; CalendarObject.active = true; CalendarObject.remotePath = CalendarObject.remotePath.replace( "webcal:", "http:" ); var node = this... |
calendarColorStyleRuleUpdate( CalendarObject ); | calendarManager.prototype.editServerDialogResponse = function calMan_editServerDialogResponse( CalendarObject ){ var name = CalendarObject.Id; //get the node var node = this.rdf.getNode( name ); node.setAttribute("http://home.netscape.com/NC-rdf#username", CalendarObject.username); node.setAttribute("ht... | |
if (subject > max) max = subject; | if (Number(subject) > max) max = Number(subject); | calendarManager.prototype.nextCalendar = function calMan_getNextCalendar(){ var seq = this.rootContainer.getSubNodes(); var max = -1; var subject; for (var count = 0; count < seq.length; count++ ) { subject = seq[count].getSubject(); subject = subject.replace(/^.*calendar(\d+)$/, "$1"); ... |
var profileComponent = Components.classes["@mozilla.org/profile/manager;1"].createInstance(); var profileInternal = profileComponent.QueryInterface(Components.interfaces.nsIProfileInternal); var profileFile = profileInternal.getProfileDir(profileInternal.currentProfile); return( profileFile ); | var dirService; if( "@mozilla.org/directory_service;1" in Components.classes ) { dirService = Components.classes["@mozilla.org/directory_service;1"] .getService(Components.interfaces.nsIProperties); } else { dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIPr... | calendarManager.prototype.getProfileDirectory = function calMan_getProfileDirectory(){ var profileComponent = Components.classes["@mozilla.org/profile/manager;1"].createInstance(); var profileInternal = profileComponent.QueryInterface(Components.interfaces.nsIProfileInternal); var profileFile = profileInte... |
if( typeof( result ) != "string" ) result = String.fromCharCode.apply(this, result); | if( typeof( result ) != "string" ) { var sliceStringArray = new Array(); for (var start = 0, end; start < (end = Math.min(result.length, start + 32768)); start = end) { var slice = result.slice(start, end); var sliceString = String.fromCharCode.apply(null, slice); sliceStringArray[sliceStringArray.length] = sliceSt... | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { // revert from "wait" cursor set by getRemoteCalendarText (below) window.setCur... |
}, | } | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); var retval = false; if( typeof( result )... |
calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ) | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURI ) | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ){ CalendarURL = CalendarURL.replace( "webcal:", "http:" ); this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubN... |
CalendarURL = CalendarURL.replace( "webcal:", "http:" ); | CalendarURL = CalendarURI.spec.replace( "webcal:", "http:" ); | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ){ CalendarURL = CalendarURL.replace( "webcal:", "http:" ); this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubN... |
this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) | var subNodes = this.rootContainer.getSubNodes(); for( var i = 0; i < subNodes.length; i++ ) | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ){ CalendarURL = CalendarURL.replace( "webcal:", "http:" ); this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubN... |
if( this.rootContainer.getSubNodes()[i].getAttribute( "http: | if( subNodes[i].getAttribute( "http: | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ){ CalendarURL = CalendarURL.replace( "webcal:", "http:" ); this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubN... |
return( this.rootContainer.getSubNodes()[i] ); | return( subNodes[i] ); | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ){ CalendarURL = CalendarURL.replace( "webcal:", "http:" ); this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubN... |
} if( CalendarURI.scheme == "file" ) { for( i = 0; i < subNodes.length; i++ ) { if( makeURLFromPath( subNodes[i].getAttribute( "http: return( subNodes[i] ); } } | calendarManager.prototype.isURLAlreadySubscribed = function calMan_isCalendarSubscribed( CalendarURL ){ CalendarURL = CalendarURL.replace( "webcal:", "http:" ); this.rdf.getRootContainers().length == 0 for( var i = 0; i < this.rootContainer.getSubNodes().length; i++ ) { if( this.rootContainer.getSubN... | |
calendarColorStyleRuleUpdate( ThisCalendarObject ); | calendarManager.prototype.launchAddRemoteCalendarDialog = function calMan_launchAddCalendarDialog( aName, aUrl ){ // set up a bunch of args to pass to the dialog var ThisCalendarObject = new CalendarObject(); if( aName ) ThisCalendarObject.name = aName; if( aUrl ) { ThisCalendarObject.remote = tr... | |
calendarColorStyleRuleUpdate( ThisCalendarObject ); | calendarManager.prototype.launchEditRemoteCalendarDialog = function calMan_launchEditCalendarDialog( ){ //get the currently selected calendar // set up a bunch of args to pass to the dialog var ThisCalendarObject = new CalendarObject(); var SelectedCalendarId = this.getSelectedCalendarId(); var SelectedCal... | |
throbberElement.setAttribute("busy", "true") | if (throbberElement) throbberElement.setAttribute("busy", "true") | calendarManager.prototype.refreshAllRemoteCalendars = function calMan_refreshAllRemoteCalendars(){ var throbberElement = document.getElementById("navigator-throbber"); //get all the calendars. //get all the other calendars var SubNodes = this.rootContainer.getSubNodes(); for( var i = gNextSubNodeToRefresh;... |
throbberElement.setAttribute("busy", "false") | if (throbberElement) throbberElement.setAttribute("busy", "false") | calendarManager.prototype.refreshAllRemoteCalendars = function calMan_refreshAllRemoteCalendars(){ var throbberElement = document.getElementById("navigator-throbber"); //get all the calendars. //get all the other calendars var SubNodes = this.rootContainer.getSubNodes(); for( var i = gNextSubNodeToRefresh;... |
this.calendarToReturn = this, | function calMemoryCalendar() { this.wrappedJSObject = this; this.initMemoryCalendar();} | |
this.selectedEvents[ this.selectedEvents.length ] = Event; | this.selectedEvents[ this.selectedEvents.length ] = Event.parentItem; | CalendarEventSelection.prototype.addToSelection = function calSel_addToSelection( Event ){ this.selectedEvents[ this.selectedEvents.length ] = Event; this.onSelectionChanged();} |
if( this.selectedEvents[i] == Event ) | if( this.selectedEvents[i] == Event.parentItem ) | CalendarEventSelection.prototype.isSelectedEvent = function calSel_isSelectedEvent( Event ){ for( var i = 0; i < this.selectedEvents.length; i++ ) { if( this.selectedEvents[i] == Event ) return true; } return false;} |
this.selectedEvents[ this.selectedEvents.length ] = Event; | this.selectedEvents[ this.selectedEvents.length ] = Event.parentItem; | CalendarEventSelection.prototype.replaceSelection = function calSel_replaceSelection( Event ){ this.selectedEvents = new Array(); this.selectedEvents[ this.selectedEvents.length ] = Event; this.onSelectionChanged(); } |
this.selectedEvents[ this.selectedEvents.length ] = ArrayOfEvents[i]; | this.selectedEvents[ this.selectedEvents.length ] = ArrayOfEvents[i].parentItem; | CalendarEventSelection.prototype.setArrayToSelection = function calSel_setArrayToSelection( ArrayOfEvents ){ this.selectedEvents = new Array(); for( var i = 0; i < ArrayOfEvents.length; i++ ) { this.selectedEvents[ this.selectedEvents.length ] = ArrayOfEvents[i]; } this.onSelectionChanged(); } |
if( dayDisplayEventList[i].event.allDay != true ) { | if( dayDisplayEventList[i].event.isAllDay != true ) { | CalendarView.prototype.getViewLimits = function calView_getViewLimits( dayDisplayEventList, date ){ //set defaults from preferences var sHour = getIntPref( this.calendarWindow.calendarPreferences.calendarPref, "event.defaultstarthour", 8 ); var eHour = getIntPref( this.calendarWindow.calendarPreferences.calendarPref... |
var oldDate = this.calendarWindow.selectedDate; | var oldDate = this.calendarWindow.getSelectedDate(); | CalendarView.prototype.goToDay = function calView_goToDay( newDate, ShowEvent ){ var oldDate = this.calendarWindow.selectedDate; this.calendarWindow.setSelectedDate( newDate ); switch( this.calendarWindow.currentView ) { case this.calendarWindow.monthView: if( newDate.getFullYear() != oldDat... |
if( eventList[i].event.allDay) { | if( eventList[i].event.isAllDay) { | CalendarView.prototype.setAllDayDrawProperties = function calView_setAllDayDrawProperties( eventList, startDate, endDate) { startDate.setHours( 0, 0, 0, 0 ); if ( !endDate ) { endDate = new Date(startDate); endDate.setDate( endDate.getDate() + 1 ); } endDate.setHours( 0, 0, 0, 0 ); var startDateValue = s... |
const containerName = "default"; | CalendarView.prototype.setEventboxClass = function calView_setEventboxClass(aEventBox, aEvent, aViewType){ // XXX this isn't really const, of course; need to get it from prefs const containerName = "default"; // set the event box to be of class <aViewType>-event-class // and the appropriate calendar-color class... | |
if( aEvent.categories != null ) { var categoriesList = aEvent.categories.split(","); | if( aEvent.getProperty("CATEGORIES") != null ) { var categoriesList = aEvent.getProperty("CATEGORIES").split(","); | CalendarView.prototype.setEventboxClass = function calView_setEventboxClass(aEventBox, aEvent, aViewType){ // XXX this isn't really const, of course; need to get it from prefs const containerName = "default"; // set the event box to be of class <aViewType>-event-class // and the appropriate calendar-color class... |
categoriesList[i].replace( /[ -_.*?"']/g, "" ); | categoriesList[i] = categoriesList[i].replace(' ','_'); | CalendarView.prototype.setEventboxClass = function calView_setEventboxClass(aEventBox, aEvent, aViewType){ // XXX this isn't really const, of course; need to get it from prefs const containerName = "default"; // set the event box to be of class <aViewType>-event-class // and the appropriate calendar-color class... |
categoriesClassList = categoriesClassList + "event-category-" + categoriesList[i].toLowerCase(); | categoriesClassList = categoriesClassList + categoriesList[i].toLowerCase(); | CalendarView.prototype.setEventboxClass = function calView_setEventboxClass(aEventBox, aEvent, aViewType){ // XXX this isn't really const, of course; need to get it from prefs const containerName = "default"; // set the event box to be of class <aViewType>-event-class // and the appropriate calendar-color class... |
aEventBox.setAttribute("class", aViewType + "-event-class " + containerName + " " + categoriesClassList); | aEventBox.setAttribute("class", aViewType + "-event-class "); aEventBox.setAttribute("item-calendar", aEvent.calendar.uri.spec); aEventBox.setAttribute("item-category", categoriesClassList); | CalendarView.prototype.setEventboxClass = function calView_setEventboxClass(aEventBox, aEvent, aViewType){ // XXX this isn't really const, of course; need to get it from prefs const containerName = "default"; // set the event box to be of class <aViewType>-event-class // and the appropriate calendar-color class... |
var containerName = gCalendarWindow.calendarManager.getCalendarByName( aEvent.parent.server ).subject.split(":")[2]; | const containerName = "default"; | CalendarView.prototype.setEventboxClass = function calView_setEventboxClass(aEventBox, aEvent, aViewType){ var containerName = gCalendarWindow.calendarManager.getCalendarByName( aEvent.parent.server ).subject.split(":")[2]; // set the event box to be of class <aViewType>-event-class // a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.