rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var ignore1 = new Object; var ignore2 = new Object; var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 ); if ( tmpFile.isExecutable() ) { this.mLauncher.saveToDisk( null, false ); this.mDialog.close(); return; } | initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ... | |
var prompt = this.dialogElement( "prompt" ); | initDialog : function() { // Check if file is executable (in which case, we will go straight to // "save to disk"). var ignore1 = new Object; var ignore2 = new Object; var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 ); if ( tmpFile.isExecutable() ) { ... | |
alignpopup = document.getElementById("image.alignType"); | alignpopup = document.getElementById("image.alignType"); /********************* removed, some things are better said without words ****************** | function initDialog() { // Get a single selected anchor element imageElement = editorShell.GetSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; } else { insertNew = true; // We don't have an element selected,... |
if (gBackgroundImage.match( /url\((.*)\)/ )) | if (/url\((.*)\)/.test( gBackgroundImage )) | function InitDialog(){ // Get image from document gBackgroundImage = GetHTMLOrCSSStyleValue(globalElement, backgroundStr, cssBackgroundImageStr); if (gBackgroundImage.match( /url\((.*)\)/ )) gBackgroundImage = RegExp.$1; gDialog.BackgroundImageInput.value = gBackgroundImage; if (gBackgroundImage) gDialog.Col... |
dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement, "width", "widthUnitsSelect"); dialog.heightInput.value = InitPixelOrPercentCombobox(globalElement, "height", "heightUnitsSelect"); if ( dialog.widthInput.value.length && dialog.heightInput.value.length ) dialog.customsizeRadio.checked = true; else ... | if ( SeeMore ) { dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement, "width", "widthUnitsSelect"); dialog.heightInput.value = InitPixelOrPercentCombobox(globalElement, "height", "heightUnitsSelect"); if ( dialog.widthInput.value.length && dialog.heightInput.value.length ) { dialog.isCustomSize = tr... | 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; // setup the height and width widgets dialog.widthInput.value = InitPixe... |
var align = globalElement.getAttribute("align"); if (align) { align.toLowerCase(); dump("Image Align exists = "+align+"\n"); | var align = globalElement.getAttribute("align"); if (align) { align = align.toLowerCase(); } switch ( align ) { case "top": dialog.alignTypeSelect.selectedIndex = 0; break; case "center": dialog.alignTypeSelect.selectedIndex = 1; break; case "left": dialog.alignTypeSelect.selectedIndex = 3; break; case "right": dialog... | 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; // setup the height and width widgets dialog.widthInput.value = InitPixe... |
dump("Image Align="+align+"\n"); switch ( align ) { case "top": dialog.alignTypeSelect.selectedIndex = 0; break; case "center": dialog.alignTypeSelect.selectedIndex = 1; break; case "left": dialog.alignTypeSelect.selectedIndex = 3; break; case "right": dialog.alignTypeSelect.selectedIndex = 4; break; default: dialog.al... | 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; // setup the height and width widgets dialog.widthInput.value = InitPixe... | |
dialog.fontsGroup = document.getElementById("fontsGroup"); dialog.downloadFonts = document.getElementById("downloadFonts"); | function initDialog(){ dialog = new Object; dialog.paperList = document.getElementById("paperList"); dialog.paperGroup = document.getElementById("paperGroup"); dialog.plexList = document.getElementById("plexList"); dialog.plexGroup = document.getElementById("plexGroup"); dialog.cmdLabe... | |
srcInput = window.opener.document.getElementById("srcInput"); widthInput = window.opener.document.getElementById("widthInput"); heightInput = window.opener.document.getElementById("heightInput"); borderInput = window.opener.document.getElementById("border"); | var srcInput = window.opener.document.getElementById("srcInput"); var widthInput = window.opener.document.getElementById("widthInput"); var heightInput = window.opener.document.getElementById("heightInput"); | function initDialog(){ //Get image element from parent imageElement = window.arguments[0]; if (!imageElement) //If not an image close window window.close(); //Get image map from parent imageMap = window.arguments[1]; if (!imageMap) //If no image map close window window.close(); //find parent inputs srcInp... |
edDoc = new String(editorShell.editorDocument.location); imgDoc = new String(srcInput.value); | var edDoc = new String(editorShell.editorDocument.location); var imgDoc = new String(srcInput.value); | function initDialog(){ //Get image element from parent imageElement = window.arguments[0]; if (!imageElement) //If not an image close window window.close(); //Get image map from parent imageMap = window.arguments[1]; if (!imageMap) //If no image map close window window.close(); //find parent inputs srcInp... |
len = imgDoc.length; for (i=0; i<len; i++){ | var len = imgDoc.length; for (var i=0; i<len; i++){ | function initDialog(){ //Get image element from parent imageElement = window.arguments[0]; if (!imageElement) //If not an image close window window.close(); //Get image map from parent imageMap = window.arguments[1]; if (!imageMap) //If no image map close window window.close(); //find parent inputs srcInp... |
if (ListElement) ListType = ListElement.nodeName.toLowerCase(); | if (gListElement) gListType = gListElement.nodeName.toLowerCase(); | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... |
ListType = ""; | gListType = ""; | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... |
if (type) type = type.toLowerCase(); | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... | |
if (ListType == "ul") | if (gListType == "ul") | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... |
else if (ListType == "ol") | else if (gListType == "ol") | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... |
gDialog.StartingNumberInput.value = globalElement.getAttribute("start"); | gNumberStyleIndex = index; | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... |
originalBulletStyleType = type; | gDialog.StartingNumberInput.value = ConvertStartAttrToUserString(globalElement.getAttribute("start"), index); gOriginalBulletStyleType = type; | function InitDialog(){ // Note that if mixed, we we pay attention // only to the anchor node's list type // (i.e., don't confuse user with "mixed" designation) if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = ""; BuildBulletStyleList(); gDialog.StartingNumberInput.value ... |
else smallIconsCheckbox.checked = gToolboxIconSize == "small"; | function initDialog(){ var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; gToolboxIconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") smallIconsCheckbox.disabled = true; else smallIconsChec... | |
dialog.bundle = document.getElementById("findBundle"); | function initDialog() { // Create dialog object and initialize. dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap ... | |
case "left": | case "right": | 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... |
case "right": | case "left": | 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... |
dialog.descText = document.getElementById("descText"); | function initDialog(){ dialog = new Object; dialog.propertiesButton = document.getElementById("properties"); dialog.destGroup = document.getElementById("destGroup"); dialog.fileRadio = document.getElementById("fileRadio"); dialog.printerRadio = document.getElementById("printerRadio"); dialog.printr... | |
height = StripPxUnit(height); | if (/px/.test(height)) { height = RegExp.leftContext; } | function InitDialog(){ // Just to be confusing, "size" is used instead of height because it does // not accept % values, only pixels var height = GetHTMLOrCSSStyleValue(globalElement, "size", "height") height = StripPxUnit(height); if(!height) { height = 2; //Default value } // We will use "height" here and i... |
return; } | function initDialog(){ //Get image element from parent imageElement = window.arguments[0]; if (!imageElement) //If not an image close window window.close(); //Get image map from parent imageMap = window.arguments[1]; if (!imageMap) //If no image map close window window.close(); //find parent inputs var sr... | |
dump("dialog.contentType="+dialog.contentType+"\n"); | function initDialog() { // Create dialog object and initialize. dialog = new Object; dialog.contentType = document.getElementById("dialog.contentType");dump("dialog.contentType="+dialog.contentType+"\n"); dialog.more = document.getElementById("dialog.more"); dialog.pick = document.getElemen... | |
var prefs = Components.classes["component: | var prefs = Components.classes["@mozilla.org/preferences;1"]; | 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... |
InitPhoneticFields(); | function InitEditCard(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; editCard.prefs = gPrefs; // get specific prefs that editCard will need try { editCard.displayLastNameFirst = gPrefs.getBoo... | |
gEditCard = new Object; | gEditCard = new Object(); | function InitEditCard(){ InitPhoneticFields(); InitCommonJS(); // Create gEditCard object that contains global variables for the current js // file. gEditCard = new Object; gEditCard.prefs = gPrefs; // get specific prefs that gEditCard will need try { var displayLastNameFirst = gPrefs.getComplexValu... |
expl.value = this.getString( "explanation.saveToDisk" ); | text = this.getString( "explanation.saveToDisk" ); | initExplanation: function() { var expl = this.dialogElement( "explanation" ); if ( this.mLauncher.MIMEInfo.preferredAction == Components.interfaces.nsIMIMEInfo.saveToDisk ) { expl.value = this.getString( "explanation.saveToDisk" ); } else { // Default is to "open with syst... |
var appDesc = this.getString( "explanation.defaultApp" ); | text = this.getString( "explanation.defaultApp" ); | initExplanation: function() { var expl = this.dialogElement( "explanation" ); if ( this.mLauncher.MIMEInfo.preferredAction == Components.interfaces.nsIMIMEInfo.saveToDisk ) { expl.value = this.getString( "explanation.saveToDisk" ); } else { // Default is to "open with syst... |
appDesc = this.mLauncher.MIMEInfo.applicationDescription; | var appDesc = this.mLauncher.MIMEInfo.applicationDescription; | initExplanation: function() { var expl = this.dialogElement( "explanation" ); if ( this.mLauncher.MIMEInfo.preferredAction == Components.interfaces.nsIMIMEInfo.saveToDisk ) { expl.value = this.getString( "explanation.saveToDisk" ); } else { // Default is to "open with syst... |
expl.value= this.replaceInsert( this.getString( "explanation.openUsing" ), 1, appDesc ); | text = this.replaceInsert( this.getString( "explanation.openUsing" ), 1, appDesc ); | initExplanation: function() { var expl = this.dialogElement( "explanation" ); if ( this.mLauncher.MIMEInfo.preferredAction == Components.interfaces.nsIMIMEInfo.saveToDisk ) { expl.value = this.getString( "explanation.saveToDisk" ); } else { // Default is to "open with syst... |
expl.value = this.replaceInsert( this.getString( "explanation.openUsing" ), 1, app.unicodePath ); | text = this.replaceInsert( this.getString( "explanation.openUsing" ), 1, app.unicodePath ); | initExplanation: function() { var expl = this.dialogElement( "explanation" ); if ( this.mLauncher.MIMEInfo.preferredAction == Components.interfaces.nsIMIMEInfo.saveToDisk ) { expl.value = this.getString( "explanation.saveToDisk" ); } else { // Default is to "open with syst... |
expl.value = text; | initExplanation: function() { var expl = this.dialogElement( "explanation" ); if ( this.mLauncher.MIMEInfo.preferredAction == Components.interfaces.nsIMIMEInfo.saveToDisk ) { expl.value = this.getString( "explanation.saveToDisk" ); } else { // Default is to "open with syst... | |
function initFileInfo(aFI, aURL, aDocument, aContentType) | function initFileInfo(aFI, aURL, aDocument, aContentType, aContentDisposition) | function initFileInfo(aFI, aURL, aDocument, aContentType){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it will // populate ... |
aFI.uri, aDocument); | aFI.uri, aDocument, aContentDisposition); | function initFileInfo(aFI, aURL, aDocument, aContentType){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it will // populate ... |
if (!aFI.fileExt && !aDocument && !aContentType && (aURL.length > 7) && aURL.substring(0,7).toUpperCase() == "HTTP: | if (!aFI.fileExt && !aDocument && !aContentType && (/^http(s?):\/\ | function initFileInfo(aFI, aURL, aDocument, aContentType){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it will // populate ... |
document.getElementById("problem_type").focus(); | function initForm() { var strbundle=document.getElementById("strings"); var reportWizard = document.getElementById('reportWizard'); reportWizard.canRewind = false; document.getElementById('url').value = gURL; // Change next button to "submit report" reportWizard.getButton('next').label = strbundle.getString("subm... | |
reportWizard.getButton('next').label = strbundle.getString("submitReport") + ">"; | reportWizard.getButton('next').label = strbundle.getString("submitReport"); | function initForm() { var strbundle=document.getElementById("strings"); var reportWizard = document.getElementById('reportWizard'); reportWizard.canRewind = false; document.getElementById('url').value = gURL; // Change next button to "submit report" reportWizard.getButton('next').label = strbundle.getString("subm... |
client.inputPopup = null; | 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... | |
new CIRCNetwork ("efnet", [{name: "irc.mcs.net", port: 6667}, {name: "irc.magic.ca", port: 6667}, {name: "irc.freei.net", port: 6667}, {name: "irc.cs.cmu.edu", port: 6667}], | new CIRCNetwork ("efnet", [{name: "irc.mcs.net", port: 6667}, {name: "irc.prison.net", port: 6667}, {name: "irc.freei.net", port: 6667}, {name: "irc.magic.ca", port: 6667}], | 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.mcs.net", port: 6667}, {name: "ir... |
obj.networks["opennet"] = new CIRCNetwork ("opennet", [{name:"irc.openprojects.net", port:6667}, {name: "eu.opirc.nu", port:6667}, {name: "au.opirc.nu", port:6667}, {name: "us.opirc.nu", port:6667}], obj.eventPump); | 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.mcs.net", port: 6667}, {name: "ir... | |
obj.munger.addRule ("you-talking-to-me?", 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.mcs.net", port: 6667}, {name: "ir... | |
/((^|\s)[\<\>]?[\;\=\:\8]\~?[\-\^\v]?[\)\|\(pP\<\>oO0\[\]\/\\](\s|$))/, | /((^|\s)[\<\>]?[\;\=\:]\~?[\-\^\v]?[\)\|\(pP\<\>oO0\[\]\/\\](\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.mcs.net", port: 6667}, {name: "ir... |
obj.munger.addRule ("ear", /(\(\*)/, insertEar); obj.munger.addRule ("rheet", /(rhee+t\!*)/i, insertRheet); obj.munger.addRule ("bold", /(\*[^\*]*\*)/, "bold"); obj.munger.addRule ("italic", /[^sS\<](\/[^\/][^\>]*\/)/, "italic"); obj.munger.addRule ("teletype", /(\|[^|]*\|)/, "teletype"); obj.munger.addRule ("underline... | obj.munger.addRule ("ear", /(?:\s|^)(\(\*)(?:\s|$)/, insertEar); obj.munger.addRule ("rheet", /(?:\s|^)(rhee+t\!*)(?:\s|$)/i, insertRheet); obj.munger.addRule ("bold", /(?:\s|^)(\*[^*,.()]*\*)(?:[\s.,]|$)/, "chatzilla-bold"); obj.munger.addRule ("italic", /(?:\s|^)(\/[^\/,.()]*\/)(?:[\s.,]|$)/, "chatzilla-italic"); ob... | 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.mcs.net", port: 6667}, {name: "ir... |
var cmd = document.getElementById("cmd:toggleAccessibleNodes"); if (cmd) { if (!("@mozilla.org/accessibilityService;1" in Components.classes)) cmd.setAttribute("disabled", "true"); } | 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.setAccessibleNodes(PrefUtils.getPref("inspector.dom.showAccessibleNodes"), false); | initialize: function(aPane) { //this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), false); this.setWhitespaceNodes(PrefUtils.getPref("inspector.dom.showWhitespaceNodes")); this.setFlashSelected(PrefUtils.getPref("... | |
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.mClipboardHelper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper"); | initialize: function() { this.initPrefs(); this.loadViewerRegistry(); this.loadHistory(); this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.toggleBrowser(true, false); this.toggleSearch(true, false); this.setFlash... | |
this.mPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService"); | initialize: function(aTarget) { this.mInitTarget = aTarget; //this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.setBrowser(false, true); //this.setSearch(false, true); this.mClipboardHelper = XPCU.getService(kClipbo... | |
this.mPane = aPane; | this.mPanel = aPane; | initialize: function(aPane) { this.mPane = aPane; aPane.notifyViewerReady(this); }, |
el.addEventListener("PageShow", BrowserPageShowListener, true); | el.addEventListener("pageshow", BrowserPageShowListener, true); | 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... |
var firstTerm = gSearchTermContainer.firstChild; | var firstTerm = gSearchTerms[0]; | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTermContainer.firstChild; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have data="and" or data="or" targetValue = "or"; if (booleanAnd) ... |
for (var i=1; i<gSearchTerms.length; i++) { if (booleanAnd) document.getElementById('boolOp' + i).setAttribute('value', gBooleanAndText); else document.getElementById('boolOp' + i).setAttribute('value', gBooleanOrText); } | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0].searchTerm; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" var targetValue = "or"; if (booleanAnd)... | |
var targetValue = "or"; if (booleanAnd) targetValue = "and"; | var targetValue = booleanAnd ? "and" : "or"; | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0].searchTerm; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" var targetValue = "or"; if (booleanAnd)... |
if (booleanAnd) document.getElementById('boolOp' + i).setAttribute('value', gBooleanAndText); else document.getElementById('boolOp' + i).setAttribute('value', gBooleanOrText); | document.getElementById('boolOp' + i).setAttribute('value', booleanAnd ? gBooleanAndText : gBooleanOrText); | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0].searchTerm; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" var targetValue = "or"; if (booleanAnd)... |
var numTerms = filter.numTerms; | var searchTerms = filter.searchTerms; var numTerms = searchTerms.Count(); | function initializeDialog(filter){ var filterName = document.getElementById("filterName"); filterName.value = filter.filterName; var actionElement = document.getElementById("actionMenu"); actionElement.selectedItem=actionElement.getElementsByAttribute("data", filter.action)[0]; // now test by initial... |
var scope = getScope(filter); | function initializeDialog(filter){ var filterName = document.getElementById("filterName"); filterName.value = filter.filterName; // now test by initializing the psuedo <searchterm> var searchTerm = document.getElementById("searchTerm"); var filterRowContainer = document.getElementById("filterTermList... | |
initializeFilterRow(filter, i); | var filterTermObject = document.getElementById("searchTerm" + i); filterTermObject.searchScope = scope; var searchTerm = filter.searchTerms.QueryElementAt(i, Components.interfaces.nsIMsgSearchTerm); if (searchTerm) filterTermObject.searchTerm = searchTerm; | function initializeDialog(filter){ var filterName = document.getElementById("filterName"); filterName.value = filter.filterName; // now test by initializing the psuedo <searchterm> var searchTerm = document.getElementById("searchTerm"); var filterRowContainer = document.getElementById("filterTermList... |
dump("pre-selecting target folder: " + filter.actionTargetFolderUri + "\n"); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { // there are multiple... | |
if (target.localName == "menuitem") | if (target.localName == "menuitem"){ | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { dump("pre-selecting t... |
var selectedPriority = gActionPriority.getElementsByAttribute("data", filter.actionPriority); | selectedPriority = gActionPriority.getElementsByAttribute("data", filter.actionPriority); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { dump("pre-selecting t... |
var selectedPriority = selectedPriority[0]; | selectedPriority = selectedPriority[0]; | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { dump("pre-selecting t... |
dump("initializing " + searchTerm + "\n"); | function initializeDialog(filter){ var filterName = document.getElementById("filterName"); filterName.value = filter.filterName; setScope(getScope(filter)); // now test by initializing the psuedo <searchterm> var searchTerm = document.getElementById("searchTerm"); dump("initializing " + searchTerm + "... | |
var filterRowContainer = document.getElementById("filterListItem"); | var filterRowContainer = document.getElementById("filterTermList"); | function initializeDialog(filter){ var filterName = document.getElementById("filterName"); filterName.value = filter.filterName; setScope(getScope(filter)); // now test by initializing the psuedo <searchterm> var searchTerm = document.getElementById("searchTerm"); dump("initializing " + searchTerm + "... |
else if (filterAction.type == nsMsgFilterAction.FetchBodyFromPop3Server) gFetchBodyFromServerCheckbox.checked = true; | 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... | |
gFetchBodyFromServerCheckbox = document.getElementById("fetchBodyFromServer"); | function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetElement = document.getElementById("actionTargetFolder"); gActionValueDeck = document.getElementById("actionValueDeck"); gActionPriority = document.getElementById("actionValuePriority"); gActionJun... | |
gReceiptOptionChanged = 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... | |
gHideMenus = 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 (gSearchDateFormat < 1 || gSearchDateFormat > 6) gSearchDateFormat = 3; | function initializeSearchDateFormat(){ if (gSearchDateFormat) return; // get a search date format option and a seprator try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gSearchDateFormat = ... | |
gSearchDateSeparator = pref.getComplexValue("mailnews.search_date_separator", Components.interfaces.nsIPrefLocalizedString); | if (gSearchDateFormat == 0) getLocaleShortDateFormat(); else { if (gSearchDateFormat < 1 || gSearchDateFormat > 6) gSearchDateFormat = 3; gSearchDateSeparator = pref.getComplexValue("mailnews.search_date_separator", Components.interfaces.nsIPrefLocalizedString); } | function initializeSearchDateFormat(){ if (gSearchDateFormat) return; // get a search date format option and a seprator try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gSearchDateFormat = ... |
gSearchTermContainer = document.getElementById("searchterms"); | function initializeSearchWidgets() { gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup"); gSearchRowContainer = document.getElementById("searchTermList"); gSearchTermContainer = document.getElementById("searchterms"); gSearchLessButton = document.getElementById("less"); if (!gSearchLess... | |
var bundle = document.getElementById('bundle_search'); gBooleanOrText = bundle.getString('orSearchText'); gBooleanAndText = bundle.getString('andSearchText'); gBooleanInitialText = bundle.getString('initialSearchText'); | function initializeSearchWidgets() { gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup"); gSearchTermList = document.getElementById("searchTermList"); gSearchLessButton = document.getElementById("less"); if (!gSearchLessButton) dump("I couldn't find less button!");} | |
msgWindow = Components.classes[msgWindowProgID].createInstance(nsIMsgWindow); | msgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow); | function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gThreadTree = document.getElementById("threadTree"); msgWindow = Components.classes[msgWindowProgID].createInstance(nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback; msgWindow.SetDOMWindow(win... |
gResultsTree = document.getElementById("threadTree"); | gThreadTree = document.getElementById("threadTree"); | function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gResultsTree = document.getElementById("threadTree"); msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback;} |
msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow); | msgWindow = Components.classes[msgWindowProgID].createInstance(nsIMsgWindow); | function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gResultsTree = document.getElementById("threadTree"); msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback;} |
msgWindow.SetDOMWindow(window); | function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gResultsTree = document.getElementById("threadTree"); msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback;} | |
var pxIndex = bv.search(/px/); if (pxIndex > 0) | if (/px/.test(bv)) | function InitImage(){ // Set the controls to the image's attributes gDialog.srcInput.value = globalElement.getAttribute("src"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox(); // Force loading of image from its source and show preview image LoadPreviewImage(); var hasAltText = ... |
bv = bv.substr(0, pxIndex); | bv = RegExp.leftContext; | function InitImage(){ // Set the controls to the image's attributes gDialog.srcInput.value = globalElement.getAttribute("src"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox(); // Force loading of image from its source and show preview image LoadPreviewImage(); var hasAltText = ... |
name = document.images[i].name; if (name == 'collapse') { | if (document.images[i].alt == 'switch') { | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
id = switchimg.id.replace("img_","") | id = switchimg.id.replace("img_",""); | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
part = FetchElement("part_"+id) | part = FetchElement("part_"+id); | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
hide = GetCookie(id) | hide = GetCookie(id); | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
switchimg.src = box_img_plus part.style.display = 'none' | switchimg.src = box_img_plus; part.style.display = 'none'; | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
HandCursor(switchimg) Switch(switchimg) | HandCursor(switchimg); Switch(switchimg); | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
else if (name = 'resize') { | else if (document.images[i].name = 'resize') { | function initImg(size) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") boxes[i] = id; part = FetchElement("part_"+id) if(document.cookie && part.style.display != 'none') { ... |
var modified; | initIntro: function() { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this.mLauncher.MIMEInfo.Descript... | |
intro.firstChild.nodeValue = ""; | initIntro: function() { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this.mLauncher.MIMEInfo.Descript... | |
this.mAttachments = Components.classes["@mozilla.org/array;1"]. createInstance(Components.interfaces.nsIArray); | initItemBase: function () { this.mCreationDate = new CalDateTime(); this.mAlarmTime = new CalDateTime(); this.mLastModifiedTime = new CalDateTime(); this.mStampTime = new CalDateTime(); this.mCreationDate.jsDate = new Date(); this.mLastModifiedTime.jsDate = new Date(); ... | |
this.mAttendees = []; | initItemBase: function () { this.mCreationDate = createCalDateTime(); this.mAlarmTime = createCalDateTime(); this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"]. createInstance(Components.interfaces.nsIWritablePropertyBag); this.mRecurrence... | |
ClearMenulist(dialog.LanguageMenulist); | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... | |
var menuStr; | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... | |
menuStr = languageBundle.GetStringFromName(isoStrArray[0].toLowerCase()); | dictList[i][0] = languageBundle.GetStringFromName(isoStrArray[0].toLowerCase()); | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
if (regionBundle && menuStr && isoStrArray.length > 1 && isoStrArray[1]) | if (regionBundle && dictList[i][0] && isoStrArray.length > 1 && isoStrArray[1]) | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
menuStr = menuStr + "/" + menuStr2; | dictList[i][0] = dictList[i][0] + "/" + menuStr2; | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
if (!menuStr) menuStr = dictList[i]; | if (!dictList[i][0]) dictList[i][0] = dictList[i][1]; | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
menuStr = dictList[i]; | dictList[i][0] = dictList[i][1]; | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
if (curLang && dictList[i] == curLang) defaultIndex = i; AppendLabelAndValueToMenulist(dialog.LanguageMenulist, menuStr, dictList[i]); | for (var i = 0; i < dictList.length; i++) { AppendLabelAndValueToMenulist(dialog.LanguageMenulist, dictList[i][0], dictList[i][1]); if (curLang && dictList[i][1] == curLang) defaultIndex = i+2; | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
var languageBundle; | var languageBundle = document.getElementById("languageBundle"); | function InitLanguageMenu(curLang){ 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; // Load the string ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.