rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
aFilePicker.appendFilter(bundle.GetStringFromName("AllFilesFilter"), "*.*"); | aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll); | function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b... |
case "application/xhtml+xml": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.xht; *.xhtml"); aFilePicker.appendFilter(bundle.GetStringFromName("WebPageXHTMLOnlyFilter"), "*.xht; *.xhtml"); if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilters(Component... | function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b... | |
list.push(info.getInfoForParam(i, p).name); | var name; try { name = info.getInfoForParam(i, p).name; } catch(e) { name = MISSING_INTERFACE; } list.push(name); | function appendForwardDeclarations(list, info){ list.push(info.name); if(info.parent) appendForwardDeclarations(list, info.parent); var i, k, m, p; for(i = 0; i < info.methodCount; i++) { m = info.getMethodInfo(i); for(k = 0; k < m.paramCount; k++) { p = m.g... |
head.appendChild(element); | { var position = 0; if (head.hasChildNodes()) position = head.childNodes.length; editorShell.InsertElement(element, head, position); } | function AppendHeadElement(element){ var head = GetHeadElement(); if (head) head.appendChild(element);} |
num_errors++; | function appendMessage(messageObject){ if(messageObject.message == "__CLEAR__") {return;} var c = document.getElementById("consoleTreeChildren"); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("c... | |
if(num_errors>250) { deleteOne(); } | num_errors++; if(num_errors>250) { deleteOne(); } | function appendMessage(messageObject){ if(messageObject.message == "__CLEAR__") {return;} var c = document.getElementById("consoleTreeChildren"); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("c... |
appendOption: function appendOption(child, parent) { var index = itemArray.length; treeBoxObject.invalidateRange(this.lastChild(), index); itemArray.push(new optionObject(child, 1)); treeBoxObject.rowCountChanged(index, 1); selectTreeIndex(index, false); }, | optgroupObject.prototype.appendOption = function appendOption(child, parent) { var index = gDialog.nextChild(parent); treeBoxObject.invalidatePrimaryCell(index - 1); itemArray.splice(index, 0, new optionObject(child, 2)); treeBoxObject.rowCountChanged(index, 1); selectTreeIndex(index, false); }; | appendOption: function appendOption(child, parent) { var index = itemArray.length; // XXX need to repaint the lines, tree won't do this treeBoxObject.invalidateRange(this.lastChild(), index); // append the wrapped object itemArray.push(new optionObject(child, 1)); treeBoxObject.... |
this.listElement.appendChild(popupNode); | this.paperListElement.appendChild(popupNode); | appendPaperNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); for (var i=0;i<aDataObject.length;i++) { var paperObj = aDataObject[i]; var itemNode = document.createElement("menuitem"); var label; try { ... |
menuItem.setAttribute("value", itemString); menuItem.setAttribute("data", url); | menuItem.setAttribute("label", itemString); menuItem.setAttribute("value", url); | function AppendRecentMenuitem(menupopup, title, url, menuIndex){ if (menupopup) { var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { var accessKey; if (menuIndex <= 9) accessKey = String(menuIndex); else ... |
menuItem.setAttribute("accesskey", accessKey); menuItem.setAttribute("oncommand", "EditorOpenUrl(getAttribute('data'))"); | menuItem.setAttribute("accesskey", accessKey); menuItem.setAttribute("oncommand", "EditorOpenUrl(getAttribute('value'))"); | function AppendRecentMenuitem(menupopup, title, url, menuIndex){ if (menupopup) { var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); if (menuItem) { var accessKey; if (menuIndex <= 9) accessKey = String(menuIndex); else ... |
menuItemNode.setAttribute( "value", aString ); | menuItemNode.setAttribute( "label", aString ); | appendString: function ( aString ) { var menuItemNode = document.createElement( "menuitem" ); if( menuItemNode ) { menuItemNode.setAttribute( "value", aString ); this.listElement.firstChild.appendChild( menuItemNode ); } }, |
var itemNode = document.createElement( "menuitem" ); | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { var itemNode = document.createEl... | |
itemNode.setAttribute( "data", faces[i] ); itemNode.setAttribute( "value", bundle.GetStringFromName("nofontsforlang") ); | this.listElement.setAttribute( "data", faces[i] ); this.listElement.setAttribute( "value", bundle.GetStringFromName("nofontsforlang") ); this.listElement.setAttribute( "disabled", "true" ); gNoFontsForThisLang = true; | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { var itemNode = document.createEl... |
popupNode.appendChild( itemNode ); | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { var itemNode = document.createEl... | |
this.listElement.setAttribute( "data", faces[i] ); this.listElement.setAttribute("value", gPrefutilitiesBundle.getString("nofontsforlang")); | this.listElement.setAttribute( "value", faces[i] ); this.listElement.setAttribute( "label", gPrefutilitiesBundle.getString("nofontsforlang") ); | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { if( faces[i] == "" ) ... |
itemNode.setAttribute( "data", faces[i] ); | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { if( faces[i] == "" ) ... | |
itemNode.setAttribute( "label", faces[i] ); | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { if( faces[i] == "" ) ... | |
this.listElement.setAttribute( "value", bundle.GetStringFromName("nofontsforlang") ); | this.listElement.setAttribute("value", gPrefutilitiesBundle.getString("nofontsforlang")); | appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { if( faces[i] == "" ) ... |
dump("**** Append String = "+string+"\n"); | function AppendStringToList(list, string){ dump("**** Append String = "+string+"\n"); // THIS DOESN'T WORK! Result is a XULElement -- namespace problem //optionNode1 = document.createElement("option"); // "Unsanctioned method from Vidur: // createElementWithNamespace("http://... [the HTML4 URL], "option)... | |
optionNode = new Option(string, string); | function AppendStringToList(list, string){ dump("**** Append String = "+string+"\n"); // THIS DOESN'T WORK! Result is a XULElement -- namespace problem //optionNode1 = document.createElement("option"); // "Unsanctioned method from Vidur: // createElementWithNamespace("http://... [the HTML4 URL], "option)... | |
optionNode = new Option(string, string); | function AppendStringToList(list, string){ dump("**** Append String = "+string+"\n"); // THIS DOESN'T WORK! Result is a XULElement -- namespace problem //optionNode1 = document.createElement("option"); // "Unsanctioned method from Vidur: // createElementWithNamespace("http://... [the HTML4 URL], "option)... | |
menuItem.setAttribute("value", string); | menuItem.setAttribute("label", string); | function AppendStringToMenulist(menulist, string){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menupopup"); if (menupop... |
dump("AppendStringToTreelist: string="+string+"\n"); | function AppendStringToTreelist(tree, string){dump("AppendStringToTreelist: string="+string+"\n"); if (tree) { var treecols = tree.firstChild; if (!treecols) { dump("Bad XUL: Must have <treecolgroup> as first child\n"); } var treechildren = treecols.nextSibling; if (!treechildren) { tre... | |
var len = Number(tree.getAttribute("length")); if (!len) len = -1; tree.setAttribute("length",len+1); | tree.setAttribute("length", treechildren.childNodes.length); | function AppendStringToTreelist(tree, string){dump("AppendStringToTreelist: string="+string+"\n"); if (tree) { var treecols = tree.firstChild; if (!treecols) { dump("Bad XUL: Must have <treecolgroup> as first child\n"); } var treechildren = treecols.nextSibling; if (!treechildren) { tre... |
treeeitem.appendChild(treerow); | treeitem.appendChild(treerow); | function AppendStringToTreelist(tree, string){ if (tree) { var treechildren = tree.firstChild; if (!treechildren) { treechildren = document.createElement("treechildren"); if (treechildren) tree.appendChild(treechildren); else {dump("Failed to create <treechildren>\n"); retur... |
return menuItem; | var len = Number(tree.getAttribute("length")); if (!len) len = -1; tree.setAttribute("length",len+1); return treeitem; | function AppendStringToTreelist(tree, string){ if (tree) { var treechildren = tree.firstChild; if (!treechildren) { treechildren = document.createElement("treechildren"); if (treechildren) tree.appendChild(treechildren); else {dump("Failed to create <treechildren>\n"); retur... |
treecell.setAttribute("value", string); | treecell.setAttribute("label", string); | function AppendStringToTreelist(tree, string){ if (tree) { var treechildren = document.getElementById('child'); var treeitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treeitem"); var treerow = document.createElementNS("http://www.mozilla.org/keymaster/ga... |
treecell.setAttribute("value", string); | treecell.setAttribute("label", string); | function AppendStringToTreelist(tree, string){ if (tree) { var treecols = tree.firstChild; if (!treecols) { dump("Bad XUL: Must have <treecolgroup> as first child\n"); } var treechildren = treecols.nextSibling; if (!treechildren) { treechildren = document.createElementNS("http://www.moz... |
menuItem = document.createElementNS("http: | var menuItem = document.createElementNS("http: | function AppendValueAndDataToMenulist(menulist, valueStr, dataStr){ if (menulist) { var menupopup = menulist.firstChild; // May not have any popup yet -- so create one if (!menupopup) { menupopup = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menupopup");... |
if (dialog.CellImageCheckbox.checked) CloneAttribute(destElement, globalCellElement, "background"); | function ApplyAttributesToOneCell(destElement){ if (dialog.CellHeightCheckbox.checked) CloneAttribute(destElement, globalCellElement, "height"); if (dialog.CellWidthCheckbox.checked) CloneAttribute(destElement, globalCellElement, "width"); if (dialog.RowSpanCheckbox.checked && dialog.RowSpanCheckbox.getAttribu... | |
var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService(); appShell = appShell.QueryInterface(Components.interfaces.nsIAppShellService); | var appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"] .getService(Components.interfaces.nsIAppStartup); | function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; var theme = null; try { theme = parent.hPrefWindow.pref.getComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString).data... |
appShell.nativeAppSupport.isServerMode = false; | appStartup.nativeAppSupport.isServerMode = false; | function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; var theme = null; try { theme = parent.hPrefWindow.pref.getComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString).data... |
chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE ); chromeRegistry.refreshSkins(); | if (!chromeRegistry.isSkinSelected(skinName, DEBUG_USE_PROFILE)) { chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE ); chromeRegistry.refreshSkins(); } | function applySkin(){ var tree = document.getElementById( "skinsTree" ); var selectedSkinItem = tree.selectedItems[0]; var skinName = selectedSkinItem.getAttribute( "name" ); chromeRegistry.selectSkin( skinName, DEBUG_USE_PROFILE ); chromeRegistry.refreshSkins();} |
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.Notify(null, "skin-selected", null); | function applySkin(){ var tree = document.getElementById("skinsTree"); var selectedSkinItem = tree.selectedItems[0]; var skinName = selectedSkinItem.getAttribute("name"); // XXX - this sucks and should only be temporary. kPrefSvc.SetUnicharPref("general.skins.selectedSkin", skinName); tree.selectItem(selectedSkin... | |
kPrefSvc.SetUnicharPref("general.skins.selectedSkin", skinName); tree.selectItem(selectedSkinItem); var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.notifyObservers(null, "skin-selected", null); var promptService = Compon... | chromeRegistry.selectSkin(skinName, DEBUG_USE_PROFILE); chromeRegistry.refreshSkins(); | function applySkin(){ var tree = document.getElementById("skinsTree"); var selectedSkinItem = tree.selectedItems[0]; var skinName = selectedSkinItem.getAttribute("name"); // XXX - this sucks and should only be temporary. kPrefSvc.SetUnicharPref("general.skins.selectedSkin", skinName); tree.selectItem(selectedSkin... |
reg = reg.QueryInterface(Components.interfaces.nsIChromeRegistry); | reg = reg.QueryInterface(Components.interfaces.nsIXULChromeRegistry); | function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref... |
.getService(Components.interfaces.nsIChromeRegistry); | .getService(Components.interfaces.nsIXULChromeRegistry); | function applyTheme(themeName){ var name = themeName.getAttribute("name"); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(name... |
var str = Components.classes["@mozilla.org/supports-wstring;1"] .createInstance(Components.interfaces.nsISupportsWString); | var str = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISupportsString); | function applyTheme(themeName){ var id = themeName.getAttribute('id'); var name=id.substring('urn:mozilla.skin.'.length, id.length); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIXULChromeRegistry); var oldTheme = fal... |
Components.interfaces.nsISupportsWString, str); | Components.interfaces.nsISupportsString, str); | function applyTheme(themeName){ var id = themeName.getAttribute('id'); var name=id.substring('urn:mozilla.skin.'.length, id.length); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIXULChromeRegistry); var oldTheme = fal... |
pref.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsWString, str); | pref.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString, str); | function applyTheme(themeName){ var id = themeName.getAttribute('id'); var name=id.substring('urn:mozilla.skin.'.length, id.length); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIXULChromeRegistry); var oldTheme = fal... |
}, | } | ArcLabelsOut: function(aSource) { if (DEBUG) { dump("ArcLabelsOut() called with args: \n\t" + aSource.Value + "\n\n"); } return new ArrayEnumerator(new Array()); }, |
var canShowCreateAccount = ! nsPrefBranch.prefIsLocked("mail.accountmanager.accounts"); SetItemDisplay("CreateAccount", canShowCreateAccount); | function ArrangeAccountCentralItems(server, protocolInfo, msgFolder){ try { /***** Email header and items : Begin *****/ // Read Messages var canGetMessages = protocolInfo.canGetMessages; SetItemDisplay("ReadMessages", canGetMessages); // Compose Messages link var showCo... | |
if (!ary) return -1; | function arrayIndexOf (ary, elem){ for (var i in ary) if (ary[i] == elem) return i; return -1;} | |
top.globals.document.setupPlugin.FlushCache(); alert("This file is saved as " + top.globals.getConfigFolder(self) + fName); | function askIASFileNameAndSave(){ var sName = getGlobal("SiteName"); var save = null; netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); //flush data from currenly open tab into globals if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } /... | |
SetRow( toRow, fromRow.getAttribute( 'field-index'), fromRow.firstChild.firstChild.firstChild.checked, fromRow.firstChild.firstChild.firstChild.getAttribute( "value")); | SetRow( toRow, fromRow.getAttribute( 'field-index'), fromRow.firstChild.firstChild.firstChild.checked, fromRow.firstChild.firstChild.firstChild.getAttribute( "label")); | function AssignRow( toRow, fromRow){ /* SetRow( toRow, fromRow.getAttribute( 'field-index'), fromRow.firstChild.firstChild.firstChild.checked, fromRow.firstChild.childNodes[1].getAttribute( "value")); */ SetRow( toRow, fromRow.getAttribute( 'field-index'), fromRow.firstChild.firstChild.firstChild.checked,... |
methodArgs.splice(0, 3); | methodArgs = methodArgs.slice(3); | asyncCall: function(listener, context, methodName) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Components.Exception('Not i... |
this.xmlhttp = new XMLHttpRequest(); | this.xmlhttp = Components.classes[XMLHTTPREQUEST_CONTRACTID] .createInstance(Components.interfaces.nsIXMLHttpRequest); | asyncCall: function(listener, context, methodName, methodArgs, count) { debug('asyncCall'); // Check for call in progress. if (this._inProgress) throw Components.Exception('Call in progress!'); // Check for the server URL; if (!this._serverUrl) throw Componen... |
dump("AttachFile()\n"); | function AttachFile(){ dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); fp.appe... | |
AddAttachment(currentAttachment, null); | if (!(DuplicateFileCheck(currentAttachment))) AddAttachment(currentAttachment, null); else { dump("###ERROR ADDING DUPLICATE FILE \n"); var errorTitle = Bundle.GetStringFromName("DuplicateFileErrorDlogTitle"); var errorMsg = Bundle.GetStringFromName("DuplicateFileErrorDlogMessage"); if (commonDialogsService) commonDia... | function AttachFile(){ dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); fp.appe... |
if (promptService) promptService.alert(window, errorTitle, errorMsg); | if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); } if (gPromptService) gPromptService.alert(window, errorTitle, errorMsg); | function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, gComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpen); ... |
if (event.target.localName != 'treecell') | if (event.originalTarget.localName == 'treechildren') | function AttachmentBucketClicked(event){ if (event.target.localName != 'treecell') goDoCommand('cmd_attachFile');} |
var target = event.originalTarget; item = target.parentNode.parentNode; | var target = event.originalTarget; var item = target.parentNode.parentNode; | function attachmentTreeClick(event){ // we only care about button 0 (left click) events if (event.button != 0) return; if(event.detail == 2) // double click { var target = event.originalTarget; item = target.parentNode.parentNode; if (item.localName == "treeitem") { var commandStringSuffix = item... |
var attachmentBox = document.getElementById("attachments-box"); attachmentBox.hidden = false; document.getElementById("attachmentbucket-sizer").hidden=false; | function AttachPage(){ if (gPromptService) { var result = {value:"http://"}; if (gPromptService.prompt( window, sComposeMsgsBundle.getString("attachPageDlogTitle"), sComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { va... | |
if (gPromptService) { var result = {value:"http: if (gPromptService.prompt( window, sComposeMsgsBundle.getString("attachPageDlogTitle"), sComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Com... | var result = { attachment: null }; window.openDialog("chrome: if (result.attachment) AddAttachment(result.attachment); | function AttachPage(){ if (gPromptService) { var result = {value:"http://"}; if (gPromptService.prompt( window, sComposeMsgsBundle.getString("attachPageDlogTitle"), sComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { va... |
var result = {value:0}; | var result = {value:""}; | function AttachPage(){ if (promptService) { var result = {value:0}; if (promptService.prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { Ad... |
var result = {value:""}; | var result = {value:"http: | function AttachPage(){ if (promptService) { var result = {value:""}; if (promptService.prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) { A... |
if (promptService) { | if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); } if (gPromptService) { | function AttachPage(){ if (promptService) { var result = {value:"http://"}; if (promptService.prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) ... |
if (promptService.prompt( | if (gPromptService.prompt( | function AttachPage(){ if (promptService) { var result = {value:"http://"}; if (promptService.prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), result, null, {value:0})) ... |
window.openDialog("chrome: | var result = {url: ""}; window.openDialog("chrome: if (result.url != "") AddAttachment(result.url); | function AttachPage(){ window.openDialog("chrome://messengercompose/content/MsgAttachPage.xul", "attachPageDialog", "chrome", {addattachmentfunction:AddAttachment});} |
if (addattachmentfunction) { addattachmentfunction(document.getElementById('attachurl').value); } return true; | result.url = document.getElementById('attachurl').value; return true; | function AttachPageOKCallback(){ /* dump("attach this: " + document.getElementById('attachurl').value + "\n"); */ if (addattachmentfunction) { addattachmentfunction(document.getElementById('attachurl').value); } return true;} |
if (select.value == "") return; | function AutoCompleteAddress(inputElement){ ///////////// (select_doc_id, doc_id) dump("inputElement = " + inputElement + "\n"); var row = awGetRowByInputElement(inputElement); var select = awGetPopupElement(row); dump("select = " + select + "\n"); dump("select.value = " + select.value + "\n"); if (select.value ==... | |
input[0].setAttribute("value", ""); input[0].value = ""; | input[0].setAttribute("value", ""); | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++;... |
if (input) _awDisableAutoComplete(select[0], input[0]); | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++;... | |
var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).value; | var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).value; newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode.... |
select[0].value = lastRecipientType; | select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(lastRecipientType)]; | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).value; newNode = awCopyNode(treeitem1, body, 0); top.MAX_RECIPIENTS++; var input = newNode.... |
input[0].value = ""; | function awAppendNewRow(setFocus){ var body = document.getElementById("addressingWidget"); var listitem1 = awGetListItem(1); if ( body && listitem1 ) { var nextDummy = awGetNextDummyRow(); var newNode = listitem1.cloneNode(true); if (nextDummy) body.replaceChild(newNode, nextDummy); else bod... | |
input[0].value = ""; | function awAppendNewRow(setFocus){ var listbox = document.getElementById('addressingWidget'); var listitem1 = awGetListItem(1); if ( listbox && listitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); var newNode = ... | |
select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(lastRecipientType)]; | switch (lastRecipientType) { case "addr_reply": case "addr_other": select[0].selectedIndex = awGetSelectItemIndex("addr_to"); break; case "addr_followup": select[0].selectedIndex = awGetSelectItemIndex("addr_newsgroups"); break; default: select[0].selectedIndex = awGetSelectItemIndex(lastRecipientType); } | function awAppendNewRow(setFocus){ var listbox = document.getElementById('addressingWidget'); var listitem1 = awGetListItem(1); if ( listbox && listitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); var nextDummy = awGetNextDummyRow(); var newNode = ... |
var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); | var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value"); | function awAppendNewRow(setFocus){ var body = document.getElementById('addressWidgetBody'); var treeitem1 = awGetTreeItem(1); if ( body && treeitem1 ) { var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("data"); var nextDummy = awGetNextDummyRow(); var newNode = awCopyNode... |
if (targ.localName != 'treechildren') | if ("localName" in targ && targ.localName != 'treechildren') | function awClickEmptySpace(targ, setFocus){ if (targ.localName != 'treechildren') return; dump("awClickEmptySpace\n"); var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);} |
function awClickEmptySpace(setFocus) | function awClickEmptySpace(targ, setFocus) | function awClickEmptySpace(setFocus){ dump("awClickEmptySpace\n"); var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);} |
if (targ.localName != 'treechildren') return; | function awClickEmptySpace(setFocus){ dump("awClickEmptySpace\n"); var lastInput = awGetInputElement(top.MAX_RECIPIENTS); if ( lastInput && lastInput.value ) awAppendNewRow(setFocus); else if (setFocus) awSetFocus(top.MAX_RECIPIENTS, lastInput);} | |
var aData = selectElem.childNodes[0].childNodes[i].getAttribute("data"); | var aData = selectElem.childNodes[0].childNodes[i].getAttribute("value"); | function awGetSelectItemIndex(itemData){ if (selectElementIndexTable == null) { selectElementIndexTable = new Object(); var selectElem = document.getElementById("msgRecipientType#1"); for (var i = 0; i < selectElem.childNodes[0].childNodes.length; i ++) { var aData = selectElem.childN... |
if (!element.value) | if (!document.getAnonymousNodes(element)[0].firstChild.value) | function awRecipientKeyDown(event, element){ switch(event.keyCode) { case 46: case 8: if (!element.value) awDeleteHit(element); event.preventBubble(); //We need to stop the event else the tree will receive it and the function //awKeyDown will be executed! break; }} |
if (popup.selectedItem.getAttribute("data") == recipientType) | if (popup.selectedItem.getAttribute("value") == recipientType) | function awRemoveRecipients(msgCompFields, recipientType, recipientsList){ if (!msgCompFields) return; var recipientArray = msgCompFields.SplitRecipients(recipientsList, false); if (! recipientArray) return; for ( var index = 0; index < recipientArray.count; index++ ) for (var row = 1; row <= top.MAX_REC... |
var body = document.getElementById('addressList'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); | var body = document.getElementById('addressList'); | function awRemoveRow(row){ var body = document.getElementById('addressList'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); top.MAX_RECIPIENTS--;} |
top.MAX_RECIPIENTS--; | awRemoveNodeAndChildren(body, awGetTreeItem(row)); top.MAX_RECIPIENTS--; | function awRemoveRow(row){ var body = document.getElementById('addressList'); awRemoveNodeAndChildren(body, awGetTreeItem(row)); top.MAX_RECIPIENTS--;} |
nextButton.value = nextButton.getAttribute("nextval"); | nextButton.label = nextButton.getAttribute("nextval"); | function back(){ var deck = document.getElementById("stateDeck"); if (deck.getAttribute("index") == "1") { var backButton = document.getElementById("back"); backButton.setAttribute("disabled", "true"); var nextButton = document.getElementById("forward"); nextButton.value = nextButton.getAttribute("nextval... |
selected_certs = []; | function backupCerts(){ getSelectedCerts(); var numcerts = selected_certs.length; var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseP12BackupFileDialog"), ... | |
var padding = (data.charAt(i) == base64Pad); | var padding = (data[i] == base64Pad); | function base64ToString(data) { var result = ''; var leftbits = 0; // number of bits decoded, but yet to be appended var leftdata = 0; // bits decoded, bt yet to be appended // Convert one by one. for (var i in data) { var c = toBinaryTable[data.charCodeAt(i) & 0x7f]; var padding = (data.ch... |
this._inputStream = toScriptableInputStream(this._transport.openInputStream(0, -1, 0)); | this._sOutputStream = toSOutputStream(this._outputStream, this.binaryMode); this._inputStream = this._transport.openInputStream(0, -1, 0); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var cls = Components.classes["@mozilla.org/... |
} | this._sInputStream = toSInputStream(this._inputStream, this.binaryMode); } | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var cls = Components.classes["@mozilla.org/... |
this._sInputStream = toSInputStream(this._inputStream, this.binaryMode); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var cls = Components.classes["@mozilla.org/... | |
var uri = Components.classes["@mozilla.org/network/simple-uri;1"]. createInstance(Components.interfaces.nsIURI); uri.spec = "irc:" + host + ':' + port; | var ios = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService); var spec = "irc: var uri = ios.newURI(spec,null); | function bc_connect(host, port, bind, tcp_flag, observer){ if (typeof tcp_flag == "undefined") tcp_flag = false; this.host = host.toLowerCase(); this.port = port; this.bind = bind; this.tcp_flag = tcp_flag; // Lets get a transportInfo for this var pps = Components.classes["@mozilla.org/network... |
rv = this._scriptableInputStream.read (count); | if (this.binaryMode) rv = this._sInputStream.readBytes(count); else rv = this._sInputStream.read(count); | function bc_readdata(timeout, count){ if (!this.isConnected) throw "Not Connected."; var rv; try { rv = this._scriptableInputStream.read (count); } catch (ex) { dd ("*** Caught " + ex + " while reading."); this.disconnect(); throw (ex); } return rv;} |
this._outputStream.write(str, str.length); | if (this.binaryMode) this._sOutputStream.writeBytes(str, str.length); else this._sOutputStream.write(str, str.length); | function bc_senddatanow(str){ var rv = false; try { this._outputStream.write(str, str.length); rv = true; } catch (ex) { dd ("*** Caught " + ex + " while sending."); this.disconnect(); throw (ex); } return rv;} |
var indexStr = ("" + index); genData.data = indexStr; trans.setTransferData ( top.transferType, genData, indexStr.length * 2); | var indexStr = ("" + index); genData.data = indexStr; | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(); if ( dragSe... |
var transArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(); if ( transArray ) transArray = transArray.QueryInterface(Components.interfaces.nsISupportsArray); if ( !transArray ) { return(false); } | trans.setTransferData ( top.transferType, genData, indexStr.length * 2); | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(); if ( dragSe... |
var genTrans = trans.QueryInterface(Components.interfaces.nsISupports); transArray.AppendElement(genTrans); var nsIDragService = Components.interfaces.nsIDragService; top.dragStart = true; | var transArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(); if ( transArray ) transArray = transArray.QueryInterface(Components.interfaces.nsISupportsArray); if ( !transArray ) { return(false); } | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(); if ( dragSe... |
dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE); | var genTrans = trans.QueryInterface(Components.interfaces.nsISupports); transArray.AppendElement(genTrans); | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(); if ( dragSe... |
return( false); | var nsIDragService = Components.interfaces.nsIDragService; top.dragStart = true; dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE); return( false); | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(); if ( dragSe... |
dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE); | dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE); | function BeginDrag( event){ top.dragStart = false; var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); // continue propagating the event } if (!tree) { return( false); } var dragService = Components.classes["component://netscape/widget/dragservice"].getService(); if ( ... |
return; | function BeginDragContentArea ( event ){ if ( event.target == null ) return; var dragService = Components.classes["component://netscape/widget/dragservice"].getService(Components.interfaces.nsIDragService); if ( dragService == null ) return; var trans = Components.classes["component://netscape/widget/transfer... | |
if (row.value == -1) return; | function BeginDragFolderOutliner(event){ debugDump("BeginDragFolderOutliner\n"); var folderOutliner = GetFolderOutliner(); var row = {}; var col = {}; var elt = {}; folderOutliner.outlinerBoxObject.getCellAt(event.clientX, event.clientY, row, col, elt); var folderResource = GetFolderResource(folder... | |
dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + | dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + | function BeginDragResultTree(event){ debugDump("BeginDragResultTree\n"); //XXX we rely on a capturer to already have determined which item the mouse was over //XXX and have set an attribute. // if the click is on the tree proper, ignore it. We only care about clicks on items. var tree = resultsTree; if ( event.targ... |
if (!selectedMessages) return false; | function BeginDragThreadPane(event){ debugDump("BeginDragThreadPane\n"); var threadTree = GetThreadTree(); var selectedMessages = GetSelectedMessages(); //A message can be dragged from one window and dropped on another window //therefore setNextMessageAfterDelete() here //no major disadvantage even i... | |
dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + | dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY + | function BeginDragThreadTree(event){ debugDump("BeginDragThreadTree\n"); //XXX we rely on a capturer to already have determined which item the mouse was over //XXX and have set an attribute. // if the click is on the tree proper, ignore it. We only care about clicks on items. var tree = GetThreadTree(); if ( event.... |
var trans = | var transferable = | function BeginDragTree ( event ){ var tree = document.getElementById("tree"); if ( event.target == tree ) return(true); // continue propagating the event // only <treeitem>s can be dragged out if ( event.target.parentNode.parentNode.tagName != "treeitem") return(false); var database = tree.database; ... |
if ( !trans ) return(false); | if ( !transferable ) return(false); | function BeginDragTree ( event ){ var tree = document.getElementById("tree"); if ( event.target == tree ) return(true); // continue propagating the event // only <treeitem>s can be dragged out if ( event.target.parentNode.parentNode.tagName != "treeitem") return(false); var database = tree.database; ... |
trans.addDataFlavor("text/unicode"); trans.addDataFlavor("moz/rdfitem"); | transferable.addDataFlavor("text/unicode"); transferable.addDataFlavor("moz/rdfitem"); | function BeginDragTree ( event ){ var tree = document.getElementById("tree"); if ( event.target == tree ) return(true); // continue propagating the event // only <treeitem>s can be dragged out if ( event.target.parentNode.parentNode.tagName != "treeitem") return(false); var database = tree.database; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.