rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return prefObj.GetBoolPref (prefName);
return prefObj.getBoolPref (prefName);
function getBoolPref (prefObj, prefName, defaultValue){ var e; try { return prefObj.GetBoolPref (prefName); } catch (e) { return defaultValue; } }
return "properties"
return "save"
getBrowserTargetFromEvent: function (aEvent) { var button = (aEvent.type == "command" || aEvent.type == "keypress") ? 0 :aEvent.button; if (aEvent.shiftKey) return "window"; else if (aEvent.ctrlKey) return "tab"; else if (aEvent.altKey) return "properties" else return "curren...
aEvent.preventDefault();
getBrowserTargetFromEvent: function (aEvent) { if (!aEvent) return null; switch (aEvent.type) { case "click": case "dblclick": if (aEvent.button > 1) return null; if (aEvent.button != 1 && !aEvent.metaKey && !aEvent.ctrlKey) return "current"; break; case "keypress": ...
var prefs = Components.classes["@mozilla.org/preferences;1"]; if (prefs) { prefs = prefs.getService(); if (prefs) prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var url = prefs.CopyCharPref("browser.chromeURL"); if (url) return url; }
var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var url = prefs.getCharPref("browser.chromeURL"); if (url) return url;
function getBrowserURL() { try { var prefs = Components.classes["@mozilla.org/preferences;1"]; if (prefs) { prefs = prefs.getService(); if (prefs) prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var url = prefs.CopyCharPref("browser.chromeURL"); if (ur...
return target.childNodes.length>4?
return target.hasChildNodes()?
getBTOrientation: function (aEvent, aTarget) { var target if (!aTarget) target = aEvent.target; else target = aTarget; if (target.localName == "menu" && target.parentNode.localName != "menupopup" || target.id == "bookmarks-chevron") return BookmarksUtils.DROP_...
coordValue = overButtonBoxObject.y-overParentBoxObject.y; clientCoordValue = aEvent.clientY;
coordValue = overButtonBoxObject.screenY; clientCoordValue = aEvent.screenY;
getBTOrientation: function (aEvent, aTarget) { var target if (!aTarget) target = aEvent.target; else target = aTarget; if (target.localName == "menu" && target.parentNode.localName != "menupopup") return BookmarksUtils.DROP_ON; if (target.id == "bookmarks-ptf" || ...
break; case "bookmarks-chevron": parent = "NC:PersonalToolbarFolder";
getBTTarget: function (aNode, aOrientation) { var item, parent, index; switch (aNode.id) { case "bookmarks-ptf": parent = "NC:PersonalToolbarFolder"; break; case "BookmarksMenu": parent = "NC:BookmarksRoot"; break; default: if (aOrientation == BookmarksUtils.DROP_ON) pa...
this.m_defaultCalendar = new calWcapCalendar(this.userId, this);
this.m_defaultCalendar = createWcapCalendar(this.userId, this);
getCalendarByCalId: function( calId ) { var ret; if (calId == null || this.userId == calId) { if (this.m_defaultCalendar == null) this.m_defaultCalendar = new calWcapCalendar(this.userId, this); ret = this.m_defaultCalendar; } else { ...
ret = new calWcapCalendar(calId, this);
ret = createWcapCalendar(calId, this);
getCalendarByCalId: function( calId ) { var ret; if (calId == null || this.userId == calId) { if (this.m_defaultCalendar == null) this.m_defaultCalendar = new calWcapCalendar(this.userId, this); ret = this.m_defaultCalendar; } else { ...
this.getCalProps_(false );
getCalendarProperties: function( propName, out_count ) { this.getCalProps_(false /* !async: waits for response */); var ret = []; if (this.m_calProps != null) { var nodeList = this.m_calProps.getElementsByTagName(propName); for ( var i = 0; i < nodeList.length; ++i )...
if (this.m_calProps != null) { var nodeList = this.m_calProps.getElementsByTagName(propName);
var calProps = this.getCalProps_(false ); if (calProps != null) { var nodeList = calProps.getElementsByTagName(propName);
getCalendarProperties: function( propName, out_count ) { this.getCalProps_(false /* !async: waits for response */); var ret = []; if (this.m_calProps != null) { var nodeList = this.m_calProps.getElementsByTagName(propName); for ( var i = 0; i < nodeList.length; ++i )...
this.mCache[id] = this.createCalendar(stmt.row.name, stmt.row.type, makeURI(stmt.row.uri));
this.mCache[id] = this.createCalendar(stmt.row.type, makeURI(stmt.row.uri));
getCalendars: function(count) { var calendars = []; var stmt = this.mSelectCalendars; stmt.reset(); while (stmt.step()) { var id = stmt.row.id; if (!this.mCache[id]) { try { this.mCache[id] = this.createCalendar(stmt.row.name, stmt....
dump("Can't create calendar for " + id + " (" + stmt.row.name + ", " + stmt.row.type + ", " +
dump("Can't create calendar for " + id + " (" + stmt.row.type + ", " +
getCalendars: function(count) { var calendars = []; var stmt = this.mSelectCalendars; stmt.reset(); while (stmt.step()) { var id = stmt.row.id; if (!this.mCache[id]) { try { this.mCache[id] = this.createCalendar(stmt.row.name, stmt....
try { if (bRefresh || !this.m_calProps) { var url = this.getCommandUrl( "get_calprops" ); url += "&fmt-out=text%2Fxml"; var this_ = this; function resp( wcapResponse ) { try { var xml = wcapResponse.data; if (this_.m_calProps == null) this_.m_calProps = xml; } catch (exc) { this_.logError( exc );
if (bRefresh || !this.m_calProps) { this.m_calProps = null; var url = this.getCommandUrl( "get_calprops" ); url += "&fmt-out=text%2Fxml"; var this_ = this; function resp( wcapResponse ) { try { var xml = wcapResponse.data; if (this_.m_calProps == null) this_.m_calProps = xml; } catch (exc) { this_.logError(exc); if ...
getCalProps_: function( bAsync, bRefresh ) {// this.session.assureLoggedIn(); try { if (bRefresh || !this.m_calProps) { var url = this.getCommandUrl( "get_calprops" ); url += "&fmt-out=text%2Fxml"; var this_ = this; function...
if (bAsync) this.session.issueAsyncRequest( url, stringToXml, resp ); else this.session.issueSyncRequest( url, stringToXml, resp );
getCalProps_: function( bAsync, bRefresh ) {// this.session.assureLoggedIn(); try { if (bRefresh || !this.m_calProps) { var url = this.getCommandUrl( "get_calprops" ); url += "&fmt-out=text%2Fxml"; var this_ = this; function...
} catch (exc) { this.logError( exc ); if (!bAsync) throw exc;
if (bAsync) this.session.issueAsyncRequest( url, stringToXml, resp ); else this.session.issueSyncRequest( url, stringToXml, resp );
getCalProps_: function( bAsync, bRefresh ) {// this.session.assureLoggedIn(); try { if (bRefresh || !this.m_calProps) { var url = this.getCommandUrl( "get_calprops" ); url += "&fmt-out=text%2Fxml"; var this_ = this; function...
return this.m_calProps;
getCalProps_: function( bAsync ) { try { if (this.m_calProps == null) { var url = this.session.getCommandUrl( "get_calprops" ); // xxx todo: for now this alwas gets the description of // the original calId_ url += ("&calid...
this_.notifyError( exc );
this_.m_bReadOnly = true; this_.logError( exc );
getCalProps_: function( bAsync ) { try { if (this.m_calProps == null) { var url = this.session.getCommandUrl( "get_calprops" ); url += ("&calid=" + encodeURIComponent(this.calId)); url += "&fmt-out=text%2Fxml"; var this_ = this; ...
this.m_bReadOnly = true;
getCalProps_: function( bAsync ) { try { if (this.m_calProps == null) { var url = this.session.getCommandUrl( "get_calprops" ); url += ("&calid=" + encodeURIComponent(this.calId)); url += "&fmt-out=text%2Fxml"; var this_ = this; ...
if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickName; doc.getElementById('PrimaryEmail').value ...
if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickName;
function GetCardValues(cardproperty, doc){ if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickN...
var popup = document.getElementById('PreferMailFormatPopup'); if ( popup ) popup.data = cardproperty.preferMailFormat;
doc.getElementById('PrimaryEmail').value = cardproperty.primaryEmail; doc.getElementById('SecondEmail').value = cardproperty.secondEmail;
function GetCardValues(cardproperty, doc){ if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickN...
doc.getElementById('WorkPhone').value = cardproperty.workPhone; doc.getElementById('HomePhone').value = cardproperty.homePhone; doc.getElementById('FaxNumber').value = cardproperty.faxNumber; doc.getElementById('PagerNumber').value = cardproperty.pagerNumber; doc.getElementById('CellularNumber').value = cardproperty.ce...
var popup = document.getElementById('PreferMailFormatPopup'); if ( popup ) popup.value = cardproperty.preferMailFormat;
function GetCardValues(cardproperty, doc){ if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickN...
doc.getElementById('HomeAddress').value = cardproperty.homeAddress; doc.getElementById('HomeAddress2').value = cardproperty.homeAddress2; doc.getElementById('HomeCity').value = cardproperty.homeCity; doc.getElementById('HomeState').value = cardproperty.homeState; doc.getElementById('HomeZipCode').value = cardproperty.h...
doc.getElementById('WorkPhone').value = cardproperty.workPhone; doc.getElementById('HomePhone').value = cardproperty.homePhone; doc.getElementById('FaxNumber').value = cardproperty.faxNumber; doc.getElementById('PagerNumber').value = cardproperty.pagerNumber; doc.getElementById('CellularNumber').value = cardproperty.ce...
function GetCardValues(cardproperty, doc){ if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickN...
doc.getElementById('JobTitle').value = cardproperty.jobTitle; doc.getElementById('Department').value = cardproperty.department; doc.getElementById('Company').value = cardproperty.company; doc.getElementById('WorkAddress').value = cardproperty.workAddress; doc.getElementById('WorkAddress2').value = cardproperty.workAddr...
doc.getElementById('HomeAddress').value = cardproperty.homeAddress; doc.getElementById('HomeAddress2').value = cardproperty.homeAddress2; doc.getElementById('HomeCity').value = cardproperty.homeCity; doc.getElementById('HomeState').value = cardproperty.homeState; doc.getElementById('HomeZipCode').value = cardproperty.h...
function GetCardValues(cardproperty, doc){ if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickN...
doc.getElementById('Custom1').value = cardproperty.custom1; doc.getElementById('Custom2').value = cardproperty.custom2; doc.getElementById('Custom3').value = cardproperty.custom3; doc.getElementById('Custom4').value = cardproperty.custom4; doc.getElementById('Notes').value = cardproperty.notes; }
doc.getElementById('JobTitle').value = cardproperty.jobTitle; doc.getElementById('Department').value = cardproperty.department; doc.getElementById('Company').value = cardproperty.company; doc.getElementById('WorkAddress').value = cardproperty.workAddress; doc.getElementById('WorkAddress2').value = cardproperty.workAddr...
function GetCardValues(cardproperty, doc){ if ( cardproperty ) { doc.getElementById('FirstName').value = cardproperty.firstName; doc.getElementById('LastName').value = cardproperty.lastName; doc.getElementById('DisplayName').value = cardproperty.displayName; doc.getElementById('NickName').value = cardproperty.nickN...
return table[entry]; if ("fallback" in cat) { dump("\n--fallback: " + cat.fallback + "\n"); return cat.fallback.getCategoryEntry(category, entry); }
return table[entry]; if ("fallback" in cat) return cat.fallback.getCategoryEntry(category, entry);
proto.getCategoryEntry = function (category, entry) { var cat = this.categories[category]; if (!cat) return null; if ("override" in cat) return cat.override.getCategoryEntry(category, entry); var table = cat.table; if (entry in table) return table[entry]; if ("fallback" in cat) { dump("\n--fall...
if (!cat || (!entry in (table = cat.table))) return null;
if (!(cat && entry in (table = cat.table))) return null;
proto.getCategoryEntryRaw = function (category, entry) { var table; var cat = this.categories[category]; if (!cat || (!entry in (table = cat.table))) return null; if (entry in table) return table[entry]; if ("fallback" in cat) return cat.fallback.getCategoryEntry(category, entry); return null;}
else { properties.AppendElement(ltnGetAtom("unchecked")); }
getCellProperties: function (row, col, properties) { if (col.id == "col-calendar-Checkbox") { var cal = getCalendars()[row]; if (getCompositeCalendar().getCalendar(cal.uri)) { properties.AppendElement(ltnGetAtom("checked")); } } },
if( column == "unifinder-todo-tree-col-completed" ) { props.AppendElement(aserv.getAtom("completed")); }
getCellProperties : function( row,column, props ) { var aserv=Components.classes["@mozilla.org/atom-service;1"].createInstance(Components.interfaces.nsIAtomService); if( column == "unifinder-todo-tree-col-completed" ) { props.AppendElement(aserv.getAtom("completed")); } if( column...
props.AppendElement(aserv.getAtom(ToDoProgressAtom(calendarToDo)));
getCellProperties : function( row,column, props ) { var aserv=Components.classes["@mozilla.org/atom-service;1"].createInstance(Components.interfaces.nsIAtomService); if( column == "unifinder-todo-tree-col-completed" ) { props.AppendElement(aserv.getAtom("completed")); } if( column...
function getCellProperties(row, column) { return null; };
function getCellProperties(row, column, props) { if (!this.isContainer(row)) { return; } var atomSvc = Components.classes["@mozilla.org/atom-service;1"] .getService(Components.interfaces.nsIAtomService); props.AppendElement(atomSvc.getAtom("agenda-header")); };
function getCellProperties(row, column) { return null; };
switch( column.id )
switch( column.id || column )
getCellText : function(row,column) { calendarEvent = gEventArray[row]; switch( column.id ) { case "unifinder-search-results-tree-col-title": return( calendarEvent.title ); case "unifinder-search-results-tree-col-startdate": var eventStartDate = getNextO...
switch( column.id )
switch( column.id || column )
getCellText : function(row,column) { calendarToDo = gTaskArray[row]; if( !calendarToDo ) return false; switch( column.id ) { case "unifinder-todo-tree-col-completed": return( "" ); case "unifinder-todo-tree-col-priority": return( "" ); ...
break;
getCellText : function(row,column) { var columnElement = document.getElementById(column); var sortActive = columnElement.getAttribute("sortActive"); if (sortActive == "true") { this.selectedColumn = column; this.sortDirection = columnElement.getAttribute("sortDirection"); ...
return( formatUnifinderToDoDateTime( calendarToDo.completed ) );
return( formatUnifinderToDoDateTime( calendarToDo.completedDate ) );
getCellText : function(row,column) { calendarToDo = gTaskArray[row]; if( !calendarToDo ) return false; // Moz1.8 trees require column.id, moz1.7 and earlier trees use column. switch( typeof(column)=="object" ? column.id : column ) { case "unifinder-todo-tree-col-completed":...
case "unifinder-search-results-tree-col-filename": var thisCalendar = gCalendarWindow.calendarManager.getCalendarByName( calendarEvent.parent.server ); if( thisCalendar ) return( thisCalendar.getAttribute( "http: else return( "" );
getCellText : function(row,column) { calendarEvent = gEventArray[row]; var calendarStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties"); switch( column ) { case "unifinder-search-results-tree-col-title": return( calendarEvent.title ); ...
getCellText: function getCellText(index, column) { return itemArray[index].getCellText(column); },
optgroupObject.prototype.getCellText = function getCellText(column) { return column == "SelectTextCol" ? this.element.label : ""; }
getCellText: function getCellText(index, column) { return itemArray[index].getCellText(column); },
["collapseActions", defer, "appearance.misc"],
function getChannelPrefManager(channel){ var network = channel.parent.parent; function defer(prefName) { return network.prefs[prefName]; }; function makeLogNameChannel() { return makeLogName(channel, "channel"); }; function onPrefChanged(prefName, newValue, oldValue) { on...
["autoRejoin", defer], ["charset", defer], ["collapseMsgs", defer], ["displayHeader", client.prefs["channelHeader"]], ["font.family", defer], ["font.size", defer], ["log", client.prefs["channelLog"]], ["logFileName", logDefault.path], ["motif.current", defer], ["ti...
["autoRejoin", defer, ".connect"], ["charset", defer, ".connect"], ["collapseMsgs", defer, "appearance.misc"], ["displayHeader", client.prefs["channelHeader"], "appearance.misc"], ["font.family", defer, "appearance.misc"], ["font.size", defer, "appearance.misc"], ["hasPrefs", f...
function getChannelPrefManager(channel){ var network = channel.parent.parent; function defer(prefName) { return network.prefs[prefName]; }; function onPrefChanged(prefName, newValue, oldValue) { onChannelPrefChanged (channel, prefName, newValue, oldValue); }; var logDefault...
dd ("Reading pref '" + prefName + "' threw '" + e + "'");
function getCharPref (prefObj, prefName, defaultValue){ var e; try { return prefObj.CopyCharPref (prefName); } catch (e) { dd ("Reading pref '" + prefName + "' threw '" + e + "'"); return defaultValue; }}
return prefObj.CopyCharPref (prefName);
return prefObj.getCharPref (prefName);
function getCharPref (prefObj, prefName, defaultValue){ var e; try { return prefObj.CopyCharPref (prefName); } catch (e) { return defaultValue; }}
rv = prefObj.CopyCharPref (prefName);
rv = prefObj.getCharPref (prefName);
function getCharPref (prefObj, prefName, defaultValue){ var e, rv; try { rv = prefObj.CopyCharPref (prefName); } catch (e) { rv = defaultValue; } //dd ("getCharPref: returning '" + rv + "' for " + prefName); return rv; }
return window._content.document.characterSet;
return window.content.document.characterSet;
function getCharsetforSave(aDocument){ if (aDocument) return aDocument.characterSet; if (document.commandDispatcher.focusedWindow) return document.commandDispatcher.focusedWindow.document.characterSet; return window._content.document.characterSet; return false;}
var charsetAtom = ccm.GetCharsetAtom(charset); charsetTitle = ccm.GetCharsetTitle(charsetAtom); dump(charsetTitle);
try { var charsetAtom = ccm.GetCharsetAtom(charset); charsetTitle = ccm.GetCharsetTitle(charsetAtom); } catch (ex) { dump("failed to get a charset title of " + charset + "!\n"); charsetTitle = ""; }
function GetCharsetUIString(){ try { prefs = Components.classes['component://netscape/preferences']; prefs = prefs.getService(); prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); prefs = null; } var send_default_charset = prefs.CopyCh...
if ("doAllowWindowOpen" in window)
if ("onCheckboxCheck" in window)
function getCheckboxValue(name){ if ("doAllowWindowOpen" in window) return document.getElementById(name).checked; return data[name].checked; }
var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService);
var ioService = getIoService();
getClassObject: function( compMgr, cid, iid ) { if (!this.m_scriptsLoaded) { // loading extra scripts from ../js: const scripts = [ "calWcapUtils.js", "calWcapErrors.js", "calWcapRequest.js", "calWcapSession.js", "calWcapCa...
if (!iid.equals( Components.interfaces.nsIFactory )) throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
getClassObject: function( compMgr, cid, iid ) { if (!this.m_scriptsLoaded) { // loading extra scripts from ../js: const scripts = [ "calWcapUtils.js", "calWcapErrors.js", "calWcapRequest.js", "calWcapSession.js", "calWcapCa...
init();
getClassObject: function( compMgr, cid, iid ) { if (!this.m_scriptsLoaded) { this.m_scriptsLoaded = true; // load scripts: const scripts = [ "calWcapUtils.js", "calWcapErrors.js", "calWcapRequest.js", "calWcapSession.js", ...
var cal; switch (CACHE) { default: cal = new calWcapCalendar( null , new calWcapSession() ); cal.session.defaultCalendar = cal; break; }
var session = new calWcapSession(); var cal = createWcapCalendar( null , session ); session.defaultCalendar = cal;
getClassObject: function( compMgr, cid, iid ) { if (!this.m_scriptsLoaded) { this.m_scriptsLoaded = true; // load scripts: const scripts = [ "calWcapUtils.js", "calWcapErrors.js", "calWcapRequest.js", "calWcapSession.js", ...
var rv; try { var rdfSvc = Components.classes[RDFS_CONTRACTID].getService(nsIRDFService); var rdfDS = rdfSvc.GetDataSource("rdf:chrome"); var resSelf = rdfSvc.GetResource("urn:mozilla:package:chatzilla"); var resDisabled = rdfSvc.GetResource("http: rv = rdfDS.GetTarget(resSelf, resDisabled, true); } catch (e) { } if (r...
ChatzillaModule.getClassObject =function (compMgr, cid, iid){ if (cid.equals(CLINE_SERVICE_CID)) return CLineFactory; if (cid.equals(IRCCNT_HANDLER_CID)) return IRCContentHandlerFactory; if (cid.equals(IRCPROT_HANDLER_CID)) return IRCProtocolHandlerFactory; if (!iid.equals(Component...
ChatzillaModule.getClassObject =
CalendarModule.getClassObject =
ChatzillaModule.getClassObject =function (compMgr, cid, iid) { if (cid.equals(CLINE_SERVICE_CID)) return CLineFactory; if (cid.equals(ICALCNT_HANDLER_CID)) return ICALContentHandlerFactory; if (cid.equals(ICALPROT_HANDLER_CID)) return ICALProtocolHandlerFactory; if (!iid.equals(Componen...
if (!componentInitRun) { initBaseComponent(); componentInitRun = true; }
getClassObject: function (compMgr, cid, iid) { if (!iid.equals(Components.interfaces.nsIFactory)) throw Components.results.NS_ERROR_NOT_IMPLEMENTED; if (!this.mScriptsLoaded) this.loadScripts(); for (var i = 0; i < componentData.length; i++) { if (cid.equals(com...
else if (cid.equals(NS_LDAPCONNECTIONRDFDELEGATEFACTORY_CID)) return this.nsLDAPConnectionRDFDelegateFactoryFactory;
getClassObject: function(compMgr, cid, iid) { if (!iid.equals(Components.interfaces.nsIFactory)) { throw Components.results.NS_ERROR_NOT_IMPLEMENTED; } if (cid.equals(NS_LDAPDATASOURCE_CID)) return this.nsLDAPDataSourceFactory; else if (cid.equals(NS_LDAPMESSAGE...
if (cid.equals(CLINE_SERVICE_CID)) return CLineFactory;
if (cid.equals(XMLTERMCLINE_SERVICE_CID)) return XMLTermCLineFactory;
XMLtermModule.getClassObject =function (compMgr, cid, iid) { if (cid.equals(CLINE_SERVICE_CID)) return CLineFactory; if (cid.equals(TELNETCNT_HANDLER_CID)) return TelnetContentHandlerFactory; if (cid.equals(TELNETPROT_HANDLER_CID)) return TelnetProtocolHandlerFactory; if (!iid.equal...
if (cid.equals(TELNETCNT_HANDLER_CID)) return TelnetContentHandlerFactory;
if (cid.equals(XMLTERMCNT_HANDLER_CID)) return XMLTermContentHandlerFactory;
XMLtermModule.getClassObject =function (compMgr, cid, iid) { if (cid.equals(CLINE_SERVICE_CID)) return CLineFactory; if (cid.equals(TELNETCNT_HANDLER_CID)) return TelnetContentHandlerFactory; if (cid.equals(TELNETPROT_HANDLER_CID)) return TelnetProtocolHandlerFactory; if (!iid.equal...
if (cid.equals(TELNETPROT_HANDLER_CID)) return TelnetProtocolHandlerFactory;
if (cid.equals(XMLTERMPROT_HANDLER_CID)) return XMLTermProtocolHandlerFactory;
XMLtermModule.getClassObject =function (compMgr, cid, iid) { if (cid.equals(CLINE_SERVICE_CID)) return CLineFactory; if (cid.equals(TELNETCNT_HANDLER_CID)) return TelnetContentHandlerFactory; if (cid.equals(TELNETPROT_HANDLER_CID)) return TelnetProtocolHandlerFactory; if (!iid.equal...
return arguments.callee.__parent__ == global;
return arguments.callee.__parent__ == GLOBAL;
function getclosure(){ return function () { return arguments.callee.__parent__ == global; };}
color = colorPicker.getAttribute('color');
color = colorPicker.getAttribute("color");
function getColor(ColorPickerID){ var colorPicker = document.getElementById(ColorPickerID); var color; if (colorPicker) { // Extract color from colorPicker and assign to colorWell. color = colorPicker.getAttribute('color'); if (color && color == "") return null; } return color;}
var colorWell = document.getElementById(ColorWellID);
var colorWell; if (ColorWellID) colorWell = document.getElementById(ColorWellID);
function getColorAndSetColorWell(ColorPickerID, ColorWellID){ var colorWell = document.getElementById(ColorWellID); var colorPicker = document.getElementById(ColorPickerID); if (colorPicker) { // Extract color from colorPicker and assign to colorWell. var color = colorPicker.getAttribute('color'); dump("s...
dump("ColorPicker found\n");
function getColorAndSetColorWell(ColorPickerID, ColorWellID){ var colorWell; if (ColorWellID) colorWell = document.getElementById(ColorWellID); var colorPicker = document.getElementById(ColorPickerID); if (colorPicker) {dump("ColorPicker found\n"); // Extract color from colorPicker and assign to colorWell. ...
if (!gDialog.CustomColorsRadio.checked) return;
if (!gDialog.CustomColorsRadio.selected) return;
function GetColorAndUpdate(ColorWellID){ // Only allow selecting when in custom mode if (!gDialog.CustomColorsRadio.checked) return; var colorObj = new Object; var colorWell = document.getElementById(ColorWellID); if (!colorWell) return; // Don't allow a blank color, i.e., using the "default" colorObj.NoDefault ...
SetColor(ColorWellID, getColor(ColorPickerID));
var color = null; if (ColorPickerID) color = getColor(ColorPickerID); SetColor(ColorWellID, color);
function GetColorAndUpdate(ColorPickerID, ColorWellID, widget){ // Close the colorpicker widget.parentNode.closePopup(); SetColor(ColorWellID, getColor(ColorPickerID));}
dump(" *** customTextColor="+customTextColor+",customLinkColor="+customLinkColor+", customActiveColor="+customActiveColor+", customVisitedColor="+customVisitedColor+", customBackgroundColor="+customBackgroundColor+"\n");
function GetColorAndUpdate(ColorWellID){ // Only allow selecting when in custom mode if (!dialog.CustomColorsRadio.checked) return; var colorObj = new Object; var colorWell = document.getElementById(ColorWellID); if (!colorWell) return; // Don't allow a blank color, i.e., using the "default" colorObj.NoDefault =...
if (aCommand == "cmdEditCopy") { return new cmdEditCopy(this.mPropsView.getSelectedRowObjects()); }
getCommand: function(aCommand) { return null; },
return new cmdEditCopy();
return new cmdEditCopy(this.mTreeView.getSelectedRowObjects());
getCommand: function(aCommand) { if (aCommand == "cmdEditCopy") { return new cmdEditCopy(); } return null; },
case "mainmenu:view-popup":
case "mainmenu:profile-popup":
function getCommandContext (id, cx){ switch (id) { case "popup:project": cx = console.projectView.getContext(cx); break; case "popup:source": cx = console.sourceView.getContext(cx); break; case "popup:script": cx = console.scr...
if (console.dbgContexts)
if ("dbgContexts" in console && console.dbgContexts)
function getCommandContext (id, cx){ switch (id) { case "popup:project": cx = console.projectView.getContext(cx); break; case "popup:source": cx = console.sourceView.getContext(cx); break; case "popup:script": cx = console.scr...
commands = ["bm_open", "bm_expandfolder", "bm_separator",
commands = ["bm_open", "bm_openinnewwindow", "bm_expandfolder", "bm_separator",
getCommands: function (aNodeID) { var type = BookmarksUtils.resolveType(aNodeID); if (!type) return null; var commands = []; // menu order: // // bm_expandfolder // bm_open // bm_openinnewwindow // bm_openinnewtab // --------------------- // bm_newfolder // -----------------...
if (this.sessionUri == null)
if (!this.uri)
getCommandUrl: function( wcapCommand ) { if (this.sessionUri == null) throw new Components.Exception("no URI!"); // ensure established session, so userId is set; // (calId defaults to userId) if not set: this.getSessionId(); return (this.sessionUri.spec + ...
if(command == "GetNewMessages" || command == "Copy" || command == "NewFolder")
if(command == "GetNewMessages" || command == "Copy" || command == "NewFolder" || command == "MarkAllMessagesRead")
function GetCompositeDataSource(command){ if(command == "GetNewMessages" || command == "Copy" || command == "NewFolder") { var folderTree = GetFolderTree(); return folderTree.database; } return null;}
} else if(command == "MarkMessageRead" || command == "MarkMessageFlagged" || command == "MarkThreadAsRead") { var threadTree = GetThreadTree(); return threadTree.database;
function GetCompositeDataSource(command){ if(command == "GetNewMessages" || command == "Copy" || command == "NewFolder") { var folderTree = GetFolderTree(); return folderTree.database; } return null;}
getComputedStyle: function( elem, attr ) { return elem.ownerDocument.defaultView.getComputedStyle( elem, '' ).getPropertyValue( attr );
getComputedStyle: function( elem, prop ) { return elem.ownerDocument.defaultView.getComputedStyle( elem, '' ).getPropertyValue( prop );
getComputedStyle: function( elem, attr ) { return elem.ownerDocument.defaultView.getComputedStyle( elem, '' ).getPropertyValue( attr ); },
getComputedURL: function( elem, attr ) { var url = this.getComputedStyle( elem, attr ); return ( url == "none" ) ? url : url.replace( /^url\("?([^")]+)"?\)/i, "$1" );
getComputedURL: function( elem, prop ) { var url = elem.ownerDocument.defaultView.getComputedStyle( elem, '' ).getPropertyCSSValue( prop ); return ( url.primitiveType == CSSPrimitiveValue.CSS_URI ) ? url.getStringValue() : null;
getComputedURL: function( elem, attr ) { var url = this.getComputedStyle( elem, attr ); return ( url == "none" ) ? url : url.replace( /^url\("?([^")]+)"?\)/i, "$1" ); },
if (!window._content.frames.length || !isDocumentFrame(document.commandDispatcher.focusedWindow))
var focusedWindow = document.commandDispatcher.focusedWindow; if (!_content.frames.length || !isDocumentFrame(focusedWindow))
function getContentAreaFrameCount(){ var saveFrameItem = document.getElementById("savepage"); if (!window._content.frames.length || !isDocumentFrame(document.commandDispatcher.focusedWindow)) saveFrameItem.setAttribute("hidden", "true"); else saveFrameItem.removeAttribute("hidden");}
var focusedWindow = document.commandDispatcher.focusedWindow; if (!_content.frames.length || !isDocumentFrame(focusedWindow))
if (!_content.frames.length || !isDocumentFrame(document.commandDispatcher.focusedWindow))
function getContentAreaFrameCount(){ var saveFrameItem = document.getElementById("savepage"); var focusedWindow = document.commandDispatcher.focusedWindow; if (!_content.frames.length || !isDocumentFrame(focusedWindow)) saveFrameItem.setAttribute("hidden", "true"); else saveFrameItem.removeAttribute("hidden")...
this.tree.selectItem(aItemNode); return this.tree.selectedItems;
if (aItemNode.localName == "treeitem") this.tree.selectItem(aItemNode); return this.tree.selectedItems.length ? this.tree.selectedItems : [this.tree];
getContextSelection: function (aItemNode) { // How a context-click works: // if the popup node is contained by the selection, the context menu is // built for that selection. However, if the popup node is invoked on a // non-selected node, unless modifiers are pressed**, the previous // selection is d...
return unescape(document.cookie.substring(offset, endstr));
return decodeURIComponent(document.cookie.substring(offset, endstr));
function getCookieVal (offset){var endstr = document.cookie.indexOf (";", offset);if (endstr == -1)endstr =document.cookie.length;return unescape(document.cookie.substring(offset, endstr));}
var isValid = false; var eventStartDate;
if (!calendarEvent.recurrenceInfo) { return calendarEvent; }
function getCurrentNextOrPreviousRecurrence(calendarEvent){ var isValid = false; var eventStartDate; if (calendarEvent.recur) { var now = new Date(); var result = new Object(); var dur = calendarEvent.endDate.jsDate - calendarEvent.startDate.jsDate; // To find current event when now...
if (calendarEvent.recur) { var now = new Date(); var result = new Object(); var dur = calendarEvent.endDate.jsDate - calendarEvent.startDate.jsDate;
var dur = calendarEvent.duration.clone(); dur.isNegative = true;
function getCurrentNextOrPreviousRecurrence(calendarEvent){ var isValid = false; var eventStartDate; if (calendarEvent.recur) { var now = new Date(); var result = new Object(); var dur = calendarEvent.endDate.jsDate - calendarEvent.startDate.jsDate; // To find current event when now...
var probeTime = now.getTime() - dur; isValid = calendarEvent.getNextRecurrence(probeTime, result);
var probeTime = now(); probeTime.addDuration(dur); var occtime = calendarEvent.recurrenceInfo.getNextOccurrenceDate(probeTime);
function getCurrentNextOrPreviousRecurrence(calendarEvent){ var isValid = false; var eventStartDate; if (calendarEvent.recur) { var now = new Date(); var result = new Object(); var dur = calendarEvent.endDate.jsDate - calendarEvent.startDate.jsDate; // To find current event when now...
if (isValid) { eventStartDate = new Date(result.value); } else { isValid = calendarEvent.getPreviousOccurrence(probeTime, result); if (isValid) { eventStartDate = new Date(result.value); } }
var occ; if (!occtime) { var occs = calendarEvent.recurrenceInfo.getOccurrences(calendarEvent.startDate, probeTime, {}); occ = occs[occs.length -1]; } else { occ = calendarEvent.recurrenceInfo.getOccurrenceFor(occtime);
function getCurrentNextOrPreviousRecurrence(calendarEvent){ var isValid = false; var eventStartDate; if (calendarEvent.recur) { var now = new Date(); var result = new Object(); var dur = calendarEvent.endDate.jsDate - calendarEvent.startDate.jsDate; // To find current event when now...
if (!isValid) { eventStartDate = new Date( calendarEvent.startDate.jsDate ); } return eventStartDate;
return occ;
function getCurrentNextOrPreviousRecurrence(calendarEvent){ var isValid = false; var eventStartDate; if (calendarEvent.recur) { var now = new Date(); var result = new Object(); var dur = calendarEvent.endDate.jsDate - calendarEvent.startDate.jsDate; // To find current event when now...
var prefs = Components.classes["@mozilla.org/preferences;1"];
var prefs = Components.classes["@mozilla.org/preferences-service;1"];
function GetCurrentPrefs(){ // prefs if ( cvPrefs == 0 ) cvPrefs = new Object; var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if ( prefs ) { try { cvPrefs.prefs = prefs; cvP...
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
prefs = prefs.QueryInterface(Components.interfaces.nsIPrefBranch);
function GetCurrentPrefs(){ // prefs if ( cvPrefs == 0 ) cvPrefs = new Object; var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if ( prefs ) { try { cvPrefs.prefs = prefs; cvP...
cvPrefs.displayLastNameFirst = prefs.GetBoolPref("mail.addr_book.displayName.lastnamefirst"); cvPrefs.nameColumn = prefs.GetIntPref("mail.addr_book.lastnamefirst");
cvPrefs.displayLastNameFirst = prefs.getBoolPref("mail.addr_book.displayName.lastnamefirst"); cvPrefs.nameColumn = prefs.getIntPref("mail.addr_book.lastnamefirst");
function GetCurrentPrefs(){ // prefs if ( cvPrefs == 0 ) cvPrefs = new Object; var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if ( prefs ) { try { cvPrefs.prefs = prefs; cvP...
return( "st" );
return( firstExtension );
function getDayExtension( dayNumber ){ switch( dayNumber ) { case 1: case 21: case 31: return( "st" ); case 2: case 22: return( "nd" ); case 3: case 23: return( "rd" ); default: return( "th" ); }}
return( "nd" );
return( secondExtension );
function getDayExtension( dayNumber ){ switch( dayNumber ) { case 1: case 21: case 31: return( "st" ); case 2: case 22: return( "nd" ); case 3: case 23: return( "rd" ); default: return( "th" ); }}
return( "rd" );
return( thirdExtension );
function getDayExtension( dayNumber ){ switch( dayNumber ) { case 1: case 21: case 31: return( "st" ); case 2: case 22: return( "nd" ); case 3: case 23: return( "rd" ); default: return( "th" ); }}
return( "th" );
return( nthExtension );
function getDayExtension( dayNumber ){ switch( dayNumber ) { case 1: case 21: case 31: return( "st" ); case 2: case 22: return( "nd" ); case 3: case 23: return( "rd" ); default: return( "th" ); }}
try { useSysColors = gPrefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {}
try { useSysColors = gPrefs.getBoolPref("browser.display.use_system_colors"); } catch (e) {}
function GetDefaultBrowserColors(){ var colors = new Object(); if (!colors) return null; //Initialize to avoid JS warnings colors.TextColor = ""; colors.BackgroundColor = ""; var useSysColors = false; try { useSysColors = gPrefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors)...
try { colors.TextColor = gPrefs.CopyCharPref("browser.display.foreground_color"); } catch (e) {}
try { colors.TextColor = gPrefs.getCharPref("browser.display.foreground_color"); } catch (e) {}
function GetDefaultBrowserColors(){ var colors = new Object(); if (!colors) return null; //Initialize to avoid JS warnings colors.TextColor = ""; colors.BackgroundColor = ""; var useSysColors = false; try { useSysColors = gPrefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors)...
try { colors.BackgroundColor = gPrefs.CopyCharPref("browser.display.background_color"); } catch (e) {}
try { colors.BackgroundColor = gPrefs.getCharPref("browser.display.background_color"); } catch (e) {}
function GetDefaultBrowserColors(){ var colors = new Object(); if (!colors) return null; //Initialize to avoid JS warnings colors.TextColor = ""; colors.BackgroundColor = ""; var useSysColors = false; try { useSysColors = gPrefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors)...
try { colors.LinkColor = gPrefs.CopyCharPref("browser.anchor_color"); } catch (e) {} try { colors.VisitedLinkColor = gPrefs.CopyCharPref("browser.visited_color"); } catch (e) {}
try { colors.LinkColor = gPrefs.getCharPref("browser.anchor_color"); } catch (e) {} try { colors.VisitedLinkColor = gPrefs.getCharPref("browser.visited_color"); } catch (e) {}
function GetDefaultBrowserColors(){ var colors = new Object(); if (!colors) return null; //Initialize to avoid JS warnings colors.TextColor = ""; colors.BackgroundColor = ""; var useSysColors = false; try { useSysColors = gPrefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors)...
try { useSysColors = prefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {}
try { useSysColors = prefs.getBoolPref("browser.display.use_system_colors"); } catch (e) {}
function GetDefaultBrowserColors(){ var prefs = GetPrefs(); var colors = new Object(); var useSysColors = false; colors.TextColor = 0; colors.BackgroundColor = 0; try { useSysColors = prefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors) { try { colors.TextColor = prefs.Co...
try { colors.TextColor = prefs.CopyCharPref("browser.display.foreground_color"); } catch (e) {}
try { colors.TextColor = prefs.getCharPref("browser.display.foreground_color"); } catch (e) {}
function GetDefaultBrowserColors(){ var prefs = GetPrefs(); var colors = new Object(); var useSysColors = false; colors.TextColor = 0; colors.BackgroundColor = 0; try { useSysColors = prefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors) { try { colors.TextColor = prefs.Co...
try { colors.BackgroundColor = prefs.CopyCharPref("browser.display.background_color"); } catch (e) {}
try { colors.BackgroundColor = prefs.getCharPref("browser.display.background_color"); } catch (e) {}
function GetDefaultBrowserColors(){ var prefs = GetPrefs(); var colors = new Object(); var useSysColors = false; colors.TextColor = 0; colors.BackgroundColor = 0; try { useSysColors = prefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors) { try { colors.TextColor = prefs.Co...
colors.LinkColor = prefs.CopyCharPref("browser.anchor_color"); colors.VisitedLinkColor = prefs.CopyCharPref("browser.visited_color");
colors.LinkColor = prefs.getCharPref("browser.anchor_color"); colors.VisitedLinkColor = prefs.getCharPref("browser.visited_color");
function GetDefaultBrowserColors(){ var prefs = GetPrefs(); var colors = new Object(); var useSysColors = false; colors.TextColor = 0; colors.BackgroundColor = 0; try { useSysColors = prefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {} if (!useSysColors) { try { colors.TextColor = prefs.Co...
if (!colors) return null; colors.TextColor = ""; colors.BackgroundColor = "";
function GetDefaultBrowserColors(){ var colors = new Object(); var useWinColors = false; if (gIsWindows) { // In Windows only, there's a pref to use system colors instead of pref colors try { useWinColors = gPrefs.GetBoolPref("browser.display.wfe.use_windows_colors"); } catch (e) {} } if (!useWinColors) { ...
colors.TextColor = 0; colors.BackgroundColor = 0;
function GetDefaultBrowserColors(){ var prefs = GetPrefs(); var colors = new Object(); var useWinColors = false; if (navigator.appVersion.indexOf("Win") != -1) { // In Windows only, there's a pref to use system colors instead of pref colors try { useWinColors = prefs.GetBoolPref("browser.display.wfe.use_wind...
{ try { var categoriesStringBundle = srGetStrBundle("chrome: return categoriesStringBundle.GetStringFromName("categories" ); } catch(e) { return "" }
{ try { var categoriesStringBundle = srGetStrBundle("chrome: return categoriesStringBundle.GetStringFromName("categories" );
function getDefaultCategories() { try { var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/categories.properties"); return categoriesStringBundle.GetStringFromName("categories" ); } catch(e) { return "" } }