rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
{ initDialog(); | { initDialogObject(); | function onLoad() { // Init dialog. initDialog(); // Get find component. finder = Components.classes[ "@mozilla.org/appshell/component/find;1" ].getService(); finder = finder.QueryInterface( Components.interfaces.nsIFindComponent ); if ( !... |
finder = Components.classes[ "@mozilla.org/appshell/component/find;1" ].getService(); finder = finder.QueryInterface( Components.interfaces.nsIFindComponent ); if ( !finder ) { alert( "Error accessing find component\n" ); window.close(); return; } | finder = Components.classes["@mozilla.org/appshell/component/find;1"].getService(); finder = finder.QueryInterface(Components.interfaces.nsIFindComponent); | function onLoad() { // Init dialog. initDialog(); // Get find component. finder = Components.classes[ "@mozilla.org/appshell/component/find;1" ].getService(); finder = finder.QueryInterface( Components.interfaces.nsIFindComponent ); if ( !... |
loadDialog(); | fillDialog(); | function onLoad() { // Init dialog. initDialog(); // Get find component. finder = Components.classes[ "@mozilla.org/appshell/component/find;1" ].getService(); finder = finder.QueryInterface( Components.interfaces.nsIFindComponent ); if ( !... |
dialog.findKey.focus(); } | doEnabling(); if (dialog.findKey.value) dialog.findKey.select(); else dialog.findKey.focus(); } | function onLoad() { // Init dialog. initDialog(); // Get find component. finder = Components.classes[ "@mozilla.org/appshell/component/find;1" ].getService(); finder = finder.QueryInterface( Components.interfaces.nsIFindComponent ); if ( !... |
dialog.open = document.getElementById("ok"); | dialog.open = document.documentElement.getButton("accept"); | function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.getElementById("ok"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = document.getElementByI... |
doSetOKCancel(open, 0, 0, 0); dialog.input.focus(); | function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.getElementById("ok"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = document.getElementByI... | |
window.title = gReplicationBundle.getFormattedString("replicatingTitle", [dirName]) | document.title = gReplicationBundle.getFormattedString("replicatingTitle", [dirName]) | function onLoad() { var dirName; if (window.arguments[0]) { dirName = window.arguments[0].dirName; gCurrentDirectoryPrefName = window.arguments[0].prefName; } gProgressText = document.getElementById("replication.status"); gProgressMeter = document.getElementById("replication.progress"); gReplicationBundle =... |
var serverMenu = document.getElementById("serverMenu"); var menuitems = serverMenu.getElementsByTagName("menuitem"); if (window.arguments[0].serverURI) { reRootFolderPicker(window.arguments[0].serverURI); var menuitems = serverMenu.getElementsByAttribute("id", gServerURI); serverMenu.selectedItem = menuitems[0]; } el... | function onLoad(){ gFolderPickerTree = document.getElementById("folderPickerTree"); if (window.arguments[0].searchFolderURIs) { // for each folder uri, var srchFolderUriArray = window.arguments[0].searchFolderURIs.split('|'); // get the folder for each search URI and set the searchThisFolder flag on it ... | |
gFilterListMsgWindow.domWindow = window; | function onLoad(){ gFilterListMsgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance(Components.interfaces.nsIMsgWindow); gFilterListMsgWindow.statusFeedback = gStatusFeedback; gFilterListMsgWindow.domWindow = window; gFilterBundle = document.getElementById("bundle_filter"); ... | |
document.getElementById("syncMail").checked = gSyncMail; | var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gSyncMail = prefs.GetBoolPref("mailnews.offline_sync_mail"); gSyncNews = prefs.GetBoolPref("mailnews.offline_sync_news"); gSendMessage = prefs.GetBoolPref("mailnews.offline_sync_send_unsent"); gWorkOffline = prefs.Ge... | function OnLoad(){ if (window.arguments && window.arguments[0]) { if (window.arguments[0].msgWindow) { gParentMsgWindow = window.arguments[0].msgWindow; } } doSetOKCancel(syncOkButton, syncCancelButton); document.getElementById("syncMail").checked = gSyncMail; document.getE... |
updateDuedate(); | updateDueDate(); updateEntryDate(); | function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarItem = args.calendarEvent; window.mode = args.mode; window.recurrenceInfo = null; if (window.calendarItem.calendar && window.calendarItem.calendar.readOnly) { gReadOnlyMode = true; } /* ... |
updateAlarm(); | function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarItem = args.calendarEvent; window.mode = args.mode; window.recurrenceInfo = null; if (window.calendarItem.calendar && window.calendarItem.calendar.readOnly) { gReadOnlyMode = true; } /* ... | |
window.title = document.getElementById("bundle_prefs") .getFormattedString("identity-list-title", [accountName]); | document.title = document.getElementById("bundle_prefs") .getFormattedString("identity-list-title", [accountName]); | function onLoad(){ gMessengerBundle = document.getElementById("bundle_messenger"); gIdentityListBox = document.getElementById("identitiesList"); gAddButton = document.getElementById("addButton"); gEditButton = document.getElementById("editButton"); gDeleteButton = document.getElementById("deleteBu... |
checkForInvalidAccounts(); var pageData = GetPageData(); updateMap(pageData, gWizardMap); | function onLoad() { // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, gWizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-"; wizardManager.URL_PagePostfix = ".xul"; wizardMan... | |
checkForInvalidAccounts(); var pageData = GetPageData(); updateMap(pageData, gWizardMap); | function onLoad() { // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, gWizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-"; wizardManager.URL_PagePostfix = ".xul"; wizardMan... | |
var title = dialogParams.GetString(2); window.title = title; | document.title = dialogParams.GetString(2); | function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var title = dialogParams.GetString(2); window.title = title; var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var message1 = dialogParams.Ge... |
menuItemNode.setAttribute("label", nick); | function onLoad(){ var cn; var org; var issuer; dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); cn = dialogParams.GetString(1); org = dialogParams.GetString(2); issuer = dialogParams.GetString(3); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); ... | |
var lastUpdate = crlEntry.lastUpdate; var nextUpdate = crlEntry.nextUpdate; AddItem("crlList", [org, orgUnit, lastUpdate, nextUpdate], "crltree_", i); | var lastUpdate = crlEntry.lastUpdateLocale; var nextUpdate = crlEntry.nextUpdateLocale; autoupdateEnabledString = autoupdateEnabledBaseString + crlEntry.nameInDb; autoupdateErrCntString = autoupdateErrCntBaseString + crlEntry.nameInDb; var enabled = false; var enabledStr = "Not Enabled"; var status = ""; try{ ena... | function onLoad(){ var crlEntry; var i; certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB); crls = certdb.getCrls(); for (i=0; i<crls.Count(); i++) { crlEntry = crls.GetElementAt(i).QueryInterface(nsICrlEntry); var org = crlEntry.org; var orgUnit = crlEntry.orgUnit; var lastUpdate = cr... |
window.title = downloadHeadersTitlePrefix; | document.title = downloadHeadersTitlePrefix; | function OnLoad(){ gNewsBundle = document.getElementById("bundle_news"); if ("arguments" in window && window.arguments[0]) { args = window.arguments[0].QueryInterface( Components.interfaces.nsINewsDownloadDialogArgs); args.hitOK = false; /* by default, act like the user hit cancel */ args.dow... |
var windowReference = document.getElementById('ssl_warning'); var wdth = window.innerWidth; window.sizeToContent(); windowReference.setAttribute("width",window.innerWidth + 30); var hght = window.innerHeight; window.sizeToContent(); windowReference.setAttribute("height",window.innerHeight + 40); | function onLoad(){ doSetOKCancel(doOK, doCancel, doHelpButton); pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert); var bundle = srGetStrBundl... | |
var subject = window.arguments[0]; itsASaveOperation = window.arguments[1]; msgComposeProgress = window.arguments[2]; | var subject = ""; msgProgress = window.arguments[0]; if (window.arguments[1]) { var progressParams = window.arguments[1].QueryInterface(Components.interfaces.nsIMsgComposeProgressParams) if (progressParams) { itsASaveOperation = (progressParams.deliveryMode != msgCompDeliverMode.Now); subject = progressParams.subject; ... | function onLoad() { // Set global variables. var subject = window.arguments[0]; itsASaveOperation = window.arguments[1]; msgComposeProgress = window.arguments[2]; if ( !msgComposeProgress ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog ... |
if ( !msgComposeProgress ) { | if ( !msgProgress ) { | function onLoad() { // Set global variables. var subject = window.arguments[0]; itsASaveOperation = window.arguments[1]; msgComposeProgress = window.arguments[2]; if ( !msgComposeProgress ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog ... |
msgComposeProgress.registerListener(progressListener); | msgProgress.registerListener(progressListener); | function onLoad() { // Set global variables. var subject = window.arguments[0]; itsASaveOperation = window.arguments[1]; msgComposeProgress = window.arguments[2]; if ( !msgComposeProgress ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog ... |
if (("arguments" in window) && window.arguments[0] && ("prefillValue" in window.arguments[0])) onNewFilter(window.arguments[0].prefillValue); | function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);... | |
textInput = document.getElementById("textInput"); | function onLoad() { if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.title; filePickerMode = o.mode; if (o.displayDirectory) const directory = o.displayDirectory.path; const initialText = o.defaul... | |
getDirectoryContents(document.getElementById("directoryList"), sfile.directoryEntries); | getDirectoryContents(directoryTree, sfile.directoryEntries); textInput.focus(); | function onLoad() { if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.title; filePickerMode = o.mode; if (o.displayDirectory) const directory = o.displayDirectory.path; const initialText = o.defaul... |
dialog.progressText = document.getElementById("dialog.progressText"); | function onLoad() { // Set global variables. helperAppLoader = window.arguments[0]; if ( !helperAppLoader ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog = new Object; dialog.strings = new Array; dialog.location = document.getElement... | |
dialog.timeElapsed = document.getElementById("dialog.timeElapsed"); | function onLoad() { // Set global variables. data = window.arguments[0]; if ( !data ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog = new Object; dialog.location = document.getElementById("dialog.location"); dialog.contentType = docu... | |
Components.classes["@mozilla.org/ldapprefs-service;1"] .getService(Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP service\n" + ex + "\n");} | ldapPrefs = Components.classes["@mozilla.org/ldapprefs-service;1"] .getService(Components.interfaces.nsILDAPPrefsService); } catch (ex) {Components.utils.reportError("ERROR: Cannot get the LDAP service\n" + ex + "\n");} if (ldapPrefs) { ldapPrefs.migratePrefsIfNeeded(); } | function OnLoadAddressBook(){ gSearchInput = document.getElementById("searchInput"); verifyAccounts(null); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); InitCommonJS(); UpgradeAddressBookResultsPan... |
Components.interfaces.nsIAbListener.directoryRemoved | Components.interfaces.nsIAbListener.directoryItemRemoved); | Components.interfaces.nsIAddrBookSession.directoryRemoved | Components.interfaces.nsIAddrBookSession.directoryItemRemoved); | function OnLoadAddressBook(){ gSearchInput = document.getElementById("searchInput"); verifyAccounts(null); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); InitCommonJS(); UpgradeAddressBookResultsPan... |
setTimeout('SelectFirstAddressBook()',0); | setTimeout('OnLoadDirTree()', 0); | function OnLoadAddressBook(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); gSearchInput = document.getElementById("searchInput"); verifyAccounts(null); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.inter... |
try { gAddressBookSession = Components.classes["@mozilla.org/addressbook/services/session;1"].getService(Components.interfaces.nsIAddrBookSession); gAddressBookSession.addAddressBookListener(addressBookListener); } catch (ex) { dump("Error adding to address book session\n"); } | function OnLoadAddressBook(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); verifyAccounts(); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAd... | |
gAddressBookBundle = document.getElementById("bundle_addressBook"); | function OnLoadAddressBook(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); gSearchInput = document.getElementById("searchInput"); verifyAccounts(null); // this will do migration, if we need to. top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.inter... | |
cvData.cvAimPresence = doc.getElementById("cvAimPresence"); | function OnLoadCardView(){ zPrimaryEmail = gAddressBookBundle.getString("propertyPrimaryEmail"); zSecondaryEmail = gAddressBookBundle.getString("propertySecondaryEmail"); zScreenName = gAddressBookBundle.getString("propertyScreenName"); zNickname = gAddressBookBundle.getString("propertyNickname"); zDisplayName = g... | |
if ( window.arguments[0].abCardURI ) editCard.abCardURI = window.arguments[0].abCardURI; | function OnLoadEditCard(){ InitEditCard(); doSetOKCancel(EditCardOKButton, 0); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) editCard.okCallback... | |
GetCardValues(editCard.card, frames["editcard"].document); | GetCardValues(editCard.card, document); | function OnLoadEditCard(){ InitEditCard(); doSetOKCancel(EditCardOKButton, 0); if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) editCard.okCallback = window.arguments[0].okCallback; if ( window.argument... |
editCard.titleProperty = "editCardTitle"; | gEditCard.titleProperty = "editCardTitle"; | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
editCard.card = window.arguments[0].card; | gEditCard.card = window.arguments[0].card; | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
editCard.abURI = window.arguments[0].abURI; | gEditCard.abURI = window.arguments[0].abURI; | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
if ( editCard.generateDisplayName && (editCard.card.firstName.length + editCard.card.lastName.length + editCard.card.displayName.length > 0) ) | if (gEditCard.generateDisplayName && (gEditCard.card.firstName.length + gEditCard.card.lastName.length + gEditCard.card.displayName.length > 0)) | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
editCard.generateDisplayName = false; | gEditCard.generateDisplayName = false; | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
GetCardValues(editCard.card, document); | GetCardValues(gEditCard.card, document); | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
SetCardDialogTitle(editCard.card.displayName); | SetCardDialogTitle(gEditCard.card.displayName); | function OnLoadEditCard(){ InitEditCard(); editCard.titleProperty = "editCardTitle"; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].card ) editCard.card = window.arguments[0].card; if ( window.arguments[0].okCallback ) gOkCallback = window.arguments[0].okCallback; if ( wi... |
AppendNewRowAndSetFocus(); awFitDummyRows(1); var listName = document.getElementById('ListName'); if ( listName ) listName.focus(); moveToAlertPosition(); | setTimeout(AppendLastRow, 0); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); gParentURI = window.arguments[0].abURI; gListCard = window.arguments[0].abCard; var listUri = window.arguments[0].listURI; gOkCallback = window... |
moveToAlertPosition(); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); gParentURI = window.arguments[0].abURI; gListCard = window.arguments[0].abCard; var listUri = window.arguments[0].listURI; gOkCallback = window... | |
dump("*** editList.Count = "+total+"\n"); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); doSetOKCancel(EditListOKButton, 0); parentURI = window.arguments[0].abURI; var listUri = window.arguments[0].listURI; var rdf = Components.clas... | |
gAddressBookBundle = document.getElementById("bundle_addressBook"); | InitCommonJS(); | function OnLoadEditList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); gParentURI = window.arguments[0].abURI; gListCard = window.arguments[0].abCard; var listUri = window.arguments[0].listURI; gOkCallback = window... |
gSkipFirstRecordButton = document.getElementById("skipFirstRecord"); gSkipFirstRecordButton.checked = top.fieldMap.skipFirstRecord; | function OnLoadFieldMapImport(){ top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); // We need a field map object... // assume we have one passed in? or just make one? if (window.... | |
gListbox.selectedItem = gListbox.childNodes[2]; | function OnLoadFieldMapImport(){ top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.transferType = "moz/fieldmap"; top.recordNum = 0; // We need a field map object... // assu... | |
folderOutliner.addEventListener("mousedown",OutlinerOnMouseDown,true); | function OnLoadFolderPane(){ UpgradeFolderPaneUI(); var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (!hidden) { var folderNameCell = document.getElementById("folderNameCell"); folderNameCell.setAttribute("label", "?fo... | |
ForceFolderPaneOpen(); | function OnLoadFolderPane(){ ForceFolderPaneOpen(); UpgradeFolderPaneUI(); var folderUnreadCol = document.getElementById("folderUnreadCol"); var hidden = folderUnreadCol.getAttribute("hidden"); if (hidden != "true") { var folderNameCell = document.getElementById("folderNameCell"); folder... | |
progressInfo.localFolderExists = false; | function OnLoadImportDialog(){ gImportMsgsBundle = document.getElementById("bundle_importMsgs"); importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); progressInfo = { }; progressInfo.progre... | |
top.bundle = srGetStrBundle("chrome: top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); | bundle = srGetStrBundle("chrome: importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); | function OnLoadImportDialog(){ top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.progressInfo = ne... |
top.progressInfo = new Object(); top.progressInfo.progressWindow = null; top.progressInfo.importInterface = null; top.progressInfo.mainWindow = top.window; top.progressInfo.intervalState = 0; top.progressInfo.importSuccess = false; top.progressInfo.importType = null; | progressInfo = { }; progressInfo.progressWindow = null; progressInfo.importInterface = null; progressInfo.mainWindow = window; progressInfo.intervalState = 0; progressInfo.importSuccess = false; progressInfo.importType = null; | function OnLoadImportDialog(){ top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.progressInfo = ne... |
top.importType = window.arguments[0].importType; top.progressInfo.importType = top.importType; | importType = window.arguments[0].importType; progressInfo.importType = top.importType; | function OnLoadImportDialog(){ top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.progressInfo = ne... |
top.importType = "addressbook"; top.progressInfo.importType = "addressbook"; | importType = "addressbook"; progressInfo.importType = "addressbook"; | function OnLoadImportDialog(){ top.bundle = srGetStrBundle("chrome://messenger/locale/importMsgs.properties"); top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService(); top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService); top.progressInfo = ne... |
var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites(); | if (gbProcessOnloadEvent) { gbProcessOnloadEvent = false; | function onLoadInternetResults(){ // clear any previous results on load var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites(); // the search URI is passed in as a pa... |
var searchURI = top._content.location.href; if (searchURI) { const lastSearchURIPref = "browser.search.lastMultipleSearchURI"; var offset = searchURI.indexOf("?"); if (offset > 0) { nsPreferences.setUnicharPref(lastSearchURIPref, searchURI); searchURI = searchURI.substr(offset+1); loadResultsList(searchURI); } else { s... | var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites(); var searchURI = top._content.location.href; if (searchURI) { const lastSearchURIPref = "browser.search.lastMultipleSearchURI"; var offset... | function onLoadInternetResults(){ // clear any previous results on load var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites(); // the search URI is passed in as a pa... |
else { searchURI = nsPreferences.copyUnicharPref(lastSearchURIPref, ""); offset = searchURI.indexOf("?"); if (offset > 0) { nsPreferences.setUnicharPref(lastSearchURIPref, searchURI); searchURI = searchURI.substr(offset+1); loadResultsList(searchURI); } } | function onLoadInternetResults(){ // clear any previous results on load var iSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"] .getService(Components.interfaces.nsIInternetSearchService); iSearch.ClearResultSearchSites(); // the search URI is passed in as a pa... | |
var selectedAB; | function OnLoadMailList(){ doSetOKCancel(MailListOKButton, 0); if (window.arguments && window.arguments[0]) { if ( window.arguments[0].selectedAB ) selectedAB = window.arguments[0].selectedAB; else selectedAB = "abdirectory://abook.mab"; } // set popup with address book names var abPopup = document.getElementByI... | |
selectedAB = "abdirectory: | selectedAB = "abmdbdirectory: | function OnLoadMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); doSetOKCancel(MailListOKButton, 0); var selectedAB; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].selectedAB ) ... |
DisableMenus(); | function OnLoadMessageWindow(){ HideMenus(); AddMailOfflineObserver(); CreateMailWindowGlobals(); CreateMessageWindowGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons() verifyAccounts(null); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); // FIX ME - later we will be able ... | |
HideMenus(); | function OnLoadMessageWindow(){ HideMenus(); AddMailOfflineObserver(); CreateMailWindowGlobals(); CreateMessageWindowGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons() verifyAccounts(null); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); // FIX ME - later we will be able ... | |
showPerformance = pref.GetBoolPref('mail.showMessengerPerformance'); | function OnLoadMessenger(){ var beforeLoadMessenger; if(showPerformance) { beforeLoadMessenger = new Date(); } CreateMailWindowGlobals(); Create3PaneGlobals(); verifyAccounts(); HideAccountCentral(); loadStartPage(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); Init... | |
accountManager.loadVirtualFolders(); | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(); verifyAccounts(null); HideAccountCentral(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); InitPanes(); accountMan... | |
loadStartPage(); | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(); verifyAccounts(null); HideAccountCentral(); loadStartPage(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); InitPa... | |
window.frames["messagepane"].location = "http: | dump("start message pane with: " + startpage + "\n"); window.frames["messagepane"].location = startpage; | function OnLoadMessenger(){ messenger.SetWindow(window); window.frames["messagepane"].location = "http://people.netscape.com/sspitzer/startpage.html";} |
MigrateJunkMailSettings(); | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); pref.QueryInterface(Components.interfaces.nsIPrefBranch2); pref.addObserver("mail.pane_config.dynamic", MailPaneConfigObserver, false); UpdateMailPaneConfig(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(... | |
if ("arguments" in window && window.arguments[0]) | if ("arguments" in window) | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(); verifyAccounts(null); HideAccountCentral(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); InitPanes(); accountMan... |
gStartFolderUri = window.arguments[0]; gStartMsgKey = window.arguments[1]; gSearchEmailAddress = window.arguments[2]; } else { gStartFolderUri = null; gStartMsgKey = nsMsgKey_None; gSearchEmailAddress = null; | gStartFolderUri = (window.arguments.length > 0) ? window.arguments[0] : null; gStartMsgKey = (window.arguments.length > 1) ? window.arguments[1] : nsMsgKey_None; gSearchEmailAddress = (window.arguments.length > 2) ? window.arguments[2] : null; | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(); verifyAccounts(null); HideAccountCentral(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); InitPanes(); accountMan... |
if (CheckForUnsentMessages()) { var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); if (!ioService.offline) { InitPrompts(); InitServices(); if (gPromptService) { var buttonPressed = gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('se... | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(); verifyAccounts(null); HideAccountCentral(); InitMsgWindow(); messenger.SetWindow(window, msgWindow); InitializeDataSources(); InitPanes(); accountMan... | |
HideAccountCentral(); | function OnLoadMessenger(){ AddMailOfflineObserver(); CreateMailWindowGlobals(); pref.QueryInterface(Components.interfaces.nsIPrefBranch2); pref.addObserver("mail.pane_config.dynamic", MailPaneConfigObserver, false); UpdateMailPaneConfig(); Create3PaneGlobals(); AddToolBarPrefListener(); ShowHideToolBarButtons(... | |
gCollectIncoming = pref.getBoolPref("mail.collect_email_address_incoming"); gCollectNewsgroup = pref.getBoolPref("mail.collect_email_address_newsgroup"); gCollectOutgoing = pref.getBoolPref("mail.collect_email_address_outgoing"); | function OnLoadMsgHeaderPane(){ // HACK...force our XBL bindings file to be load before we try to create our first xbl widget.... // otherwise we have problems. document.loadBindingDocument('chrome://messenger/content/mailWidgets.xml'); // load any preferences that at are global with regards to // displaying a ... | |
msgPaneData.UserAgentBox = document.getElementById("headerPart3"); | msgPaneData.UserAgentBox = document.getElementById("UserAgentBox"); | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; if (msgPaneData) { // First group of he... |
if (document.getElementById('toggleAttachmentView').getAttribute("state") == "true") ToggleAttachmentView(); | function OnLoadMsgHeaderPane(){ // HACK...force our XBL bindings file to be load before we try to create our first xbl widget.... // otherwise we have problems. document.loadBindingDocument('chrome://messenger/content/mailWidgets.xml'); // load any preferences that at are global with regards to // displaying a ... | |
msgPaneData = new Object; | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; // HACK...force our XBL bindings file to be ... | |
if (msgPaneData) { msgPaneData.SubjectBox = document.getElementById("SubjectBox"); msgPaneData.SubjectValue = document.getElementById("SubjectValue"); msgPaneData.FromBox = document.getElementById("FromBox"); msgPaneData.FromValue = document.getElementById("FromValue"); msgPaneData.ReplyToBox = document.getEle... | initializeHeaderViewTables(); | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; // HACK...force our XBL bindings file to be ... |
msgPaneData.DateBox = document.getElementById("DateBox"); msgPaneData.DateValue = document.getElementById("DateValue"); msgPaneData.AttachmentPopup = document.getElementById("attachmentPopup"); msgPaneData.AttachmentButton = document.getElementById("attachmentButton"); msgPaneData.EditMessageButton = document.getEl... | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; // HACK...force our XBL bindings file to be ... | |
msgPaneData.EditMessageButton = document.getElementById("editMessageButton"); | function OnLoadMsgHeaderPane(){ // build a document object for the header pane so we can cache fetches for elements // in a local variable // if you add more document elements with ids to msgHeaderPane.xul, you should add // to this object... msgPaneData = new Object; // HACK...force our XBL bindings file to be... | |
var toggleHeaderView = document.getElementById("msgHeaderView"); var initialCollapsedSetting = toggleHeaderView.getAttribute("state"); if (initialCollapsedSetting == "true") gCollapsedHeaderViewMode = true; | var deckHeaderView = document.getElementById("msgHeaderViewDeck"); gCollapsedHeaderViewMode = deckHeaderView.selectedIndex == 0; | function OnLoadMsgHeaderPane(){ // HACK...force our XBL bindings file to be load before we try to create our first xbl widget.... // otherwise we have problems. document.loadBindingDocument('chrome://messenger/content/mailWidgets.xml'); // load any preferences that at are global with regards to // displaying a ... |
if (window.arguments && window.arguments[0]) | if ("arguments" in window && window.arguments[0]) | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editCard.ti... |
if ( window.arguments[0].selectedAB ) | if ("selectedAB" in window.arguments[0]) | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editCard.ti... |
if (window.arguments[0].primaryEmail) | if ("primaryEmail" in window.arguments[0]) | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editCard.ti... |
if (window.arguments[0].displayName) | if ("displayName" in window.arguments[0]) | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editCard.ti... |
else { abPopup.value = menupopup.childNodes[1].getAttribute('value'); abPopup.data = menupopup.childNodes[1].getAttribute('data'); } | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editCard.ti... | |
editCard.selectedAB = "abdirectory: | editCard.selectedAB = "abmdbdirectory: | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editC... |
if ( editCard.selectedAB ) abPopup.value = editCard.selectedAB; | if ( abPopup ) { if ( editCard.selectedAB ) abPopup.value = editCard.selectedAB; else abPopup.value = "abdirectory: } | function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); editCard.card = 0; editCard.okCallback = 0; editCard.titlePrefix = newCardTitlePrefix; if (window.arguments && window.arguments[0]) { if ( window.arguments[0].selectedAB ) editCard.selectedAB = window.arguments[0].selectedAB; } // set popu... |
var cardproperty; try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interfaces.nsIAbCard); } editCard.card = cardproperty; editCard.titleProperty = "newCardTit... | gEditCard.card = (("arguments" in window) && (window.arguments.length > 0) && (window.arguments[0] instanceof Components.interfaces.nsIAbCard)) ? window.arguments[0] : Components.classes["@mozilla.org/addressbook/cardproperty;1"] .createInstance(Components.interfaces.nsIAbCard); gEditCard.titleProperty = "newCardTitle"... | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
if (parentURI) { editCard.selectedAB = parentURI; } else { editCard.selectedAB = kPersonalAddressbookURI; } | if (parentURI) gEditCard.selectedAB = parentURI; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
else if (!(directory.operations & directory.opWrite)) { editCard.selectedAB = kPersonalAddressbookURI; } else { editCard.selectedAB = window.arguments[0].selectedAB; } } else { editCard.selectedAB = kPersonalAddressbookURI; | else if (directory.operations & directory.opWrite) gEditCard.selectedAB = window.arguments[0].selectedAB; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
editCard.card.primaryEmail = window.arguments[0].primaryEmail; | gEditCard.card.primaryEmail = window.arguments[0].primaryEmail; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
editCard.card.displayName = window.arguments[0].displayName; | gEditCard.card.displayName = window.arguments[0].displayName; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
if (editCard.card.displayName.length) editCard.generateDisplayName = false; | if (gEditCard.card.displayName.length) gEditCard.generateDisplayName = false; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
editCard.card.aimScreenName = window.arguments[0].aimScreenName; | gEditCard.card.aimScreenName = window.arguments[0].aimScreenName; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
editCard.card = addressbook.escapedVCardToAbCard(window.arguments[0].escapedVCardStr); | gEditCard.card = addressbook.escapedVCardToAbCard(window.arguments[0].escapedVCardStr); | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
editCard.titleProperty = window.arguments[0].titleProperty; | gEditCard.titleProperty = window.arguments[0].titleProperty; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
abPopup.value = editCard.selectedAB || kPersonalAddressbookURI; | abPopup.value = gEditCard.selectedAB || kPersonalAddressbookURI; | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
SetCardDialogTitle(editCard.card.displayName); | SetCardDialogTitle(gEditCard.card.displayName); | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
GetCardValues(editCard.card, document); | GetCardValues(gEditCard.card, document); | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
var focus; if (editCard.displayLastNameFirst) focus = document.getElementById('LastName'); else focus = document.getElementById('FirstName'); | var focus = document.getElementById(gEditCard.displayLastNameFirst ? 'LastName' : 'FirstName'); | function OnLoadNewCard(){ InitEditCard(); var cardproperty; // if one is passed in, use it try { cardproperty = window.arguments[0].QueryInterface(Components.interfaces.nsIAbCard); } catch (ex) { cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interface... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.