rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
return null; } | function tolr_getshare(){ if (this.parentRecord) return this.parentRecord._share; else ASSERT (0, "TOLabelRecord cannot be the root of a visible tree.");} | |
window.openDialog( "chrome: "_blank", "chrome,dialog=no,all", "resource:/res/html/empty_doc.html"); | window.openDialog( "chrome: "_blank", "chrome,dialog=no,all", "about:blank"); | function toNewTextEditorWindow(){ window.openDialog( "chrome://editor/content/TextEditorAppShell.xul", "_blank", "chrome,dialog=no,all", "resource:/res/html/empty_doc.html");} |
"chrome: | "resource:/res/html/empty_doc.html"); | function toNewTextEditorWindow(){ window.openDialog( "chrome://editor/content/TextEditorAppShell.xul", "_blank", "chrome,dialog=no,all", "chrome://editor/content/EditorInitPagePlain.html" );} |
if (currentWindow.document.firstChild.getAttribute("relatedUrl") == relatedUrl) { | if (currentWindow.document.documentElement.getAttribute("relatedUrl") == relatedUrl) { | function toOpenDialogByTypeAndUrl(inType, relatedUrl, windowUri, features, extraArgument){ var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator); var windows = windowManagerInt... |
debug("TOP LEVEL bookmarks window got a drag"); | dump("TOP LEVEL bookmarks window got a drag"); | function TopLevelDrag ( event ){ debug("TOP LEVEL bookmarks window got a drag"); return(true);} |
var t; if ((t = this._share.rowCache[targetRow])) return t; | if (targetRow in this._share.rowCache) return this._share.rowCache[targetRow]; | function torr_find (targetRow){ var t; if ((t = this._share.rowCache[targetRow])) return t; var childStart = -1; /* childStart represents the starting visual row * for the child we're examining. */ for (var i = 0; i < this.childData.length; ++i) { var child = this.c... |
this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) | (this.childData[0].sortCompare == tovr_sortcmp && !("sortColumn" in this._share) || this._share.sortDirection == 0)) | function torr_resort (){ if (!("childData" in this) || this.childData.length < 1 || this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) { /* if we have no children, or we have the default sort compare but we're * missing a... |
if (!this.childData || this.childData.length < 1) | if (!("childData" in this) || this.childData.length < 1 || this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) { | function torr_resort (){ if (!this.childData || this.childData.length < 1) return; this.childData.sort(this.childData[0].sortCompare); for (var i = 0; i < this.childData.length; ++i) { this.childData[i].childIndex = i; if (this.childData[i].isContainerOpen) this.child... |
if (this.childData[i].isContainerOpen) | if ("isContainerOpen" in this.childData[i] && this.childData[i].isContainerOpen) | function torr_resort (){ if (!this.childData || this.childData.length < 1) return; this.childData.sort(this.childData[0].sortCompare); for (var i = 0; i < this.childData.length; ++i) { this.childData[i].childIndex = i; if (this.childData[i].isContainerOpen) this.child... |
if (this._treeView && this._treeView.outliner) | if ("_treeView" in this && "outliner" in this._treeView) | function torr_resort (){ if (!this.childData || this.childData.length < 1) return; this.childData.sort(this.childData[0].sortCompare); for (var i = 0; i < this.childData.length; ++i) { this.childData[i].childIndex = i; if (this.childData[i].isContainerOpen) this.child... |
this._treeView.needsResort = true; | this._treeView.needsReSort = true; | function torr_resort (){ if ("_treeView" in this && this._treeView.frozen) { this._treeView.needsResort = true; return; } if (!("childData" in this) || this.childData.length < 1 || (this.childData[0].sortCompare == xtvr_sortcmp && !("sortColumn" in this._share) || this._shar... |
this.childData[i].resort(true); | this.childData[i].reSort(true); | function torr_resort (){ if ("_treeView" in this && this._treeView.frozen) { this._treeView.needsResort = true; return; } if (!("childData" in this) || this.childData.length < 1 || (this.childData[0].sortCompare == xtvr_sortcmp && !("sortColumn" in this._share) || this._shar... |
if (this._treeView.changeStart) | if ("changeStart" in this._treeView) | function torr_vfpchange (start, amount){ if (!this._treeView.frozen) { this.invalidateCache(); this.visualFootprint += amount; if ("_treeView" in this && "outliner" in this._treeView) { if (amount != 0) this._treeView.outliner.rowCountChanged (start, amount); ... |
if (this._treeView && this._treeView.outliner) | if ("_treeView" in this && "outliner" in this._treeView) | function torr_vfpchange (start, amount){ this.invalidateCache(); this.visualFootprint += amount; if (this._treeView && this._treeView.outliner) { if (amount != 0) this._treeView.outliner.rowCountChanged (start, amount); else this._treeView.outliner.invalidateRow (start); ... |
if (this.calId != this.session.userId) str += (", calId=" + this.calId); | str += (", calId=" + this.calId); | toString: function() { var str = this.session.toString(); if (this.calId != this.session.userId) str += (", calId=" + this.calId); return str; }, |
if (row && row._colValues) | if (row && row._colValues && colID in row._colValues) | function tov_getcelltxt (index, colID){ var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row " + index); if (row && row._colValues) return row._colValues[colID]; else return "";} |
return; | return null; | function tov_getcelltxt (index, colID){ var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row " + index); if (row._colValues) return row._colValues[colID]; else return;} |
return Boolean(row && row.childData); | return Boolean(row && "childData" in row); | function tov_isctr (index){ var row = this.childData.locateChildByVisualRow (index); /* ASSERT(row, "bogus row"); var rv = Boolean(row && row.childData); dd ("isContainer: row " + index + " returning " + rv); return rv; */ return Boolean(row && row.childData);} |
dd ("toggleOpenState: locating"); | function tov_toggleopen (index){ dd ("toggleOpenState: locating"); var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row"); if (row) { if (row.isContainerOpen) { dd ("toggleOpenState: closing"); row.close(); } else { ... | |
{ dd ("toggleOpenState: closing"); | function tov_toggleopen (index){ dd ("toggleOpenState: locating"); var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row"); if (row) { if (row.isContainerOpen) { dd ("toggleOpenState: closing"); row.close(); } else { ... | |
} | function tov_toggleopen (index){ dd ("toggleOpenState: locating"); var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row"); if (row) { if (row.isContainerOpen) { dd ("toggleOpenState: closing"); row.close(); } else { ... | |
{ dd ("toggleOpenState: opening"); | function tov_toggleopen (index){ dd ("toggleOpenState: locating"); var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row"); if (row) { if (row.isContainerOpen) { dd ("toggleOpenState: closing"); row.close(); } else { ... | |
dd ("toggleOpenState: done."); | function tov_toggleopen (index){ dd ("toggleOpenState: locating"); var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row"); if (row) { if (row.isContainerOpen) { dd ("toggleOpenState: closing"); row.close(); } else { ... | |
if (this.isContainerOpen) | if ("isContainerOpen" in this && this.isContainerOpen) | function tovr_appchild (child){ if (!(child instanceof TreeOViewRecord)) throw Components.results.NS_ERROR_INVALID_PARAM; var changeStart = (this.childData.length > 0) ? this.childData[this.childData.length - 1].calculateVisualRow() : this.calculateVisualRow(); child.isHidden = false; ... |
if ((!this.parentRecord) || (this.isHidden) || | if (!("parentRecord" in this) || (this.isHidden) || | function tovr_calcrow (){ /* if this is the second time in a row that someone asked us, fetch the last * result from the cache. */ if (this._share.lastIndexOwner == this) return this._share.lastComputedIndex; var vrow; /* if this is an uninserted or hidden node, or... */ if ((!this.parentR... |
if (this.parentRecord) | if ("parentRecord" in this) { this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow(), 0); | function tovr_close (){ if (!this.isContainerOpen) return; this.isContainerOpen = false; var delta = 1 - this.visualFootprint; this.visualFootprint += delta; if (this.parentRecord) this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow() + 1, ... |
if (this.onPostClose) | } if ("onPostClose" in this) | function tovr_close (){ if (!this.isContainerOpen) return; this.isContainerOpen = false; var delta = 1 - this.visualFootprint; this.visualFootprint += delta; if (this.parentRecord) this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow() + 1, ... |
var t; if ((t = this._share.rowCache[targetRow])) return t; | if (targetRow in this._share.rowCache) return this._share.rowCache[targetRow]; | function tovr_find (targetRow, myRow){ var t; if ((t = this._share.rowCache[targetRow])) return t; else if (0) { /* XXX take this out later */ if (typeof myRow == "undefined") myRow = this.calculateVisualRow(); else { ASSERT (myRow == this.calculateVisua... |
while ((parentRecord = parentRecord.parentRecord)) ++rv; | while ("parentRecord" in parentRecord && (parentRecord = parentRecord.parentRecord)) ++rv; | function tovr_getLevel (){ var rv = 0; var parentRecord = this.parentRecord; while ((parentRecord = parentRecord.parentRecord)) ++rv; return rv;} |
if (parent._treeView) | if ("_treeView" in parent) | function tovr_gettree (){ var parent = this.parentRecord while (parent) { if (parent._treeView) return parent._treeView; parent = parent.parentRecord } return null;} |
} | function tovr_open (){ if (this.isContainerOpen) return; if ("onPreOpen" in this) this.onPreOpen(); this.isContainerOpen = true; var delta = 0; for (var i = 0; i < this.childData.length; ++i) { if (!this.childData[i].isHidden) delta += this.childData[i].visualFootpr... | |
if (this.onPreOpen) | if ("onPreOpen" in this) | function tovr_open (){ if (this.isContainerOpen) return; if (this.onPreOpen) this.onPreOpen(); this.isContainerOpen = true; var delta = 0; for (var i = 0; i < this.childData.length; ++i) { if (!this.childData[i].isHidden) delta += this.childData[i].visualFootprint; ... |
if (this.parentRecord) | if ("parentRecord" in this) | function tovr_open (){ if (this.isContainerOpen) return; if (this.onPreOpen) this.onPreOpen(); this.isContainerOpen = true; var delta = 0; for (var i = 0; i < this.childData.length; ++i) { if (!this.childData[i].isHidden) delta += this.childData[i].visualFootprint; ... |
this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) | (this.childData[0].sortCompare == tovr_sortcmp && !("sortColumn" in this._share) || this._share.sortDirection == 0)) | function tovr_resort (leafSort){ if (!("childData" in this) || this.childData.length < 1 || this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) { /* if we have no children, or we have the default sort compare and no * sort... |
if ("isContainerOpen" in this && this.childData[i].isContainerOpen) | if ("isContainerOpen" in this.childData[i] && this.childData[i].isContainerOpen) | function tovr_resort (leafSort){ if (!("childData" in this) || this.childData.length < 1 || this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) { /* if we have no children, or we have the default sort compare and no * sort... |
if (!this.childData || this.childData.length < 1) | if (!("childData" in this) || this.childData.length < 1 || this.childData[0].sortCompare != tovr_sortcmp || !("sortColumn" in this._share) || this._share.sortDirection == 0) { | function tovr_resort (leafSort){ if (!this.childData || this.childData.length < 1) return; this.childData.sort(this.childData[0].sortCompare); for (var i = 0; i < this.childData.length; ++i) { this.childData[i].childIndex = i; if (this.childData[i].isContainerOpen) th... |
} | function tovr_resort (leafSort){ if (!this.childData || this.childData.length < 1) return; this.childData.sort(this.childData[0].sortCompare); for (var i = 0; i < this.childData.length; ++i) { this.childData[i].childIndex = i; if (this.childData[i].isContainerOpen) th... | |
if (this.childData[i].isContainerOpen) | if ("isContainerOpen" in this && this.childData[i].isContainerOpen) | function tovr_resort (leafSort){ if (!this.childData || this.childData.length < 1) return; this.childData.sort(this.childData[0].sortCompare); for (var i = 0; i < this.childData.length; ++i) { this.childData[i].childIndex = i; if (this.childData[i].isContainerOpen) th... |
if (!this.childData) | if (!("childData" in this)) | function tovr_rkids (){ if (!this.childData) this.childData = new Array();} |
if (!("isContainerOpen" in this)) this.isContainerOpen = false; | function tovr_rkids (){ if (!this.childData) this.childData = new Array();} | |
var sc, sd; if (!(sc = a._share.sortColumn) || (sd = a._share.sortDirection) == 0) return 0; | var sc = a._share.sortColumn; var sd = a._share.sortDirection; | function tovr_sortcmp (a, b){ var sc, sd; if (!(sc = a._share.sortColumn) || (sd = a._share.sortDirection) == 0) return 0; a = a[sc]; b = b[sc]; if (a < b) return -1 * sd; if (a > b) return 1 * sd; return 0;} |
dd ("vfp change (" + amount + ") from hidden node ignored."); | function tovr_vpchange (start, amount){ /* if we're not hidden, but this notification came from a hidden node * (start == -1), ignore it, it doesn't affect us. */ if (start == -1 && !this.isHidden) { dd ("vfp change (" + amount + ") from hidden node ignored."); return; } th... | |
if (this.parentRecord) | if ("parentRecord" in this) | function tovr_vpchange (start, amount){ /* if we're not hidden, but this notification came from a hidden node * (start == -1), ignore it, it doesn't affect us. */ if (start == -1 && !this.isHidden) { dd ("vfp change (" + amount + ") from hidden node ignored."); return; } th... |
var xmlDocument = gParser.parseFromString(xcsString, 'text/xml'); | var xmlDocument = gParser.parseFromString(xcsString, 'application/xml'); | function transformXCSData( xcsString ){ var gParser = new DOMParser; var xmlDocument = gParser.parseFromString(xcsString, 'text/xml'); return serializeDocument(xmlDocument, "xcs2ics.xsl");} |
var xslDocument = gParser.parseFromString(xslContent, 'text/xml'); | var xslDocument = gParser.parseFromString(xslContent, 'application/xml'); | function transformXML( xmlDocument, xslFilename ){ var xslProc = new XSLTProcessor(); var gParser = new DOMParser; // .load isn't synchrone // var xslDoc = document.implementation.createDocument("", "", null); // xslDoc.load(path, "text/xml"); // if only passsed a filename, assume it is a file in the defaul... |
loadURI(service + escape(targetURI)); | loadURI(encodeURI(service + targetURI)); | function Translate(){ var service = pref.getCharPref("browser.translation.service"); var serviceDomain = pref.getCharPref("browser.translation.serviceDomain"); var targetURI = getWebNavigation().currentURI.spec; // if we're already viewing a translated page, then just reload if (targetURI.indexOf(serviceDomain) >=... |
function Translate(src, dest, engine) | function Translate() | function Translate(src, dest, engine) { var service = "http://levis.alis.com:8080"; service += "?AlisSourceLang=" + src; service += "&AlisTargetLang=" + dest; service += "&AlisMTEngine=" + engine; // if we're already viewing a translated page, the just get the // last argument (which we expect to always be "AlisMTEn... |
var service = "http: service += "?AlisSourceLang=" + src; service += "&AlisTargetLang=" + dest; service += "&AlisMTEngine=" + engine; | var service = "http: | function Translate(src, dest, engine) { var service = "http://levis.alis.com:8080"; service += "?AlisSourceLang=" + src; service += "&AlisTargetLang=" + dest; service += "&AlisMTEngine=" + engine; // if we're already viewing a translated page, the just get the // last argument (which we expect to always be "AlisMTEn... |
var service = pref.CopyCharPref("browser.translation.service"); var serviceDomain = pref.CopyCharPref("browser.translation.serviceDomain"); | var service = pref.getCharPref("browser.translation.service"); var serviceDomain = pref.getCharPref("browser.translation.serviceDomain"); | function Translate(){ var service = pref.CopyCharPref("browser.translation.service"); var serviceDomain = pref.CopyCharPref("browser.translation.serviceDomain"); // XXX This somehow causes a big leak, back to the old way // till we figure out why. See bug 61886. // var targetURI = getWebNavigation().currentU... |
} else gRightMouseButtonDown = false; | function TreeOnMouseDown(event){ // Detect right mouse click and change the highlight to the row // where the click happened without loading the message headers in // the Folder or Thread Pane. if (event.button == 2) ChangeSelectionWithoutContentLoad(event, event.target.parentNode);} | |
console.sourceView.displaySource(source); | console.sourceView.displaySourceText(sourceText); | function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + "'"); } } |
dd ("source load failed: '" + source.fileName + "'"); | dd ("source load failed: '" + sourceText.fileName + "'"); | function tryAgain (result) { if (result == Components.results.NS_OK) console.sourceView.displaySource(source); else { dd ("source load failed: '" + source.fileName + "'"); } } |
function tryAgain () | function tryAgain(nLevel) | function tryAgain () { syncOutputFrame(obj); }; |
syncOutputFrame(obj); | syncOutputFrame(obj, nLevel); | function tryAgain () { syncOutputFrame(obj); }; |
else { dump("failed to QI pref service\n"); } | function tryToSetContentWindow() { if ( window.content ) { dump("Setting content window\n"); appCore.setContentWindow( window.content ); // Have browser app core load appropriate initial page. if ( !explicitURL ) { var pref = Components.classes['component://netscape/preferenc... | |
e.meat = toUnicode(e.meat); | var length = e.params.length; e.params[length - 1] = toUnicode(e.params[length - 1]); | function ucConvertIncomingMessage (e){ e.meat = toUnicode(e.meat); return true;} |
gBMtxmgr.undoTransaction(); | BMSVC.transactionManager.undoTransaction(); | undoBookmarkTransaction: function () { gBMtxmgr.undoTransaction(); BookmarksUtils.flushDataSource(); }, |
BMSVC.transactionManager.undoTransaction(); | gBkmkTxnSvc.undo(); | undoBookmarkTransaction: function () { BMSVC.transactionManager.undoTransaction(); BookmarksUtils.refreshSearch(); BookmarksUtils.flushDataSource(); }, |
this.endUpdateBatch(); | undoTransaction: function () { for (var i=this.item.length-1; i>=0; i--) { if (this.isValid[i]) { this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.RemoveElementAt(this.index[i], true); } } }, | |
}, | } | undoTransaction: function() { LOG("== UN" + this._name + " (UNAggregate) ============"); this._bms.beginUpdateBatch(); for (var i = 0; i < this._transactions.length; ++i) this._transactions[i].undoTransaction(); this._bms.endUpdateBatch(); LOG("== UN" + this._name + " (UNAggregate Ends) =======");... |
if (this.pastedNode) this.pastedNode.parentNode.removeChild(this.pastedNode); | this.cmdDelete.undoTransaction(); | undoTransaction: function() { if (this.pastedNode) this.pastedNode.parentNode.removeChild(this.pastedNode); } |
const entityVersion = Components.interfaces.nsIEntityConverter.html40 | Components.interfaces.nsIEntityConverter.mathml20; | const entityVersion = Components.interfaces.nsIEntityConverter.entityW3C; | function unicodeToEntity(text){ const charTable = { '&': "&", '<': "<", '>': ">", '"': """ }; function charTableLookup(letter) { return charTable[letter]; } function convertEntity(letter) { try { return gEntityConverter.ConvertToEntity(letter, entityVersion); } catch (ex) {... |
var listItemCheckbox = event.target.getElementsByTagName( "checkbox" )[0]; if ( event.clientX > listItemCheckbox.boxObject.x && event.clientX < listItemCheckbox.boxObject.x + listItemCheckbox.boxObject.width ) { listItemCheckbox.checked = !listItemCheckbox.checked; checkboxClick( event ) } | function unifinderClickToDo( event ){} | |
var Today = new Date(); var StartDate = new Date( Today.getFullYear(), Today.getMonth(), Today.getDate(), 0, 0, 0 ); switch( event.currentTarget.parentNode.selectedItem.value ) { case "all": gEventSource.onlyFutureEvents = false; eventTable = gEventSource.getCurrentEvents(); break; case "today": var EndDate = new Da... | refreshEventTree( false ); | function unifinderDoFilterEvents( event ){ var Today = new Date(); //do this to allow all day events to show up all day long var StartDate = new Date( Today.getFullYear(), Today.getMonth(), Today.getDate(), 0, 0, 0 ); switch( event.currentTarget.parentNode.selectedItem.value ) { case "all": gE... |
editEvent(calendarEvent); | modifyEventWithDialog(calendarEvent); | function unifinderDoubleClickEvent( event ){ // we only care about button 0 (left click) events if (event.button != 0) return; // find event by id var calendarEvent = getCalendarEventFromEvent( event ); if( calendarEvent != null ) editEvent(calendarEvent); else newEvent();} |
newEvent(); | createEventWithDialog(); | function unifinderDoubleClickEvent( event ){ // we only care about button 0 (left click) events if (event.button != 0) return; // find event by id var calendarEvent = getCalendarEventFromEvent( event ); if( calendarEvent != null ) editEvent(calendarEvent); else newEvent();} |
{ | function unifinderDoubleClickEvent( event ){ // we only care about button 0 (left click) events if (event.button != 0) return; // find event by id var calendarEvent = getCalendarEventFromEvent( event ); if( calendarEvent != null ) { // go to day view, of the day of the event, select the e... | |
} | else newEvent(); | function unifinderDoubleClickEvent( event ){ // we only care about button 0 (left click) events if (event.button != 0) return; // find event by id var calendarEvent = getCalendarEventFromEvent( event ); if( calendarEvent != null ) { // go to day view, of the day of the event, select the e... |
var SelectedItem = document.getElementById( "unifinder-search-results-tree" ).selectedItems[0]; | var SelectedItem = document.getElementById( "unifinder-search-results-listbox" ).selectedItems[0]; | function unifinderEditCommand(){ var SelectedItem = document.getElementById( "unifinder-search-results-tree" ).selectedItems[0]; if( SelectedItem ) { if( SelectedItem.getAttribute( "container" ) == "true" ) { launchEditCategoryDialog( SelectedItem.categoryobject ); } else { ... |
editEvent(); | modifyEventWithDialog(getSelectedItems()[0]); | function unifinderKeyPress(aEvent) { const kKE = Components.interfaces.nsIDOMKeyEvent; switch (aEvent.keyCode) { case 13: // Enter, edit the event editEvent(); break; case kKE.DOM_VK_BACK_SPACE: case kKE.DOM_VK_DELETE: deleteEventCommand(true); ... |
document.getElementById( "print_command" ).setAttribute( "disabled", "true" ); | function unifinderMouseDownToDo( event ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var treechildren = tree.getElementsByTagName( "treechildren" )[0]; var ThisToDo = getToDoFromEvent( event ); if( ThisToDo ) { if(event.button == 2) treechildren.setAttribute("context", "taskite... | |
document.getElementById( "print_command" ).setAttribute( "disabled", "true" ); | function unifinderMouseDownToDo( event ){ var tree = document.getElementById( ToDoUnifinderTreeName ); var treechildren = tree.getElementsByTagName( "treechildren" )[0]; var ThisToDo = getToDoFromEvent( event ); if( ThisToDo ) { // TODO HACK notifiers should be rewritten to integrate events and todos ... | |
var eventStartDate = getNextOrPreviousRecurrence( calendarEvent ); | var eventStartDate = getCurrentNextOrPreviousRecurrence( calendarEvent ); | function unifinderOnSelect( event ){ dump( "\n\nin unifinder onselect\n" ); if( event.target.view.selection.getRangeCount() == 0 ) return; var ArrayOfEvents = new Array( ); gCalendarEventTreeClicked = true; var calendarEvent; //get the selected events from the tree var tree = document.getEleme... |
var eventStartDate = getCurrentNextOrPreviousRecurrence( calendarEvent ); | var eventStartDate = calendarEvent.startDate.jsDate; | function unifinderOnSelect( event ){ if( event.target.view.selection.getRangeCount() == 0 ) return; var ArrayOfEvents = new Array( ); gCalendarEventTreeClicked = true; var calendarEvent; //get the selected events from the tree var tree = document.getElementById( UnifinderTreeName ); var start ... |
gCalendarWindow.EventSelection.setArrayToSelection( ArrayOfEvents ); | currentView().setSelectedItems(ArrayOfEvents.length, ArrayOfEvents, true); | function unifinderOnSelect( event ){ if( event.target.view.selection.getRangeCount() == 0 ) return; var ArrayOfEvents = new Array( ); gCalendarEventTreeClicked = true; var calendarEvent; //get the selected events from the tree var tree = document.getElementById( UnifinderTreeName ); var start ... |
eventTable = gEventSource.getCurrentEvents(); | eventTable = getEventTable(); | function unifinderRefresh(){ //gEventSource.onlyFutureEvents = (document.getElementById( 'unifinder-future-events' ).getAttribute( "checked" ) == "true" ); eventTable = gEventSource.getCurrentEvents(); gEventSource.onlyFutureEvents = false; unifinderSearchKeyPress( document.getElementById( 'unifinder-search-... |
gEventSource.onlyFutureEvents = false; | function unifinderRefresh(){ //gEventSource.onlyFutureEvents = (document.getElementById( 'unifinder-future-events' ).getAttribute( "checked" ) == "true" ); eventTable = gEventSource.getCurrentEvents(); gEventSource.onlyFutureEvents = false; unifinderSearchKeyPress( document.getElementById( 'unifinder-search-... | |
this._destroyed = true; | uninit: function () { var os = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); for (var i = 0; i < this._messages.length; ++i) os.removeObserver(this, this._messages[i]); }, | |
} | }, | uninit: function () { // overly aggressive, but better safe than sorry this._webProgress.removeProgressListener(this._progressListener); this._progressListener = this._webProgress = null; } |
function uninitFindBar() { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); | uninitFindBar: function () { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); | function uninitFindBar(){ var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver(gTypeAheadFind.useTAFPref, gTypeAheadF... |
var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver(gTypeAheadFind.useTAFPref, gTypeAheadFind); pbi.removeObserver(gTypeAheadFind.searchLinksPref, gTypeAheadFind); | var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver(this.mTypeAheadFind.useTAFPref, this.mTypeAheadFind); pbi.removeObserver(this.mTypeAheadFind.searchLinksPref, this.mTypeAheadFind); | function uninitFindBar(){ var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver(gTypeAheadFind.useTAFPref, gTypeAheadF... |
getBrowser().removeEventListener("keypress", onBrowserKeyPress, false); getBrowser().removeEventListener("mouseup", onBrowserMouseUp, false); } | getBrowser().removeEventListener("keypress", findBar_OnBrowserKeyPress, false); getBrowser().removeEventListener("mouseup", findBar_OnBrowserMouseUp, false); }, | function uninitFindBar(){ var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2); pbi.removeObserver(gTypeAheadFind.useTAFPref, gTypeAheadF... |
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(NS_LDAPPREFSSERVICE_CID, fileSpec); | compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.unregisterFactoryLocation(NS_LDAPPREFSSERVICE_CID, fileSpec); | nsLDAPPrefsModule.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(NS_LDAPPREFSSERVICE_CID, fileSpec);} |
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); | compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); | Module.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); catman = Components.classes[CATMAN_CTRID].getService(nsICategoryManager); catman.deleteCategoryEntry("com... |
compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); | compMgr.unregisterFactoryLocation(CLINE_SERVICE_CID, fileSpec); | Module.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); catman = Components.classes[CATMAN_CTRID].getService(nsICategoryManager); catman.deleteCategoryEntry("com... |
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(SMIME_EXTENSION_SERVICE_CID, fileSpec); | compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.unregisterFactoryLocation(SMIME_EXTENSION_SERVICE_CID, fileSpec); | SMIMEModule.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(SMIME_EXTENSION_SERVICE_CID, fileSpec); catman = Components.classes["@mozilla.org/categorymanager;1"].getService(nsICategoryManager);... |
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(JSCONSOLEHANDLER_CID, fileSpec); | compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.unregisterFactoryLocation(JSCONSOLEHANDLER_CID, fileSpec); | unregisterSelf: function(compMgr, fileSpec, location) { compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(JSCONSOLEHANDLER_CID, fileSpec); var catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(... |
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(XMLTERMCLINE_SERVICE_CID, fileSpec); | compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); compMgr.unregisterFactoryLocation(XMLTERMCLINE_SERVICE_CID, fileSpec); | XMLtermModule.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(XMLTERMCLINE_SERVICE_CID, fileSpec); catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(nsICategor... |
compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); | compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar); | ChatzillaModule.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(nsICategoryMana... |
compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); | compMgr.unregisterFactoryLocation(CLINE_SERVICE_CID, fileSpec); | ChatzillaModule.unregisterSelf =function(compMgr, fileSpec, location){ compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentManagerObsolete); compMgr.unregisterComponentSpec(CLINE_SERVICE_CID, fileSpec); catman = Components.classes["@mozilla.org/categorymanager;1"] .getService(nsICategoryMana... |
var gClockId = setTimeout( "update_date( )", milliSecsTillTomorrow ); | gClockId = setTimeout( "update_date( )", milliSecsTillTomorrow ); | function update_date( Refresh ){ // get the current time var now = new Date(); var tomorrow = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() + 1 ) ); var milliSecsTillTomorrow = tomorrow.getTime() - now.getTime(); gCalendarWindow.currentView.hiliteTodaysDate(); var gClockId = setTimeo... |
setTimeout("sidebar.loading_iframe.addEventListener('load', panel_loader, true);", 100); | setTimeout("sidebar.loading_iframe.addEventListener('load', panel_loader, true);", 1); | function update_panels() { // This function requires that the attributre 'last-selected-panel' // holds the id of a non-excluded panel. If it doesn't, no panel will // be selected. var panels = document.getElementById('sidebar-panels'); var selected_id = panels.getAttribute('last-selected-panel'); var have_set_to... |
sidebar.loading_iframe = iframe; setTimeout("sidebar.loading_iframe.addEventListener('load', panel_loader, true);", 1); | iframe.addEventListener('load', panel_loader, true); | function update_panels() { // This function requires that the attributre 'last-selected-panel' // holds the id of a non-excluded panel. If it doesn't, no panel will // be selected. var panels = document.getElementById('sidebar-panels'); var selected_id = panels.getAttribute('last-selected-panel'); var have_set_to... |
var kDefaultTimezone = calendarDefaultTimezone(); | var kDefaultTimezone = window.opener.calendarDefaultTimezone(); | function updateAccept(){ var enableAccept = true; var kDefaultTimezone = calendarDefaultTimezone(); var title = getElementValue("item-title"); if (title.length == 0) enableAccept = false; // don't allow for end dates to be before start dates var startDate; var endDate; if (isEvent(window.... |
startDate = startDate.getInTimezone(kDefaultTimezone); endDate = endDate.getInTimezone(kDefaultTimezone); | function updateAccept(){ var enableAccept = true; var kDefaultTimezone = calendarDefaultTimezone(); // don't allow for end dates to be before start dates var startDate; var endDate; if (isEvent(window.calendarItem)) { startDate = jsDateToDateTime(getElementValue("event-starttime")); endDate = jsDateToDa... | |
var startDate = jsDateToDateTime(getElementValue("event-starttime")); var endDate = jsDateToDateTime(getElementValue("event-endtime")); if (endDate.compare(startDate) == -1) { | var startDate; var endDate; if (isEvent(window.calendarItem)) { startDate = jsDateToDateTime(getElementValue("event-starttime")); endDate = jsDateToDateTime(getElementValue("event-endtime")); } else { startDate = getElementValue("todo-has-entrydate", "checked") ? jsDateToDateTime(getElementValue("todo-entrydate")) : nu... | function updateAccept(){ var acceptButton = document.getElementById("calendar-event-dialog").getButton("accept"); var title = getElementValue("item-title"); if (title.length == 0) acceptButton.setAttribute("disabled", "true"); else if (acceptButton.getAttribute("disabled")) acceptButton.remove... |
} else if (acceptButton.getAttribute("disabled")) { | timeWarning.removeAttribute("hidden"); } else { | function updateAccept(){ var acceptButton = document.getElementById("calendar-event-dialog").getButton("accept"); var title = getElementValue("item-title"); if (title.length == 0) acceptButton.setAttribute("disabled", "true"); else if (acceptButton.getAttribute("disabled")) acceptButton.remove... |
if (!updateTaskAlarmWarnings()) { acceptButton.setAttribute("disabled", "true"); } | function updateAccept(){ var acceptButton = document.getElementById("calendar-event-dialog").getButton("accept"); var title = getElementValue("item-title"); if (title.length == 0) acceptButton.setAttribute("disabled", "true"); else if (acceptButton.getAttribute("disabled")) acceptButton.remove... | |
document.getElementById( "advanced-repeat-dayofmonth" ).setAttribute( "label", document.getElementById( "onthe-text" ).getAttribute( "value" )+dayNumber+dayExtension+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) ); | var calStrings = document.getElementById("bundle_calendar"); var weekNumberText = getWeekNumberText( weekNumber ); var dayOfWeekText = getDayOfWeek( dayNumber ); var ofTheMonthText = document.getElementById( "ofthemonth-text" ).getAttribute( "value" ); var lastText = document.getElementById( "last-text" ).getAttribute... | function updateAdvancedRepeatDayOfMonth(){ //get the day number for today. var dayNumber = document.getElementById( "start-date-picker" ).value.getDate(); var dayExtension = getDayExtension( dayNumber ); var weekNumber = getWeekNumberOfMonth(); document.getElementById( "advanced-repeat-dayofmonth" ).set... |
document.getElementById( "advanced-repeat-dayofweek" ).setAttribute( "label", getWeekNumberText( weekNumber )+" "+getDayOfWeek( dayNumber )+document.getElementById( "ofthemonth-text" ).getAttribute( "value" ) ); | document.getElementById( "advanced-repeat-dayofweek" ).setAttribute( "label", calStrings.getFormattedString( "weekDayMonthLabel", [weekNumberText, dayOfWeekText, ofTheMonthText] ) ); | function updateAdvancedRepeatDayOfMonth(){ //get the day number for today. var dayNumber = document.getElementById( "start-date-picker" ).value.getDate(); var dayExtension = getDayExtension( dayNumber ); var weekNumber = getWeekNumberOfMonth(); document.getElementById( "advanced-repeat-dayofmonth" ).set... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.