rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
updateAddExceptionButton() updateDeleteExceptionButton(); | function addException( dateToAdd ){ if( !dateToAdd ) { //get the date from the date and time box. //returns a date object dateToAdd = document.getElementById( "exceptions-date-picker" ).value; } if( isAlreadyException( dateToAdd ) ) return; var DateLabel = formatDate( dateToAdd ); //add... | |
document.getElementById( "exception-dates-listbox" ).appendItem( DateLabel, dateToAdd.getTime() ); | var listbox = document.getElementById( "exception-dates-listbox" ); listbox.ensureElementIsVisible( listbox.appendItem( DateLabel, dateToAdd.getTime() )); | function addException( dateToAdd ){ if( !dateToAdd ) { //get the date from the date and time box. //returns a date object dateToAdd = document.getElementById( "exceptions-date-picker" ).value; } if( isAlreadyException( dateToAdd ) ) return; var DateLabel = formatDate( dateToAdd ); //a... |
addressNode.setAttribute("tooltiptext", emailAddress); addressNode.setAttribute("tooltip", "emailAddressTooltip"); } else addressNode.removeAttribute("tooltiptext"); | function AddExtraAddressProcessing(emailAddress, addressNode){ var displayName = addressNode.getTextAttribute("displayName"); var emailAddress = addressNode.getTextAttribute("emailAddress"); if (gShowCondensedEmailAddresses && displayName && useDisplayNameForAddress(emailAddress)) addressNode.setAttribute('labe... | |
useDisplayNameForAddress(emailAddress); addressNode.setAttribute("label", displayName); | if (useDisplayNameForAddress(emailAddress)) addressNode.setAttribute("label", displayName); | function AddExtraAddressProcessing(emailAddress, addressNode){ var displayName = addressNode.getAttribute("displayName"); var mailAddress = addressNode.getAttribute("emailAddress"); // always show the address for the from and reply-to fields var parentElementId = addressNode.parentNode.id; var condenseName = tru... |
feed = new Feed(id); feed.download(false, false); | function addFeed(url, title, quickMode, destFolder) { var ds = getSubscriptionsDS(); var feeds = getSubscriptionsList(); // Give quickMode a default value of "true"; otherwise convert value // to either "true" or "false" string. quickMode = quickMode == null ? "false" : quickMode ? "true" : "false"; /... | |
var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); cell.setAttribute('value', name); item.setAttribute('field-index', index); row.appendChild(cell); item.appendChild(row); body.appendChild(item); | var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); cell.setAttribute('label', name); item.setAttribute('field-index', index); row.appendChild(cell); item.appendChild(row); body.appendChild(item); | function AddFieldToList(body, name, index){ var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); cell.setAttribute('value', name); item.setAttribute('field-index', index); row.appendChild(cell); item.appendChild(row); body.appendChi... |
tbody = document.createElementNS ("http: "html:tbody"); source.messages.appendChild (tbody); | if (0) { tbody = document.createElementNS ("http: "html:tbody"); source.messages.appendChild (tbody); } else { tbody = source.messages; } | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
tbody = source.messages.firstChild; | if (0) { tbody = source.messages.firstChild; } else { tbody = source.messages; } | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
if (!imageHash[url] || !imageHash[url][type] || imageHash[url][type][alt] === undefined) { | if (!(url in imageHash)) imageHash[url] = {}; if (!(type in imageHash[url])) imageHash[url][type] = {}; if (!(alt in imageHash[url][type])) { imageHash[url][type][alt] = imageView.data.length; | function addImage(url, type, alt, elem, isBg){ if (url == "") return; //|imageHash[url][type][alt] === undefined| avoids matching row index 0. if (!imageHash[url] || !imageHash[url][type] || imageHash[url][type][alt] === undefined) { imageView.addRow([url, type, alt, 1, elem, isBg]); // I wish I could do ... |
if (!imageHash[url]) imageHash[url] = {}; if (!imageHash[url][type]) imageHash[url][type] = {}; imageHash[url][type][alt] = imageView.data.length - 1; | function addImage(url, type, alt, elem, isBg){ if (url == "") return; //|imageHash[url][type][alt] === undefined| avoids matching row index 0. if (!imageHash[url] || !imageHash[url][type] || imageHash[url][type][alt] === undefined) { imageView.addRow([url, type, alt, 1, elem, isBg]); // I wish I could do ... | |
newItem.parent = this; | newItem.parent = this.calendarToReturn; | addItem: function (aItem, aListener) { if (aItem.id == null && aItem.isMutable) aItem.id = "uuid" + (new Date()).getTime(); if (aItem.id == null) { if (aListener) aListener.onOperationComplete (this.calendarToReturn, Co... |
this.observeAddItem(aItem); | savedthis.observeAddItem(aItem); | addItem: function (aItem, aListener) { if (aItem.id == null) aItem.id = "uuid:" + (new Date()).getTime(); // XXX do we need to check the server to see if this already exists? // XXX how are we REALLY supposed to figure this out? var eventUri = this.mUri.clone(); eventUr... |
aListener.onOperationComplete (this, | aListener.onOperationComplete (savedthis, | addItem: function (aItem, aListener) { if (aItem.id == null) aItem.id = "uuid:" + (new Date()).getTime(); // XXX do we need to check the server to see if this already exists? // XXX how are we REALLY supposed to figure this out? var eventUri = this.mUri.clone(); eventUr... |
newItem = aItem.clone(); | var newItem = aItem.clone(); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? aItem.id = "uuid:" + (new Date()).getTime(); } else { var olditem = this.getItemById(aItem.id); if (olditem) { if (aListener) ... |
dump ("newitem.recurrenceInfo: " + newItem.recurrenceInfo + " aItem.recurrenceInfo: " + aItem.recurrenceInfo + "\n"); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? aItem.id = "uuid:" + (new Date()).getTime(); } else { var olditem = this.getItemById(aItem.id); if (olditem) { if (aListener) ... | |
this.flushItem (aItem, null); | newItem = aItem.clone(); newItem.parent = this; newItem.generation = 1; newItem.makeImmutable(); this.flushItem (newItem, null); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? aItem.id = "uuid:" + (new Date()).getTime(); } else { var olditem = this.getItemById(aItem.id); if (olditem) { if (aListener) ... |
aItem.id, aItem); | newItem.id, newItem); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? aItem.id = "uuid:" + (new Date()).getTime(); } else { var olditem = this.getItemById(aItem.id); if (olditem) { if (aListener) ... |
this.observeAddItem(aItem); | this.observeAddItem(newItem); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? aItem.id = "uuid:" + (new Date()).getTime(); } else { var olditem = this.getItemById(aItem.id); if (olditem) { if (aListener) ... |
if (this.readOnly) throw Components.interfaces.calIErrors.CAL_IS_READONLY; | addItem: function (aItem, aListener) { if (this.readOnly) throw Components.interfaces.calIErrors.CAL_IS_READONLY; this.mDefaultCalendar.addItem (aItem, aListener); }, | |
aItem.id = "uuid:" + (new Date()).getTime(); | aItem.id = "uuid" + (new Date()).getTime(); | addItem: function (aItem, aListener) { if (aItem.id == null && aItem.isMutable) aItem.id = "uuid:" + (new Date()).getTime(); if (aItem.id == null) { if (aListener) aListener.onOperationComplete (this, Components.results... |
cell.setAttribute("value", cells[i]) | cell.setAttribute("label", cells[i]) | function AddItem(children,cells,prefix,idfier){ var kids = document.getElementById(children); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); for(var i = 0; i < cells.length; i++) { var cell = document.createElement("treecell"); cell.setAttribute("class", "prop... |
for (var i = 0; i < node.form.elements.length; ++i) { var e = node.form.elements[i]; | for (i=0; i < node.form.elements.length; ++i) { e = node.form.elements[i]; | function AddKeywordForSearchField(){ var node = document.popupNode; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = ioService.newURI(node.ownerDocument.URL, node.ownerDocument.characterSet, null); var keywo... |
e.localName.toLowerCase() == "textarea") | e instanceof HTMLTextAreaElement) | function AddKeywordForSearchField(){ var node = document.popupNode; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = ioService.newURI(node.ownerDocument.URL, node.ownerDocument.characterSet, null); var keywo... |
else if (e.localName.toLowerCase() == "select" && e.selectedIndex >= 0) | else if (e instanceof HTMLSelectElement && e.selectedIndex >= 0) | function AddKeywordForSearchField(){ var node = document.popupNode; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = ioService.newURI(node.ownerDocument.URL, node.ownerDocument.characterSet, null); var keywo... |
openDialog("chrome: "centerscreen,chrome,dialog,resizable,dependent", "", spec, null, node.ownerDocument.characterSet, null, null, false, "", true, postData); | var dialogArgs = { name: "", url: spec, charset: node.ownerDocument.characterSet, bWebPanel: false, keyword: "", bNeedKeyword: true, postData: postData, description: BookmarksUtils.getDescriptionFromDocument(node.ownerDocument) } openDialog("chrome: | function AddKeywordForSearchField(){ var node = document.popupNode; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = Components.classes["@mozilla.org/network/standard-url;1"] .getService(... |
openDialog("chrome: | openDialog("chrome: ADD_BM_DIALOG_FEATURES, dialogArgs); | function AddKeywordForSearchField(){ var node = document.popupNode; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = Components.classes["@mozilla.org/network/standard-url;1"] .getService(... |
document.getElementById('intlAcceptLanguages').value = pref_string; | document.getElementById('intlAcceptLanguages').label = pref_string; | function AddLanguage() { //cludge: make pref string available from the popup document.getElementById('intlAcceptLanguages').value = pref_string; window.openDialog("chrome://communicator/content/pref/pref-languages-add.xul","","modal=yes,chrome,resizable=yes", "addlangwindow"); UpdateSavePrefString(); Se... |
addLivemark: function (aURL, aFeedURL, aTitle) | addLivemark: function (aURL, aFeedURL, aTitle, aDescription) | addLivemark: function (aURL, aFeedURL, aTitle) { openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "", "centerscreen,chrome,dialog,resizable,dependent", aTitle, aURL, null, null, null, null, false, null, null, null, aFeedURL); }, |
"centerscreen,chrome,dialog,resizable,dependent", aTitle, aURL, null, null, null, null, false, null, null, null, aFeedURL); | "centerscreen,chrome,dialog,resizable,dependent", dArgs); | addLivemark: function (aURL, aFeedURL, aTitle) { openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "", "centerscreen,chrome,dialog,resizable,dependent", aTitle, aURL, null, null, null, null, false, null, null, null, aFeedURL); }, |
"centerscreen,chrome,dialog,resizable,dependent", dArgs); | ADD_BM_DIALOG_FEATURES, dArgs); | addLivemark: function (aURL, aFeedURL, aTitle, aDescription) { var dArgs = { name: aTitle, url: aURL, bWebPanel: false, feedURL: aFeedURL, description: aDescription } openDialog("chrome://browser/content/bookmarks/addBookmark2.xul", "", "centerscreen,chrome,dialog,resi... |
var body = document.getElementById("bucketBody"); var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); cell.setAttribute('value', moduleName); item.setAttribute('list-index', index); row.appendChild(cell); item.appendChild(row); bod... | var body = document.getElementById("bucketBody"); var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); cell.setAttribute('label', moduleName); item.setAttribute('list-index', index); row.appendChild(cell); item.appendChild(row); bod... | function AddModuleToList(moduleName, index){ var body = document.getElementById("bucketBody"); var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); cell.setAttribute('value', moduleName); item.setAttribute('list-index', index); row.... |
if (!name.value) { message = stringBundle.getFormattedString("enterToolbarBlank", [name.value]); continue; } | function addNewToolbar(){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); var stringBundle = document.getElementById("stringBundle"); var message = stringBundle.getString("enterToolbarName"); var ti... | |
if (toolbarName == name.value && toolbar.getAttribute("type") != "menubar") { | if (toolbarName == name.value && toolbar.getAttribute("type") != "menubar" && toolbar.nodeName == 'toolbar') { | function addNewToolbar(){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); var stringBundle = document.getElementById("stringBundle"); var message = stringBundle.getString("enterToolbarName"); var ti... |
"chrome,titlebar,resizable=no", | "chrome,resizable=no,titlebar,modal,centerscreen", | function AddNodeToAddressBook (emailAddressNode){ if (emailAddressNode) { var primaryEmail = emailAddressNode.getAttribute("emailAddress"); var displayName = emailAddressNode.getAttribute("displayName"); window.openDialog("chrome://messenger/content/addressbook/abNewCardDialog.xul", "", ... |
select.add(new Option("-Product-", "---", false, false), null); | select.add(new Option("-Product-", "", false, false), null); | function addNullEntry(select) { // add a blank entry to the current select // if possible, try to make the null entry reflect the select's // contents based on it's name: if (select.className == 'select_product') { select.add(new Option("-Product-", "---", false, false), null); } else if (select... |
select.add(new Option("-Testgroup-", "---", false, false), null); | select.add(new Option("-Testgroup-", "", false, false), null); | function addNullEntry(select) { // add a blank entry to the current select // if possible, try to make the null entry reflect the select's // contents based on it's name: if (select.className == 'select_product') { select.add(new Option("-Product-", "---", false, false), null); } else if (select... |
select.add(new Option("-Subgroup-", "---", false, false), null); | select.add(new Option("-Subgroup-", "", false, false), null); } else if (select.className == 'select_branch') { select.add(new Option("-Branch-", "", false, false), null); | function addNullEntry(select) { // add a blank entry to the current select // if possible, try to make the null entry reflect the select's // contents based on it's name: if (select.className == 'select_product') { select.add(new Option("-Product-", "---", false, false), null); } else if (select... |
select.add(new Option("---", "---", false, false), null); | select.add(new Option("---", "", false, false), null); | function addNullEntry(select) { // add a blank entry to the current select // if possible, try to make the null entry reflect the select's // contents based on it's name: if (select.className == 'select_product') { select.add(new Option("-Product-", "---", false, false), null); } else if (select... |
this.mPrefs.addObserver(aDomain, aFunction); | var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranchInternal"); if (pbi) pbi.addObserver(aDomain, aFunction, false); | addObserver: function(aDomain, aFunction) { if (!this.mPrefs) this.init(); this.mPrefs.addObserver(aDomain, aFunction); }, |
addObserver: function (aObserver, aItemFilter) { | addObserver: function (aObserver) { | addObserver: function (aObserver, aItemFilter) { const calICompositeObserver = Components.interfaces.calICompositeObserver; if (aObserver instanceof calICompositeObserver) { var compobs = aObserver.QueryInterface (calICompositeObserver); for each (obs in this.mCompositeObservers)... |
var compobs = aObserver.QueryInterface (calICompositeObserver); for each (obs in this.mCompositeObservers) { if (obs == aObserver) return; | if (this.mCompositeObservers.indexOf(aObserver) == -1) { var compobs = aObserver.QueryInterface (calICompositeObserver); this.mCompositeObservers.push(compobs); | addObserver: function (aObserver, aItemFilter) { const calICompositeObserver = Components.interfaces.calICompositeObserver; if (aObserver instanceof calICompositeObserver) { var compobs = aObserver.QueryInterface (calICompositeObserver); for each (obs in this.mCompositeObservers)... |
this.mCompositeObservers.push(compobs); | addObserver: function (aObserver, aItemFilter) { const calICompositeObserver = Components.interfaces.calICompositeObserver; if (aObserver instanceof calICompositeObserver) { var compobs = aObserver.QueryInterface (calICompositeObserver); for each (obs in this.mCompositeObservers)... | |
for each (cal in this.mCalendars) { cal.addObserver(aObserver); } | if (this.mObservers.indexOf(aObserver) == -1) this.mObservers.push(aObserver); | addObserver: function (aObserver, aItemFilter) { const calICompositeObserver = Components.interfaces.calICompositeObserver; if (aObserver instanceof calICompositeObserver) { var compobs = aObserver.QueryInterface (calICompositeObserver); for each (obs in this.mCompositeObservers)... |
for each (obs in this.mObservers) { if (obs == aObserver) | for each (obs in aObserver) { if (obs == aObserver) { | addObserver: function (aObserver, aItemFilter) { for each (obs in this.mObservers) { if (obs == aObserver) return; } this.mObservers.push(aObserver); }, |
} | addObserver: function (aObserver, aItemFilter) { for each (obs in this.mObservers) { if (obs == aObserver) return; } this.mObservers.push(aObserver); }, | |
var eventQSvc = Components. classes["@mozilla.org/event-queue-service;1"]. getService(Components.interfaces.nsIEventQueueService); var uiQueue = eventQSvc. getSpecialEventQueue(Components.interfaces. nsIEventQueueService.UI_THREAD_EVENT_QUEUE); var proxyMgr = Components. classes["@mozilla.org/xpcomproxy;1"]. getService... | this.mObserverList.push(getProxyOnUIThread(aObserver, Components.interfaces.nsIRDFObserver)); | AddObserver: function(aObserver) { if (DEBUG) { dump("AddObserver() called\n\n"); } var eventQSvc = Components. classes["@mozilla.org/event-queue-service;1"]. getService(Components.interfaces.nsIEventQueueService); var uiQueue = eventQSvc. ... |
var message = stringBundle.getString("invalidURI"); var title = stringBundle.getString("invalidURITitle"); promptservice.alert(window,title,message); | var message = this._bundle.getString("invalidURI"); var title = this._bundle.getString("invalidURITitle"); promptService.alert(window, title, message); return; | addPermission: function (aCapability) { var textbox = document.getElementById("url"); var host = textbox.value.replace(/^\s*([-\w]*:\/+)?/, ""); // trim any leading space and scheme try { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(... |
var p = new Permission(host, (host.charAt(0) == ".") ? host.substring(1,host.length) : host, this._type, capabilityString, aCapability); uri.spec = p.host; this._pm.add(uri, p.type, p.perm); | host = (host.charAt(0) == ".") ? host.substring(1,host.length) : host; var uri = ioService.newURI("http: this._pm.add(uri, this._type, aCapability); | addPermission: function (aCapability) { var textbox = document.getElementById("url"); var host = textbox.value.replace(/^\s*([-\w]*:\/+)?/, ""); // trim any leading space and scheme try { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(... |
this.onHostInput(textbox); | addPermission: function (aPermission) { var textbox = document.getElementById("url"); var host = textbox.value.replace(/^\s*([-\w]*:\/+)?/, ""); // trim any leading space and scheme try { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(... | |
if (this._permissions[i].perm == permission) { exists = true; } | addPermission: function (aIsSave) { var textbox = document.getElementById("url"); var host = textbox.value.replace(/^\s*([-\w]*:\/+)?/, ""); // trim any leading space and scheme try { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Comp... | |
"/" + s +"/" + (g?"g":"") + (i?"i":"") +(m?"m":""), | "/" + S +"/" + (g?"g":"") + (i?"i":"") +(m?"m":""), | function AddRegExpCases( re, s, g, i, m, l ) { AddTestCase( re + ".test == RegExp.prototype.test", true, re.test == RegExp.prototype.test ); AddTestCase( re + ".toString == RegExp.prototype.toString", true, re.toString == RegExp.prototype.toString );... |
item.setAttribute('value', "Save All..."); | item.setAttribute('label', "Save All..."); | function AddSaveAllAttachmentsMenu(){ var popup = document.getElementById("attachmentPopup"); if (popup && popup.childNodes.length > 1) { var separator = document.createElement('menuseparator'); var item = document.createElement('menuitem'); if (separator && item) { popup... |
var fromValue = node.childNodes[0].nodeValue; | var fromValue = node.value; | function AddSenderToAddressBook() { // extract the from field from the current msg header and then call AddToAddressBook with that information var node = document.getElementById("FromValue"); if (node) { var fromValue = node.childNodes[0].nodeValue; if (fromValue) AddToAddressBook(fromValue, ""); }} |
var i; stringsLength++; for (i=stringsLength; i>stringToAdd; i--) { strings[i] = strings[i-1]; } strings[stringToAdd] = text; for (i=0; !(i>valuesLength); i++) { if (values[i] >= stringToAdd) { values[i]++; } } | var i; stringsLength++; for (i=stringsLength; i>stringToAdd; i--) { strings[i] = strings[i-1]; } strings[stringToAdd] = text; for (i=0; i<=entriesLength; i++) { if (entries[i] >= stringToAdd) { entries[i]++; } } | function addString(stringToAdd, text) { var i; stringsLength++; for (i=stringsLength; i>stringToAdd; i--) { strings[i] = strings[i-1]; } strings[stringToAdd] = text; for (i=0; !(i>valuesLength); i++) { if (values[i] >= stringToAdd) { values[i]... |
(bundle.GetStringFromName("EnterNewSynonym"), "", | (bundle.GetStringFromName("EnterNewSynonym")+" "+entryName, "", | function AddSynonym0() { var text = myPrompt (bundle.GetStringFromName("EnterNewSynonym"), "", bundle.GetStringFromName("AddingTitle")); if (text == "") { return; } var crypt = Encrypt(text); if (crypt == "") { /* user failed to unlock the database */ return; } addString(entries[schemas[FirstSele... |
(bundle.GetStringFromName("EnterNewSynonym")+" "+entryName, "", | (bundle.GetStringFromName("EnterNewSynonym")+" "+entryName+" "+bundle.GetStringFromName("EnterNewSynonym1"), "", | function AddSynonym0() { var schemaId = document.getElementById("schematree").selectedItems[0].getAttribute("id"); var schemanumb =parseInt(schemaId.substring(5, schemaId.length)); var entryId = document.getElementById("entrytree").selectedItems[0].getAttribute("id"); var entrynumb =parseInt(entryId.substring(5, en... |
{ var args = {result: "", okCallback: AddTagCallback}; var dialog = window.openDialog("chrome: "", "chrome,titlebar,modal", args); | { var dupeList = {}; for (var entry = gTagList.firstChild; entry; entry = entry.nextSibling) if (entry.localName == 'listitem') dupeList[entry.firstChild.firstChild.value] = true; var tag = DisambiguateTag(gAddButton.getAttribute('defaulttagname'), dupeList); var tagInfo = {tag: tag, key: '', color: '', ordinal: ... | function AddTag(){ var args = {result: "", okCallback: AddTagCallback}; var dialog = window.openDialog("chrome://messenger/content/newTagDialog.xul", "", "chrome,titlebar,modal", args);} |
if (misspelledWord != "") { spellChecker.AddWordToDictionary(misspelledWord); | if (MisspelledWord != "") { spellChecker.AddWordToDictionary(MisspelledWord); | function AddToDictionary(){ dump("SpellCheck: AddToDictionary\n"); if (misspelledWord != "") { spellChecker.AddWordToDictionary(misspelledWord); }} |
var ubHistory = appCore.urlbarHistory; if (ubHistory) { ubHistory.addEntry( gURLBar.value ); ubHistory.printHistory() } | var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (localstore) { var entries = localstore.GetTargets(rdf.GetResource("nc:urlbar-history"), rdf.GetResource("http: true); while (entries.hasMoreElements()) { var entry = entries.getNext(); if (entry) { entry = entry.QueryInterface(Components.interfaces.nsIRDFLiteral... | function addToUrlbarHistory() { var ubHistory = appCore.urlbarHistory; if (ubHistory) { ubHistory.addEntry( gURLBar.value ); ubHistory.printHistory() } } |
function addToUrlbarHistory() | function addToUrlbarHistory(aUrlToAdd) | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (urlToAdd.search(/[\x00-\x1F]/) != -1) // don't store bad URLs return; if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Compone... |
var urlToAdd = gURLBar.value; if (!urlToAdd) | if (!aUrlToAdd) | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (urlToAdd.search(/[\x00-\x1F]/) != -1) // don't store bad URLs return; if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Compone... |
if (urlToAdd.search(/[\x00-\x1F]/) != -1) | if (aUrlToAdd.search(/[\x00-\x1F]/) != -1) | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (urlToAdd.search(/[\x00-\x1F]/) != -1) // don't store bad URLs return; if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Compone... |
if (urlToAdd.indexOf(" ") == -1) { var fixedUpURI = gURIFixup.createFixupURI(urlToAdd, 0); | if (aUrlToAdd.indexOf(" ") == -1) { var fixedUpURI = gURIFixup.createFixupURI(aUrlToAdd, 0); | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (urlToAdd.search(/[\x00-\x1F]/) != -1) // don't store bad URLs return; if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Compone... |
var uriToAdd = ioService.newURI(urlToAdd, null); | try { var uriToAdd = ioService.newURI(urlToAdd, null); } catch(e) { } | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (localstore) { var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history")); if (!entries) return; var elements = entries.GetElements(); if (!elements) return; va... |
if (entry) { index ++; entry= entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var rdfValue = entry.Value; | if (!entry) continue; | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (localstore) { var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history")); if (!entries) return; var elements = entries.GetElements(); if (!elements) return; va... |
try { var unused = { }; var scheme = ioService.extractScheme(rdfValue, unused, unused); } catch(e) { rdfValue = "http: | index ++; entry= entry.QueryInterface(Components.interfaces.nsIRDFLiteral); var rdfValue = entry.Value; try { var unused = { }; var scheme = ioService.extractScheme(rdfValue, unused, unused); } catch(e) { rdfValue = "http: } if (uriToAdd) { try { var rdfUri = ioService.newURI(rdfValue, null); if (rdfUri.equals(uriTo... | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (localstore) { var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history")); if (!entries) return; var elements = entries.GetElements(); if (!elements) return; va... |
var rdfUri = ioService.newURI(rdfValue, null); if (rdfUri.equals(uriToAdd)) { entries.RemoveElementAt(index, true); break; } | if (urlToAdd == rdfValue) { entries.RemoveElementAt(index, true); break; | function addToUrlbarHistory(){ var urlToAdd = gURLBar.value; if (!urlToAdd) return; if (localstore) { var entries = rdfc.MakeSeq(localstore, rdf.GetResource("nc:urlbar-history")); if (!entries) return; var elements = entries.GetElements(); if (!elements) return; va... |
cell.setAttribute('value', UIstring); | cell.setAttribute('label', UIstring); | function AddTreeItem(doc, treeRoot, ID, UIstring){ // Create a treerow for the new item var item = doc.createElement('treeitem'); var row = doc.createElement('treerow'); var cell = doc.createElement('treecell'); // Copy over the attributes cell.setAttribute('value', UIstring); cell.setAttribute('id', ID); // A... |
cell.setAttribute('value', domainTitle); | cell.setAttribute('label', domainTitle); | function AddTreeItem(treeRoot, domainTitle){ try { // Create a treerow for the new Domain var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); // Copy over the attributes cell.setAttribute('value', domainTitle); // Add... |
dump("Adding element " + num + " : " + name + "\n"); | dump("Adding Progress element " + num + " : " + name + "\n"); | function addTreeItem(num, modName, url){ dump("Adding element " + num + " : " + name + "\n"); var body = document.getElementById("theTreeBody"); var newitem = document.createElement('treeitem'); var newrow = document.createElement('treerow'); newrow.setAttribute("rowNum", num); newrow.setAttribute("rowName", mo... |
cell.setAttribute('value', langTitle); cell.setAttribute('id', langID); | cell.setAttribute('label', langTitle); cell.setAttribute('id', langID); | function AddTreeItem(doc, treeRoot, langID, langTitle){ try { //let's beef up our error handling for languages without label / title // Create a treerow for the new Language var item = doc.createElement('treeitem'); var row = doc.createElement('treerow'); var cell = doc.createElement('treecell'); // Copy ov... |
attrcell.setAttribute( "value", name ); | attrcell.setAttribute( "label", name ); | function AddTreeItem ( name, value, treekidsId, attArray, valueCaseFunc ){ attArray[attArray.length] = name; var treekids = document.getElementById ( treekidsId ); var treeitem = document.createElementNS ( XUL_NS, "treeitem" ); var treerow = document.createElementNS ( XUL_NS, "treerow" ); var attrcell ... |
function addTreeItemToTreeChild(treeChild, label) | function addTreeItemToTreeChild(treeChild,label,value,addTwistie) | function addTreeItemToTreeChild(treeChild, label){ var treeElem1 = document.createElement("treeitem"); treeElem1.setAttribute("container","true"); treeElem1.setAttribute("open","true"); treeElem1.setAttribute("class","treecell-indent"); var treeRow = document.createElement("treerow"); var treeCell = document.crea... |
treeElem1.setAttribute("container","true"); treeElem1.setAttribute("open","true"); treeElem1.setAttribute("class","treecell-indent"); | if (addTwistie) { treeElem1.setAttribute("container","true"); treeElem1.setAttribute("open","true"); } | function addTreeItemToTreeChild(treeChild, label){ var treeElem1 = document.createElement("treeitem"); treeElem1.setAttribute("container","true"); treeElem1.setAttribute("open","true"); treeElem1.setAttribute("class","treecell-indent"); var treeRow = document.createElement("treerow"); var treeCell = document.crea... |
if (value) treeCell.setAttribute("display",value); | function addTreeItemToTreeChild(treeChild, label){ var treeElem1 = document.createElement("treeitem"); treeElem1.setAttribute("container","true"); treeElem1.setAttribute("open","true"); treeElem1.setAttribute("class","treecell-indent"); var treeRow = document.createElement("treerow"); var treeCell = document.crea... | |
if (!(mimeInfo.primaryExtension in this._pluginTypeHash)) { var pluginType = new PluginType(aPluginEnabled, mimeInfo); this._pluginTypeHash[mimeInfo.primaryExtension] = pluginType; this._pluginTypes.push(pluginType); } else { var pluginType = this._pluginTypeHash[mimeInfo.primaryExtension]; pluginType.MIMETypes.p... | try { var primExt = mimeInfo.primaryExtension; } catch (e) { } if (primExt) { if (!(primExt in this._pluginTypeHash)) { var pluginType = new PluginType(aPluginEnabled, mimeInfo); this._pluginTypeHash[primExt] = pluginType; this._pluginTypes.push(pluginType); } else { var pluginType = this._pluginTypeHash[primEx... | addType: function (aMIMEType, aPluginEnabled) { var mimeInfo = this.getMIMEInfoForType(aMIMEType); if (mimeInfo) { // We only want to show one entry per extension, even if several MIME // types map to that extension, e.g. audio/wav, audio/x-wav. Hash the // primary extension for the type to prev... |
cell.setAttribute("value", usage); | cell.setAttribute("label", usage); | function AddUsage(usage){ var tree = document.getElementById("usage"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("class", "propertylist"); cell.setAttribute("value", usage); row.appendChild(cell); tree.appendChild(row);} |
dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed"); | dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed\n"); | function AddWord(){ if (ValidateWordToAdd()) { try { spellChecker.AddWordToDictionary(WordToAdd); } catch (e) { dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed"); } // Rebuild the dialog list FillDictionaryList(); SelectWordToAddInList();... |
spellChecker.AddWordToDictionary(WordToAdd); | gSpellChecker.AddWordToDictionary(gWordToAdd); | function AddWord(){ if (ValidateWordToAdd()) { try { spellChecker.AddWordToDictionary(WordToAdd); } catch (e) { dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed\n"); } // Rebuild the dialog list FillDictionaryList(); SelectWordToAddInList... |
dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed\n"); | dump("Exception occured in gSpellChecker.AddWordToDictionary\nWord to add probably already existed\n"); | function AddWord(){ if (ValidateWordToAdd()) { try { spellChecker.AddWordToDictionary(WordToAdd); } catch (e) { dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed\n"); } // Rebuild the dialog list FillDictionaryList(); SelectWordToAddInList... |
dialog.WordInput.value = ""; | function AddWord(){ if (ValidateWordToAdd()) { try { spellChecker.AddWordToDictionary(WordToAdd); } catch (e) { dump("Exception occured in spellChecker.AddWordToDictionary\nWord to add probably already existed\n"); } // Rebuild the dialog list FillDictionaryList(); SelectWordToAddInList... | |
if (document.getElementById("msgRecipient#1").value == "") | var element = document.getElementById("msgRecipient#1"); if (element.value == "") | function AdjustFocus(){ if (document.getElementById("msgRecipient#1").value == "") { dump("set focus on the recipient\n"); document.getElementById("msgRecipient#1").focus(); } else { dump("set focus on the body\n"); contentWindow.focus(); }} |
document.getElementById("msgRecipient#1").focus(); | element.focus(); | function AdjustFocus(){ if (document.getElementById("msgRecipient#1").value == "") { dump("set focus on the recipient\n"); document.getElementById("msgRecipient#1").focus(); } else { dump("set focus on the body\n"); contentWindow.focus(); }} |
dump("set focus on the body\n"); contentWindow.focus(); } | element = document.getElementById("msgSubject"); if (element.value == "") { dump("set focus on the subject\n"); element.focus(); } else { dump("set focus on the body\n"); contentWindow.focus(); } } | function AdjustFocus(){ if (document.getElementById("msgRecipient#1").value == "") { dump("set focus on the recipient\n"); document.getElementById("msgRecipient#1").focus(); } else { dump("set focus on the body\n"); contentWindow.focus(); }} |
this.assureReadWrite(); | this.assureAccess(Components.interfaces.calIWcapCalendar.AC_COMP_WRITE); | calWcapCalendar.prototype.adoptItem_queued = function( item, listener ){ this.log( "adoptItem() call: " + item.title ); try { this.assureReadWrite(); // xxx todo: workaround really necessary for adding an occurrence? var oldItem = null; if (!isParent(item)) { this.lo... |
cardForEmailAddress.editCardToDatabase(""); | addrbook.modifyCard(cardForEmailAddress); | function allowRemoteContentForSender(){ // get the sender of the msg hdr var msgHdr = msgHdrForCurrentMessage(); if (!msgHdr) return; var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"] .getService(Components.interfaces.nsIMsgHeaderParser); var names = {}; var ... |
var spamSettings = aMsgHdr.folder.server.spamSettings; if (spamSettings.useWhiteList && spamSettings.whiteListAbURI) { var whiteListDirectory = RDF.GetResource(spamSettings.whiteListAbURI).QueryInterface(Components.interfaces.nsIAbMDBDirectory); var headerParser = Components.classes["@mozilla.org/messenger/headerparser... | function analyze(aMsgHdr, aNextFunction){ var listener = { onMessageClassified: function(aMsgURI, aClassification) { dump(aMsgURI + ' is ' + (aClassification == nsIJunkMailPlugin.JUNK ? 'JUNK' : 'GOOD') + '\n'); // XXX TODO, make the cut off 50,... | |
dump(aMsgURL + ' is ' | dump(aMsgURI + ' is ' | function analyze(aMsgHdr, aNextFunction){ var listener = { onMessageClassified: function(aMsgURI, aClassification) { dump(aMsgURL + ' is ' + (aClassification == nsIJunkMailPlugin.JUNK ? 'JUNK' : 'GOOD') + '\n'); // XXX TODO, make the cut off 50,... |
saveJunkMsgForAction(aMsgHdr.folder.server, aMsgURI, aClassification); | function analyze(aMsgHdr, aNextFunction){ var listener = { onMessageClassified: function(aMsgURI, aClassification) { // XXX todo // update status bar, or a progress dialog // running junk mail controls manually, on a large folder // can take a while, and the ... | |
{ gJunkmailComponent.endBatch(); | function analyzeMessageForJunk(aMsgHdr, aMsgIndex, aJunkMsgIndices, aLastMessage, aWhiteListDirectory){ var listener = { onMessageClassified: function(aClassifiedMsgURI, aClassification) { // XXX TODO // update status bar, or a progress dialog // running junk mail contr... | |
} | function analyzeMessageForJunk(aMsgHdr, aMsgIndex, aJunkMsgIndices, aLastMessage, aWhiteListDirectory){ var listener = { onMessageClassified: function(aClassifiedMsgURI, aClassification) { // XXX TODO // update status bar, or a progress dialog // running junk mail contr... | |
performActionOnJunkMsgs(); | function analyzeMessages(messages){ function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); ... | |
function processNext() | function processNext() { if (counter < messages.length) | function analyzeMessages(messages){ function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); ... |
if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else { dump('[bayesian filter message analysis complete.]\n'); gJunkmailComponent.endBatch(); performActionOnJunkMsgs... | var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else performActionOnJunkMsgs(); } | function analyzeMessages(messages){ function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); ... |
getJunkmailComponent(); var counter = 0; gJunkmailComponent.startBatch(); dump('[bayesian filter message analysis begins.]\n'); processNext(); | getJunkmailComponent(); var counter = 0; processNext(); | function analyzeMessages(messages){ function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); ... |
window.outerHeight = gCurrentHeight; window.moveTo((screen.availWidth - gWidth), screen.availHeight - gCurrentHeight); | window.screenY -= gSlideIncrement; window.outerHeight += gSlideIncrement; | function animateAlert(){ if (gCurrentHeight < gFinalHeight) { gCurrentHeight += gSlideIncrement; window.outerHeight = gCurrentHeight; window.moveTo((screen.availWidth - gWidth), screen.availHeight - gCurrentHeight); setTimeout(animateAlert, gSlideTime); } else setTimeout(closeAlert, gOpenTime); } |
thisMenuItem.setAttribute('value',thisMenuList.value); | thisMenuItem.setAttribute('label',thisMenuList.label); | function Append(thisMenuList) { /* Note: we always want a zero-length textbox so the user * can start typing in a new value. So we need to determine * if user has started typing into the zero-length textbox * in which case it's time to create yet another zero-length * one. We also need to determi... |
var newLen = thisMenuItem.getAttribute("value").length; | var newLen = thisMenuItem.getAttribute("label").length; | function Append(thisMenuList) { /* Note: we always want a zero-length textbox so the user * can start typing in a new value. So we need to determine * if user has started typing into the zero-length textbox * in which case it's time to create yet another zero-length * one. We also need to determi... |
menuItem.setAttribute("value", ""); | menuItem.setAttribute("label", ""); | function Append(thisMenuList) { /* Note: we always want a zero-length textbox so the user * can start typing in a new value. So we need to determine * if user has started typing into the zero-length textbox * in which case it's time to create yet another zero-length * one. We also need to determi... |
aFilePicker.appendFilter(bundle.GetStringFromName("TextOnlyFilter"), "*.txt"); | aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterText); | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.