rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
gDialog.textareaWrap.value = globalElement.getAttribute("wrap"); | gDialog.textareaWrap.value = GetHTMLOrCSSStyleValue(globalElement, "wrap", "white-space"); | function InitDialog(){ gDialog.textareaName.value = globalElement.getAttribute("name"); gDialog.textareaRows.value = globalElement.getAttribute("rows"); gDialog.textareaCols.value = globalElement.getAttribute("cols"); gDialog.textareaWrap.value = globalElement.getAttribute("wrap"); gDialog.textareaReadOnly.checked... |
gDialog.textareaValue.value = globalElement.value; | function InitDialog(){ gDialog.textareaName.value = globalElement.getAttribute("name"); gDialog.textareaRows.value = globalElement.getAttribute("rows"); gDialog.textareaCols.value = globalElement.getAttribute("cols"); gDialog.textareaWrap.value = globalElement.getAttribute("wrap"); gDialog.textareaReadOnly.checked... | |
case "background": InitBackgroundTabPanel(); break; case "box": InitBoxTabPanel(); break; case "aural": InitAuralTabPanel(); break; | function InitDialog(){ switch (gPanel) { case "border": InitBorderTabPanel(); break; case "text": InitTextTabPanel(); break; default: break; }} | |
if ( SeeMore ) | function InitDialog(){ // Set the controls to the image's attributes var str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // Check for image map if ( SeeMore ) { // setup the height and... | |
var imgClass; var textID; | function InitDialog(){ // Set the controls to the image's attributes var str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // Check for image map if ( SeeMore ) { // setup the height and... | |
doDimensionEnabling(); | function InitDialog(){ // Set the controls to the image's attributes var str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // Check for image map if ( SeeMore ) { // setup the height and... | |
if (TableCaptionElement.vAlign == "bottom") | if (GetHTMLOrCSSStyleValue(TableCaptionElement, "align", "caption-side") == "bottom") | function InitDialog(){// turn on Button3 to be "apply" var applyButton = document.getElementById("Button3"); if (applyButton) { applyButton.label = GetString("Apply"); applyButton.removeAttribute("collapsed"); } // Get Table attributes gDialog.TableRowsInput.value = rowCount; gDialog.TableColumnsInput.va... |
if ( dialog.widthInput.value.length && dialog.heightInput.value.length ) | if ( dialog.widthInput.value.length && dialog.heightInput.value.length && dialog.widthInput.value != "0" && dialog.heightInput.value != "0") | function InitDialog(){ // Set the controls to the image's attributes str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; if ( SeeMore ) { // setup the height and width widgets dialog.widthI... |
dump("custom size is: "+dialog.isCustomSize+"\n"); | function InitDialog(){ // Set the controls to the image's attributes str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; if ( SeeMore ) { // setup the height and width widgets dialog.widthI... | |
if (customTextColor || customLinkColor || customVisitedColor || customActiveColor || customBackgroundColor) | var haveCustomColor = customTextColor || customLinkColor || customVisitedColor || customActiveColor || customBackgroundColor; if (!customTextColor) customTextColor = defaultTextColor; if (!customLinkColor) customLinkColor = defaultLinkColor; if (!customActiveColor) customActiveColor = defaultActive... | function InitDialog(){ // Get image from document backgroundImage = globalElement.getAttribute(backgroundStr); if (backgroundImage.length > 0) { dialog.BackgroundImageInput.value = backgroundImage; dialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");"); } customTextColor = gl... |
if (!customTextColor) customTextColor = defaultTextColor; if (!customLinkColor) customLinkColor = defaultLinkColor; if (!customActiveColor) customActiveColor = defaultActiveColor; if (!customVisitedColor) customVisitedColor = defaultVisitedColor; if (!customBackgroundColor) customBackgroundColor = defaultBackgroundColo... | function InitDialog(){ // Get image from document backgroundImage = globalElement.getAttribute(backgroundStr); if (backgroundImage.length > 0) { dialog.BackgroundImageInput.value = backgroundImage; dialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");"); } customTextColor = gl... | |
window.sizeToContent(); | function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of select combobox list dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement,"width","pixelOrPercentSelect"); dialog.borderInput.value = glob... | |
var applyButton = document.documentElement.getButton("extra1"); if (applyButton) { applyButton.label = GetString("Apply"); applyButton.setAttribute("accesskey", GetString("ApplyAccessKey")); } | function InitDialog(){// turn on extra1 to be "apply" var applyButton = document.documentElement.getButton("extra1"); if (applyButton) { applyButton.label = GetString("Apply"); applyButton.setAttribute("accesskey", GetString("ApplyAccessKey")); } // Get Table attributes gDialog.TableRowsInput.value = gRow... | |
dialog.Src.value = imageElement.getAttribute("src"); dialog.AltText.value = imageElement.getAttribute("alt"); | dialog.srcInput.value = imageElement.getAttribute("src"); dialog.altTextInput.value = imageElement.getAttribute("alt"); | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { dump("Found existing image\n"); // We found an element and don't need to insert one insertNew = false; // Set the controls to the image's attributes dialog.Src.value ... |
window.close(); | function initDialog() { // Get a single selected anchor element imageElement = appCore.getSelectedElement(tagName); if (imageElement) { dump("Found existing image\n"); // We found an element and don't need to insert one insertNew = false; // Set the controls to the image's attributes dialog.Src.value ... | |
toolkitCore.CloseWindow(window); | window.close(); | function initDialog() { // Get a single selected anchor element anchorElement = appCore.getSelectedElement(tagName); selection = appCore.editorSelection; if (selection) { dump("There is a selection: collapsed = "+selection.isCollapsed+"\n"); } else { dump("Failed to get selection\n"); } if (anchorElement) ... |
dump("NO SIZE FOUND FOR HLINE"); | function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height; // Get the width attribute... | |
if (align == "center") { dialog.centerAlign.checked = true; } else if (align == "right") { dialog.rightAlign.checked = true; } else { dialog.leftAlign.checked = true; } | dialog.centerAlign.checked = (align == "center" || !align); dialog.rightAlign.checked = (align == "right"); dialog.leftAlign.checked = (align == "left"); | function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height; // Get the width attribute... |
dump("Done with INIT\n"); | function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height; // Get the width attribute... | |
dump("custom size is: "+dialog.isCustomSize+"\n"); | function InitDialog(){ // Set the controls to the image's attributes str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // Check for image map if ( SeeMore ) { // setup the height and wid... | |
gDialog.legendAlign.value = globalElement.getAttribute("align"); | gDialog.legendAlign.value = GetHTMLOrCSSStyleValue(globalElement, "align", "caption-side"); | function InitDialog(){ gDialog.legendAlign.value = globalElement.getAttribute("align");} |
document.getElementById('searchOnline').checked = dbFolderInfo.getBooleanProperty("searchOnline", false); | function InitDialogWithVirtualFolder(aVirtualFolderURI){ // when editing an existing folder, hide the folder picker that stores the parent location of the folder document.getElementById("chooseFolderLocationRow").collapsed = true; var folderNameField = document.getElementById("name"); folderNameField.disabled = tru... | |
editCard.newCardTitlePrefix = Bundle.GetStringFromName("newCardTitlePrefix") + " "; editCard.editCardTitlePrefix = Bundle.GetStringFromName("editCardTitlePrefix") + " "; | function InitEditCard(){ // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["component://netscape/preferences"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Compo... | |
editCard.displayLastNameFirst = prefs.GetIntPref("mail.addr_book.displayName.lastnamefirst"); | editCard.displayLastNameFirst = prefs.GetBoolPref("mail.addr_book.displayName.lastnamefirst"); editCard.generateDisplayName = prefs.GetBoolPref("mail.addr_book.displayName.autoGeneration"); editCard.lastFirstSeparator = ", "; editCard.firstLastSeparator = " "; editCard.newCardTitlePrefix = "New Card for "; editCard.edi... | function InitEditCard(){ // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["component://netscape/preferences"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Compo... |
dump("failed to get the mail.addr_book.displayName.lastnamefirst pref\n"); } try { editCard.generateDisplayName = prefs.GetBoolPref("mail.addr_book.displayName.autoGeneration"); } catch (ex) { dump("failed to get the mail.addr_book.displayName.autoGeneration pref\n"); | dump("failed to get pref\n"); | function InitEditCard(){ // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["component://netscape/preferences"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Compo... |
var prefs = Components.classes["@mozilla.org/preferences-service;1"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Components.interfaces.nsIPrefBranch); editCard.prefs = prefs; } } | editCard.prefs = gPrefs; | function InitEditCard(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["@mozilla.org/preferences-service;1"]; if ( prefs ) { pre... |
if ( prefs ) { try { editCard.displayLastNameFirst = prefs.getBoolPref("mail.addr_book.displayName.lastnamefirst"); editCard.generateDisplayName = prefs.getBoolPref("mail.addr_book.displayName.autoGeneration"); editCard.lastFirstSeparator = ", "; editCard.firstLastSeparator = " "; } catch (ex) { dump("failed to get pre... | try { editCard.displayLastNameFirst = gPrefs.getBoolPref("mail.addr_book.displayName.lastnamefirst"); editCard.generateDisplayName = gPrefs.getBoolPref("mail.addr_book.displayName.autoGeneration"); } catch (ex) { dump("ex: failed to get pref" + ex + "\n"); | function InitEditCard(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["@mozilla.org/preferences-service;1"]; if ( prefs ) { pre... |
InlineSpellChecker.checkDocument(window.content.document); | function InitEditor(editor){ gMsgCompose.initEditor(editor, window.content); try { InlineSpellChecker.Init(editor, sPrefs.getBoolPref("mail.spellcheck.inline")); // Following line works round bug 292520, look at removing after that is fixed InlineSpellChecker.checkDocument(window.content.document); } catch ... | |
popup.addEventListener("popupshowing", initEditorContextMenuItems, false); | if (popup) popup.addEventListener("popupshowing", initEditorContextMenuItems, false); | function initEditorContextMenuListener(aEvent){ var popup = document.getElementById("contentAreaContextMenu"); popup.addEventListener("popupshowing", initEditorContextMenuItems, false);} |
function initFolderDisplay(fieldname, divname) { | function initFolderDisplay(fieldname, pickerID) { | function initFolderDisplay(fieldname, divname) { var formElement = document.getElementById(fieldname); var folder = getFolder(formElement.value); var verboseName = ""; if (folder) verboseName = folder.prettyName; setDivText(divname, verboseName);} |
var folder = getFolder(formElement.value); var verboseName = ""; if (folder) verboseName = folder.prettyName; setDivText(divname, verboseName); | var uri = formElement.value; SetTitleButton(uri,pickerID); | function initFolderDisplay(fieldname, divname) { var formElement = document.getElementById(fieldname); var folder = getFolder(formElement.value); var verboseName = ""; if (folder) verboseName = folder.prettyName; setDivText(divname, verboseName);} |
initFromEvent: function(event) | initFromEvent: function(rangeParent, rangeOffset) | initFromEvent: function(event) { this.mOverMisspelling = false; this.mEvent = event; if (! this.mInlineSpellChecker || ! (event instanceof UIEvent)) return; var selcon = this.mEditor.selectionController; var spellsel = selcon.getSelection(selcon.SELECTION_SPELLCHECK); if (spellsel.rangeCount =... |
this.mEvent = event; | initFromEvent: function(event) { this.mOverMisspelling = false; this.mEvent = event; if (! this.mInlineSpellChecker || ! (event instanceof UIEvent)) return; var selcon = this.mEditor.selectionController; var spellsel = selcon.getSelection(selcon.SELECTION_SPELLCHECK); if (spellsel.rangeCount =... | |
if (! this.mInlineSpellChecker || ! (event instanceof UIEvent)) | if (! this.mInlineSpellChecker) | initFromEvent: function(event) { this.mOverMisspelling = false; this.mEvent = event; if (! this.mInlineSpellChecker || ! (event instanceof UIEvent)) return; var selcon = this.mEditor.selectionController; var spellsel = selcon.getSelection(selcon.SELECTION_SPELLCHECK); if (spellsel.rangeCount =... |
var range = this.mInlineSpellChecker.getMispelledWord(event.rangeParent, event.rangeOffset); | var range = this.mInlineSpellChecker.getMispelledWord(rangeParent, rangeOffset); | initFromEvent: function(event) { this.mOverMisspelling = false; this.mEvent = event; if (! this.mInlineSpellChecker || ! (event instanceof UIEvent)) return; var selcon = this.mEditor.selectionController; var spellsel = selcon.getSelection(selcon.SELECTION_SPELLCHECK); if (spellsel.rangeCount =... |
this.mWordNode = event.rangeParent; this.mWordOffset = event.rangeOffset; | this.mWordNode = rangeParent; this.mWordOffset = rangeOffset; | initFromEvent: function(event) { this.mOverMisspelling = false; this.mEvent = event; if (! this.mInlineSpellChecker || ! (event instanceof UIEvent)) return; var selcon = this.mEditor.selectionController; var spellsel = selcon.getSelection(selcon.SELECTION_SPELLCHECK); if (spellsel.rangeCount =... |
doCommandWithParams("cmd_clipboardDragDropHook", {addhook: CopyPasteHandler}); | function initHandlers(){ var node; node = document.getElementById("input"); node.addEventListener("keypress", onInputKeyPress, false); node = document.getElementById("multiline-input"); node.addEventListener("keypress", onMultilineInputKeyPress, false); node.active = false; node = document.getEleme... | |
node = document.getElementById("security-button"); node.addEventListener("dblclick", onSecurityIconDblClick, false); | function initHandlers(){ var node; node = document.getElementById("input"); node.addEventListener("keypress", onInputKeyPress, false); node = document.getElementById("multiline-input"); node.addEventListener("keypress", onMultilineInputKeyPress, false); node.active = false; window.onkeypress = onWi... | |
obj.munger.addRule ("im-stalking-you", matchMyNick, "" ); | function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (200); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.magic.ca", port: 6667}, {name: "irc.freei.ne... | |
("link", /((http|mailto|ftp|irc)\:\/\/[^\)\s]*|www\.\S+\.\S[^\)\s]*)/, | ("link", /((\w+)\:\/\/[^\<\>\(\)\'\"\s]*|www\.[^\<\>\(\)\'\"\s]+\.[^\<\>\(\)\'\"\s]*)/, | function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (200); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.magic.ca", port: 6667}, {name: "irc.freei.ne... |
this.mInspectDocumentMenu = document.getElementById("listDocuments-popup"); document.getElementById("cmdToggleChrome").setAttribute("checked", PrefUtils.getPref("inspector.showChrome")); | initialize: function(aTarget, aURI) { this.mInitTarget = aTarget; //this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("pageshow", BrowserPageShowListener, true); this.setBrowser(false, true); //this.setSearch(false, true); this.mClipboardHelper = XPCU.getS... | |
this.initSearch(); | initialize: function(aTarget) { this.mInitTarget = aTarget; this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.toggleBrowser(true, false); this.toggleSearch(true, false); this.mClipboardHelper = XPCU.getService(kClip... | |
this.toggleSearch(true, false); | initialize: function(aTarget) { this.mInitTarget = aTarget; this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.toggleBrowser(true, false); this.toggleSearch(true, false); this.mClipboardHelper = XPCU.getService(kClip... | |
this.initColumns(); | initialize: function(aPane) { this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this.toggleAnonContent(true, PrefUtils.getPref("inspector.dom.showAnon")); this.setFlashSelected(PrefUtils.getPref("inspector.blink.on")); }, | |
this.toggleAnonContent(true, PrefUtils.getPref("inspector.dom.showAnon")); | this._toggleAnonContent(true, PrefUtils.getPref("inspector.dom.showAnon")); | initialize: function(aPane) { this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this.toggleAnonContent(true, PrefUtils.getPref("inspector.dom.showAnon")); this.setFlashSelected(PrefUtils.getPref("inspector.blink.on")); }, |
SetFolderPicker(target, gActionTargetElement.id); | SetFolderPicker(target, gActionTargetMoveElement.id); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... |
var selectedPriority = gActionPriority.getElementsByAttribute("value", filterAction.priority); | var selectedPriority = gActionPriority.getElementsByAttribute("value", filterAction.priority).item(0); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... |
if (selectedPriority && selectedPriority.length > 0) | if (selectedPriority) | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... |
selectedPriority = selectedPriority[0]; | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... | |
var selectedLabel = gActionLabel.getElementsByAttribute("value", filterAction.label); if (selectedLabel && selectedLabel.length > 0) | var selectedLabel = gActionLabel.getElementsByAttribute("value", filterAction.label).item(0); if (selectedLabel) | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... |
selectedLabel = selectedLabel[0]; | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... | |
var selectedJunkScore = gActionJunkScore.getElementsByAttribute("value", filterAction.junkScore); | var selectedJunkScore = gActionJunkScore.getElementsByAttribute("value", filterAction.junkScore).item(0); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... |
if (selectedJunkScore && selectedJunkScore.length > 0) | if (selectedJunkScore) | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... |
selectedJunkScore = selectedJunkScore[0]; | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... | |
gActionTargetElement = document.getElementById("actionTargetFolder"); | gActionTargetMoveElement = document.getElementById("actionTargetFolder"); | function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetElement = document.getElementById("actionTargetFolder"); gActionTargetCopyElement = document.getElementById("actionTargetFolder2"); gActionValueDeck = document.getElementById("actionValueDeck"); g... |
gCharsetConvertManager = Components.classes['@mozilla.org/charset-converter-manager;1'].getService(Components.interfaces.nsICharsetConverterManager2); | gCharsetConvertManager = Components.classes['@mozilla.org/charset-converter-manager;1'].getService(Components.interfaces.nsICharsetConverterManager); | function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen... |
gLastElementToHaveFocus = null; gSuppressCommandUpdating = false; | gLastWindowToHaveFocus = null; | function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen... |
gAttachVCardOptionChanged = false; | function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen... | |
if (gShowOrganization) { var organizationEntry = {name:"organization", outputFunction:updateHeaderValue}; gExpandedHeaderView[organizationEntry.name] = new createHeaderEntry('expanded', organizationEntry); } | function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table if (!gCollapsedHeaderView.length) // if we haven't already initialized the collapsed view... for (var index ... | |
dump("ispName = " + formElement.id + "\n"); | _dd("ispName = " + formElement.id + "\n"); | function initializeIspData(){ if (!document.getElementById("mailaccount").checked) { parent.SetCurrentAccountData(null); return; } var ispName; // now reflect the datasource up into the parent var controls = document.getElementsByAttribute("wsm_persist", "true"); for (var i=0; i<... |
dump("initializing ISP data for " + ispName + "\n"); | _dd("initializing ISP data for " + ispName + "\n"); | function initializeIspData(){ if (!document.getElementById("mailaccount").checked) { parent.SetCurrentAccountData(null); return; } var ispName; // now reflect the datasource up into the parent var controls = document.getElementsByAttribute("wsm_persist", "true"); for (var i=0; i<... |
if (win.onInit) win.onInit(); | function initializePage(win, hash) { var inputs= win.document.getElementsByTagName("FORM")[0].elements; for (var i=0; i<inputs.length; i++) { restoreValue(hash, inputs[i]); }} | |
getDocumentElements(); | function initializeSearchBar(){ createQuickSearchView(); if (!gSearchSession) { getDocumentElements(); var searchSessionContractID = "@mozilla.org/messenger/searchSession;1"; gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession); ini... | |
if (gTotalSearchTerms == 1) document.getElementById("less0").setAttribute("disabled", "true"); | updateRemoveRowButton(); | function initializeSearchRows(scope, searchTerms){ for (i = 0; i < searchTerms.Count(); i++) { var searchTerm = searchTerms.QueryElementAt(i, nsIMsgSearchTerm); createSearchRow(i, scope, searchTerm); gTotalSearchTerms++; } initializeBooleanWidgets(); if (gTotalSearchTerms == 1) d... |
gButton = document.getElementById("search-button"); | function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gThreadTree = document.getElementById("threadTree"); msgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback; msgWindow.SetDOMWindow... | |
var index = parseInt(id.slice(10)); initializeTermFromIndex(index) | initializeTermFromIndex(getSearchRowIndexForElement(document.getElementById(id))); | function initializeTermFromId(id){ // id is of the form searchAttr<n> // strlen("searchAttr") == 10 // turn searchAttr<n> -> <n> var index = parseInt(id.slice(10)); initializeTermFromIndex(index)} |
this.addObserver(this.mObserver, calICalendar.ITEM_FILTER_TYPE_ALL); | initICSCalendar: function() { this.initMemoryCalendar(); this.mICSService = Components.classes["@mozilla.org/calendar/ics-service;1"] .getService(Components.interfaces.calIICSService); this.mObserver = new calICSObserver(this); this.addObserver(this.mO... | |
pathString = parentObject.unicodePath; | pathString = parentObject.path; | initIntro: function(url) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this... |
if (fileURL) | if (fileURL.schemeIs("file")) | initIntro: function(url) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this... |
var pathString = this.mSourcePath; | var pathString = url.prePath; | initIntro: function(url, filename) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.description; var modified; if ( this.mForced && desc ) { modified = this.replaceInsert( this.getString( "intro.attachment.label" ), 1, desc ); } ... |
location.setAttribute( "tooltiptext", this.mSourcePath ); | initIntro: function(url, filename) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.description; var modified; if ( this.mForced && desc ) { modified = this.replaceInsert( this.getString( "intro.attachment.label" ), 1, desc ); } ... | |
if (mimeInfo.primaryExtension != "") typeString = mimeInfo.primaryExtension.toUpperCase() + " file"; | var primaryExtension = ""; try { primaryExtension = mimeInfo.primaryExtension; } catch (ex) { } if (primaryExtension != "") typeString = primaryExtension.toUpperCase() + " file"; | initIntro: function(url, filename) { this.dialogElement( "location" ).value = filename; // if mSourcePath is a local file, then let's use the pretty path name instead of an ugly // url... var pathString = this.mSourcePath; try { var fileURL = url.QueryInterface(Co... |
var typeString = mimeInfo.Description; | var typeString = mimeInfo.description; | initIntro: function(url, filename) { this.dialogElement( "location" ).value = filename; // if mSourcePath is a local file, then let's use the pretty path name instead of an ugly // url... var pathString = this.mSourcePath; try { var fileURL = url.QueryInterface(Co... |
this.mAttendees = []; | this.mAttendees = null; | initItemBase: function () { var now = new Date(); this.mProperties = new HashPropertyBag(); this.setProperty("CREATED", NewCalDateTime(now)); this.setProperty("LAST-MODIFIED", NewCalDateTime(now)); this.setProperty("DTSTAMP", NewCalDateTime(now)); this.mAttendees = []; ... |
this.mLastModifiedTime = createCalDateTime(); | initItemBase: function () { this.mCreationDate = createCalDateTime(); this.mAlarmTime = createCalDateTime(); this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"]. createInstance(Components.interfaces.nsIWritablePropertyBag); this.mAttendees ... | |
if (window.editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj) && countObj.value > 1) | var foundElement; if (IsEditingRenderedHTML()) foundElement = window.editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj); if (foundElement && countObj.value > 1) | function InitJoinCellMenuitem(id){ // Change text on the "Join..." item depending if we // are joining selected cells or just cell to right // TODO: What to do about normal selection that crosses // table border? Try to figure out all cells // included in the selection? var menuText; var menuItem =... |
if (langLabel && isoStrArray.length > 2 && isoStrArray[2]) langLabel += " (" + isoStrArray[2] + ")"; | initLanguageMenu: function () { this.mSpellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'].getService(Components.interfaces.mozISpellCheckingEngine); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. this.mSpellChecker.getDictionaryList(o1, o2);... | |
if (langLabel && isoStrArray.length > 2 && isoStrArray[2]) langLabel += " (" + isoStrArray[2] + ")"; | function InitLanguageMenu() { var spellChecker = Components.classes["@mozilla.org/spellchecker/myspell;1"] .getService(Components.interfaces.mozISpellCheckingEngine); var o1 = {}; var o2 = {}; // Get the list of dictionaries from the spellchecker. spellChecker.getDictionaryList(o1, o2... | |
if (langLabel && isoStrArray.length > 2 && isoStrArray[2]) langLabel += " (" + isoStrArray[2] + ")"; | function InitLanguageMenu(aCurLang){ var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { gSpellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var count = o2.value; // If we're not... | |
else if (isoStrArray.length > 1 && isoStrArray[1]) langLabel += ' (' + isoStrArray[1] + ')'; | else if (isoStrArray.length > 1 && isoStrArray[1]) { langLabel += ' (' + isoStrArray[1]; if (isoStrArray.length > 2 && isoStrArray[2]) langLabel += '-' + isoStrArray[2]; langLabel += ')'; } | function InitLanguageMenu(){ var languageMenuList = document.getElementById("languageMenuList"); if (!languageMenuList) return; var spellChecker = Components.classes["@mozilla.org/spellchecker/myspell;1"] .getService(mozISpellCheckingEngine); var o1 = {}; var o2 = {}; // Get the l... |
else if (isoStrArray.length > 1 && isoStrArray[1]) langLabel += ' (' + isoStrArray[1] + ')'; | else if (isoStrArray.length > 1 && isoStrArray[1]) { langLabel += ' (' + isoStrArray[1]; if (isoStrArray.length > 2 && isoStrArray[2]) langLabel += '-' + isoStrArray[2]; langLabel += ')'; } | function InitLanguageMenu(){ var languageMenuList = document.getElementById('languageMenuList'); if (!languageMenuList) return; var spellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'] .getService(mozISpellCheckingEngine); var o1 = {}; var o2 = {}; // Get the l... |
if (langLabel && isoStrArray.length > 2 && isoStrArray[2]) langLabel += " (" + isoStrArray[2] + ")"; | function InitLanguageMenu(aCurLang){ var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { gSpellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var count = o2.value; // If dictionar... | |
document.getElementById("menu_"+IDSuffix).setAttribute("checked", "true"); | if (mixedObj.value) menuItem.setAttribute("checked", "false"); | function InitListMenu(){ var mixedObj = new Object(); var state = editorShell.GetListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = editorShell.GetListItemState(mixedObj); if (state) IDSuffix = state; } document.getElementById("menu_"+IDSuffix).setAttribute("c... |
initMenu : function ( popup, event ) { | initMenu : function ( popup ) { | initMenu : function ( popup, event ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode ); // Initialize (disable/remove) menu items. this.initItems(); }, |
var template = document.getElementById( "context-template" ); var items = template.childNodes; for ( var i = 0; i < items.length; i++ ) { var item = this.cloneNode( items.item(i) ); item.setAttribute( "id", item.getAttribute( "id" ).replace( "template-", "context-" ) ); this.menu.appendChild( item ); } | initMenu : function ( popup, event ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode ); // Populate menu from template. var template = document.getElementById( "context-template" ); var items = template.childNodes; ... | |
var forwardAsMenu = document.getElementById("forwardAsMenu"); if(forwardAsMenu) forwardAsMenu.setAttribute("disabled", !aMessage); var labelMenu = document.getElementById("labelMenu"); if(labelMenu) labelMenu.setAttribute("disabled", !aMessage); var markMenu = document.getElementById("markMenu"); if(markMenu) { var ... | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... | |
var openMenu = document.getElementById("openMessageWindowMenuitem"); if (openMenu) openMenu.setAttribute("disabled", !aMessage); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... | |
if(aMessage) { isNews = IsNewsMessage(aMessage); } | if(aMessage) isNews = IsNewsMessage(aMessage); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
{ replyNewsgroupMenuItem.setAttribute("hidden", isNews ? "" : "true"); } | replyNewsgroupMenuItem.setAttribute("hidden", isNews ? "" : "true"); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
{ replyMenuItem.setAttribute("hidden", !isNews ? "" : "true"); } | replyMenuItem.setAttribute("hidden", !isNews ? "" : "true"); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
{ replySenderMenuItem.setAttribute("hidden", isNews ? "" : "true"); } | replySenderMenuItem.setAttribute("hidden", isNews ? "" : "true"); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
if (threadMenuSeparator) { threadMenuSeparator.setAttribute("hidden", isNews ? "" : "true"); } | if (threadMenuSeparator) threadMenuSeparator.setAttribute("hidden", isNews ? "" : "true"); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
if (killThreadMenuItem) { killThreadMenuItem.setAttribute("hidden", isNews ? "" : "true"); } | if (killThreadMenuItem) killThreadMenuItem.setAttribute("hidden", isNews ? "" : "true"); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
if (watchThreadMenuItem) { watchThreadMenuItem.setAttribute("hidden", isNews ? "" : "true"); } | if (watchThreadMenuItem) watchThreadMenuItem.setAttribute("hidden", isNews ? "" : "true"); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
copyMenu.setAttribute("disabled", !aMessage); | copyMenu.setAttribute("disabled", !aMessage); initMoveToFolderAgainMenu(document.getElementById("moveToFolderAgain")); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
var threadMenuSeparator = document.getElementById("threadItemsSeparator"); if (threadMenuSeparator) { threadMenuSeparator.setAttribute("hidden", isNews ? "" : "true"); } | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... | |
client.messageManager = new MessageManager(); | client.messageManager = new MessageManager(client.entities); client.messageManager.loadBrands(); | function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(); client.defaultBundle = client.messageManager.addBundle(path); client.viewName = client.unicodeName = MSG_CLIENT_NAME; client.responseCodeMap = { "HELLO... |
var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; | var tagArray = tagService.getAllTags({}); var tagCount = tagArray.length; | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries..... |
menuseparator.previousSibling.hidden = !allTags.hasMore(); | menuseparator.previousSibling.hidden = !tagCount; | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries..... |
var index = 0; while (allTags.hasMore()) | for (var i = 0; i < tagCount; ++i) | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries..... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.