rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (pref.lockCol == PREF_IS_DEFAULT_VALUE)
if (pref.lockCol == PREF_IS_DEFAULT_VALUE && /^chrome:\/\/.+\/locale\/.+\.properties/.test(pref.valueCol))
function fetchPref(prefName, prefIndex){ var pref = new prefObject(prefName); gPrefHash[prefName] = pref; gPrefArray[prefIndex] = pref; if (gPrefBranch.prefIsLocked(prefName)) pref.lockCol = PREF_IS_LOCKED; else if (gPrefBranch.prefHasUserValue(prefName)) pref.lockCol = PREF_IS_USER_SET; try { switch (gP...
if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger");
function file_init(){ file_attachments();/* file_attachments() can return false to indicate a load failure, but if you return false to oncreate then the popup menu will not display which is not a good thing. */}
var detachAllMenu = document.getElementById('file-detachAllAttachments'); var deleteAllMenu = document.getElementById('file-deleteAllAttachments'); if (CanDetachAttachments()) { detachAllMenu.removeAttribute('disabled'); deleteAllMenu.removeAttribute('disabled'); } else { detachAllMenu.setAttribute('disabled', 'true');...
function FillAttachmentListPopup(popup){ // the FE sometimes call this routine TWICE...I haven't been able to figure out why yet... // protect against it... if (!gBuildAttachmentPopupForCurrentMsg) return; var attachmentIndex = 0; // otherwise we need to build the attachment view... // First clear out the old vi...
menuItem.setAttribute("value","Insert Image");
menuItem.setAttribute("label","Insert Image");
function fillContextMenu(name,node){ if (!name) return(false); var popupNode = document.getElementById(name); if (!popupNode) return(false); var url = GetFileURL(node); var ext = getFileExtension(url); // remove the menu node (which tosses all of its kids); // do this in case any old ...
dialog.findKey.value = data.searchString; dialog.caseSensitive.checked = data.caseSensitive; dialog.wrap.checked = data.wrapSearch; dialog.searchBackwards.checked = data.searchBackwards;
dialog.findKey.value = findService.searchString; dialog.caseSensitive.checked = findService.matchCase; dialog.wrap.checked = findService.wrapFind; dialog.searchBackwards.checked = findService.findBackwards;
function fillDialog(){ // Set initial dialog field contents. dialog.findKey.value = data.searchString; dialog.caseSensitive.checked = data.caseSensitive; dialog.wrap.checked = data.wrapSearch; dialog.searchBackwards.checked = data.searchBackwards;}
ClearList(DictionaryList);
ClearTreelist(DictionaryList);
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearList(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictionary...
if (word != "") {
if (word != "")
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearList(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictionary...
}
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearList(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictionary...
selIndex = DictionaryList.selectedIndex;
var selIndex = dialog.DictionaryList.selectedIndex;
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictio...
ClearTreelist(DictionaryList);
ClearTreelist(dialog.DictionaryList);
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictio...
spellChecker.GetPersonalDictionary()
gSpellChecker.GetPersonalDictionary() var haveList = false;
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictio...
word = spellChecker.GetPersonalDictionaryWord();
var word = gSpellChecker.GetPersonalDictionaryWord();
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictio...
AppendStringToTreelist(DictionaryList, word);
{ AppendStringToTreelist(dialog.DictionaryList, word); haveList = true; }
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictio...
if (!haveList) AppendStringToTreelist(dialog.DictionaryList, " ");
function FillDictionaryList(){ selIndex = DictionaryList.selectedIndex; // Clear the current contents of the list ClearTreelist(DictionaryList); // Get the list from the spell checker spellChecker.GetPersonalDictionary() // Get words until an empty string is returned do { word = spellChecker.GetPersonalDictio...
var showSendUnsentMessages = (numSelected <= 1) && (specialFolder == 'Unsent Messages');
var showSendUnsentMessages = (numSelected <= 1) && (specialFolder == 'Unsent Messages' || specialFolder == 'Unsent');
function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ...
EnableMenuItem("folderPaneContext-searchMessages", IsCanSearchMessagesEnabled());
goUpdateCommand('cmd_search');
function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ...
function FillHistoryMenu(aParent, aMenu, aAdjacentElement)
function FillHistoryMenu(aParent, aMenu)
function FillHistoryMenu(aParent, aMenu, aAdjacentElement) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { ...
if (count > 0) { if (aAdjacentElement) aAdjacentElement.removeAttribute( "hidden" ); }
if (count > 0) aParent.lastChild.removeAttribute( "hidden" );
function FillHistoryMenu(aParent, aMenu, aAdjacentElement) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { ...
createCheckboxMenuItem(aParent, j, entry.title, j == index, aAdjacentElement);
createCheckboxMenuItem(aParent, j, entry.title, j==index);
function FillHistoryMenu(aParent, aMenu, aAdjacentElement) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { ...
function FillHistoryMenu(aParent, aMenu)
function FillHistoryMenu(aParent, aMenu, aAdjacentElement)
function FillHistoryMenu(aParent, aMenu) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { case "back"...
if (count > 0) aParent.lastChild.removeAttribute( "hidden" );
if (count > 0) { if (aAdjacentElement) aAdjacentElement.removeAttribute( "hidden" ); }
function FillHistoryMenu(aParent, aMenu) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { case "back"...
createCheckboxMenuItem(aParent, j, entry.title, j==index);
createCheckboxMenuItem(aParent, j, entry.title, j == index, aAdjacentElement);
function FillHistoryMenu(aParent, aMenu) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { case "back"...
if (this.alarmRelated == this.ALARM_RELATED_END)
if (this.alarmRelated == Components.interfaces.calIItemBase.ALARM_RELATED_END)
fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ...
if (this.mAttendees) { for (var i = 0; i < this.mAttendees.length; i++) icalcomp.addProperty(this.mAttendees[i].icalProperty);
var attendees = this.getAttendees({}); if (attendees.length > 0) { for (var i = 0; i < attendees.length; i++) { icalcomp.addProperty(attendees[i].icalProperty); }
fillIcalComponentFromBase: function (icalcomp) { // Make sure that the LMT and ST are updated this.updateStampTime(); this.ensureNotDirty(); this.mapPropsToICS(icalcomp, this.icsBasePropMap); if (this.mOrganizer) icalcomp.addProperty(this.mOrganizer.icalProperty); ...
var accountName = " - < "+result.prettyName+">";
var accountName = " - "+result.prettyName;
function fillIdentityListPopup(popup){ var identities = GetIdentities(); for (var i=0; i<identities.length; i++) { var identity = identities[i]; //dump(i + " = " + identity.identityName + "," +identity.key + "\n"); //Get server prettyName for each identity var serverSupports = accountManager.GetServersFor...
var titleText = "&" + err + ".title;"; document.title = titleText;
var et = document.getElementById("et_" + err); if (et) { et.className = "et_visible"; }
function fillIn(){ var err = getErrorCode(); var duffUrl = getDuffUrl(); var i; // Fill in the title var titleText = "&" + err + ".title;"; document.title = titleText;// document.getElementById("title").innerHTML = "<p>bbb</p>";// for (i = 0; i < t.childNodes.length; i++)// {// var n = t.childNodes.item(i);...
var d = document.getElementById(err); d.setAttribute("style", "display: block;");
var ld = document.getElementById("ld_" + err); if (ld) { ld.className = "ld_visible"; }
function fillIn(){ var err = getErrorCode(); var duffUrl = getDuffUrl(); var i; // Fill in the title var titleText = "&" + err + ".title;"; document.title = titleText;// document.getElementById("title").innerHTML = "<p>bbb</p>";// for (i = 0; i < t.childNodes.length; i++)// {// var n = t.childNodes.item(i);...
var HTMLNS = "http: var XULNS = "http: var XLinkNS = "http:
const HTMLNS = "http: const XULNS = "http: const XLinkNS = "http: const Node = Components.interfaces.Node;
function FillInHTMLTooltip ( tipElement ){ var HTMLNS = "http://www.w3.org/1999/xhtml"; var XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var XLinkNS = "http://www.w3.org/1999/xlink"; var retVal = false; var tipNode = document.getElementById("HTML_TOOLTIP_tooltipBox"); if ( tipNode ) ...
if ( tipNode ) { try { while ( tipNode.hasChildNodes() ) tipNode.removeChild( tipNode.firstChild ); var titleText = ""; var XLinkTitleText = ""; while ( !titleText && !XLinkTitleText && tipElement ) { if ( tipElement.nodeType == 1 ) { titleText = tipElement.getAttributeNS(HTMLNS, "title"); XLinkTitleText = tipElement...
try { while (tipNode.hasChildNodes()) tipNode.removeChild(tipNode.firstChild); var titleText = ""; var XLinkTitleText = ""; while (!titleText && !XLinkTitleText && tipElement) { if (tipElement.nodeType == Node.ELEMENT_NODE) { titleText = tipElement.getAttributeNS(HTMLNS, "title"); XLinkTitleText = tipElement.getAttri...
function FillInHTMLTooltip ( tipElement ){ var HTMLNS = "http://www.w3.org/1999/xhtml"; var XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var XLinkNS = "http://www.w3.org/1999/xlink"; var retVal = false; var tipNode = document.getElementById("HTML_TOOLTIP_tooltipBox"); if ( tipNode ) ...
var texts = [ titleText, XLinkTitleText ]; for (var i = 0; i < texts.length; i++) { var t = texts[i]; if ( t.search(/\S/) >= 0 ) { var tipLineElem = tipNode.ownerDocument.createElementNS(XULNS, "text"); tipLineElem.setAttribute("value", t); tipNode.appendChild(tipLineElem); retVal = true; }
tipElement = tipElement.parentNode; } var texts = [titleText, XLinkTitleText]; for (var i = 0; i < texts.length; ++i) { var t = texts[i]; if (t.search(/\S/) >= 0) { var tipLineElem = tipNode.ownerDocument.createElementNS(XULNS, "text"); tipLineElem.setAttribute("value", t); tipNode.appendChild(tipLineElem); retVal =...
function FillInHTMLTooltip ( tipElement ){ var HTMLNS = "http://www.w3.org/1999/xhtml"; var XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var XLinkNS = "http://www.w3.org/1999/xlink"; var retVal = false; var tipNode = document.getElementById("HTML_TOOLTIP_tooltipBox"); if ( tipNode ) ...
catch (e) { retVal = false; }
} catch (e) {
function FillInHTMLTooltip ( tipElement ){ var HTMLNS = "http://www.w3.org/1999/xhtml"; var XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var XLinkNS = "http://www.w3.org/1999/xlink"; var retVal = false; var tipNode = document.getElementById("HTML_TOOLTIP_tooltipBox"); if ( tipNode ) ...
tipNode.setAttribute("label", t);
tipNode.setAttribute("label", t.replace(/\s+/g, " ") );
function FillInHTMLTooltip(tipElement){ var retVal = false; if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") return retVal; const XLinkNS = "http://www.w3.org/1999/xlink"; var titleText = null; var XLinkTitleText = null; while (!titleText && !XLinkTitleText && t...
debug(e);
function FillInHTMLTooltip(tipElement){ const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; const XLinkNS = "http://www.w3.org/1999/xlink"; const Node = { ELEMENT_NODE : 1 }; // XXX Components.interfaces.Node; var retVal = false; var tipNode = document.getElementById("HTML_TOOLTIP_toolti...
button.setAttribute('value', tipText);
button.label = tipText;
function FillInTooltip ( tipElement ){ var retVal = false; var button = document.getElementById('replaceMe'); if ( button ) { var tipText = tipElement.getAttribute('tooltiptext'); if ( tipText != "" ) { button.setAttribute('value', tipText); retVal = true; } } return retVal;}
dump(child.nodeName+" = Heading's first child nodeName\n"); if (child && child.nodeName == "a" && child.name && child.name.length > 0)
dump(child.name+" = Child.name. Length="+child.name.length+"\n"); if (child && child.nodeName == "A" && child.name && (child.name.length>0)) {
function FillListboxes(){ NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnchors = true...
}
function FillListboxes(){ NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnchors = true...
if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name);
if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { var item = AppendStringToTreelist(dialog.NamedAnchorList, NamedAnchorNodeList.item(i).name);
function FillListboxes(){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnc...
AppendStringToList(dialog.NamedAnchorList,GetString("NoNamedAnchors")); dialog.NamedAnchorList.setAttribute("disabled", "true");
var item = AppendStringToTreelistById(dialog.NamedAnchorList, "NoNamedAnchors"); if (item) item.setAttribute("disabled", "true");
function FillListboxes(){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnc...
if (child && child.nodeName == "A" && child.name && (child.name.length>0)) {
if (child && child.nodeName == "A" && child.name && (child.name.length>0))
function FillListboxes(){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnc...
}
function FillListboxes(){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnc...
AppendStringToList(dialog.HeadingsList, text);
AppendStringToTreelist(dialog.HeadingsList, text);
function FillListboxes(){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnc...
AppendStringToList(dialog.HeadingsList,GetString("NoHeadings")); dialog.HeadingsList.setAttribute("disabled", "true");
var item = AppendStringToTreelistById(dialog.HeadingsList, "NoHeadings"); if (item) item.setAttribute("disabled", "true");
function FillListboxes(){ var NamedAnchorNodeList = editorShell.editorDocument.anchors; var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(dialog.NamedAnchorList,NamedAnchorNodeList.item(i).name); } haveNamedAnc...
ShowMenuItem( "context-addemail", gContextMenu.onMailtoLink ); ShowMenuItem( "context-composeemailto", gContextMenu.onMailtoLink );
ShowMenuItem("context-addemail", gContextMenu.onMailtoLink ); ShowMenuItem("context-composeemailto", gContextMenu.onMailtoLink ); ShowMenuItem("reportPhishingURL", gContextMenu.onLink && !gContextMenu.onMailtoLink);
function fillMessagePaneContextMenu(){ var message = GetLoadedMessage(); var numSelected = (message) ? 1 : 0; var isNewsgroup = false; if (numSelected == 1) isNewsgroup = IsNewsMessage(message); // don't show mail items for links/images, just show related items. var hideMailItems = gContextMenu.onImage || gCon...
ShowMenuItem("messagePaneContext-sep-reportPhishing", shouldShowSeparator("messagePaneContext-sep-reportPhishing"));
function fillMessagePaneContextMenu(){ var message = GetLoadedMessage(); var numSelected = (message) ? 1 : 0; var isNewsgroup = false; if (numSelected == 1) isNewsgroup = IsNewsMessage(message); // don't show mail items for links/images, just show related items. var hideMailItems = gContextMenu.onImage || gCon...
#endif
function fillMessagePaneContextMenu(){ var message = GetLoadedMessage(); var numSelected = (message) ? 1 : 0; var isNewsgroup = false; if (numSelected == 1) isNewsgroup = IsNewsMessage(message); // don't show mail items for links/images, just show related items. var hideMailItems = gContextMenu.onImage || gCon...
var headingList = editorShell.editorDocument.getElementsByTagName("h2"); dump(headingList+" Count= "+headingList.length+"\n"); if (headingList.length > 0) { dump("HELLO\n"); var heading = headingList.item(0);
var NamedAnchorCount = NamedAnchorNodeList.length; if (NamedAnchorCount > 0) { NamedAnchorsIndex = 0; AppendStringToListByID(NamedAnchorList,"NamedAnchorsCaption"); for (var i = 0; i < NamedAnchorCount; i++) { AppendStringToList(NamedAnchorList," "+NamedAnchorNodeList.item(i).name); } } var firstHeading = true; for (...
function FillNamedAnchorList(){ NamedAnchorNodeList = editorShell.editorDocument.anchors; var headingList = editorShell.editorDocument.getElementsByTagName("h2"); dump(headingList+" Count= "+headingList.length+"\n"); if (headingList.length > 0) { dump("HELLO\n"); var heading = headingList.item(0); var rang...
var range = editorShell.editorDocument.createRange(); range.setStart(heading,0); var lastChildIndex = heading.childNodes.length; range.setEnd(heading,lastChildIndex); var text = range.toString(); dump("Range:"+range+" LastChildIndex = "+lastChildIndex+"\nText: "+text+"\n");
var child = heading.firstChild; dump(child.nodeName+" = Heading's first child nodeName\n"); if (child && child.nodeName == "a" && child.name && child.name.length > 0) continue; var range = editorShell.editorDocument.createRange(); range.setStart(heading,0); var lastChildIndex = heading.childNodes.length; range.setEnd(...
function FillNamedAnchorList(){ NamedAnchorNodeList = editorShell.editorDocument.anchors; var headingList = editorShell.editorDocument.getElementsByTagName("h2"); dump(headingList+" Count= "+headingList.length+"\n"); if (headingList.length > 0) { dump("HELLO\n"); var heading = headingList.item(0); var rang...
var blockedPopupsSeparator = document.getElementById("blockedPopupsSeparator");
blockedPopupsSeparator = document.getElementById("blockedPopupsSeparator");
fillPopupList: function (aEvent) { var bundle_browser = document.getElementById("bundle_browser"); // XXXben - rather than using |currentURI| here, which breaks down on multi-framed sites // we should really walk the pageReport and create a list of "allow for <host>" // menuitems for th...
DisableUriFields(gCurrentDirectoryString + ".uri"); DisableElementIfPrefIsLocked(gCurrentDirectoryString + ".description", "description"); DisableElementIfPrefIsLocked(gCurrentDirectoryString + ".disable_button_download", "download"); DisableElementIfPrefIsLocked(gCurrentDirectoryString + ".maxHits", "results"); Disabl...
function fillSettings(){ gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1"]; ldapUrl = ldapUrl.createInstance(). QueryInterface(Components.interfaces.nsILDAPURL); try { var...
gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref);
gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1...
var prefValue = gPrefInt.CopyUnicharPref(gCurrentDirectoryString +".description");
var prefValue = gPrefInt.getComplexValue(gCurrentDirectoryString +".description", Components.interfaces.nsISupportsWString);
function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1...
prefValue = gPrefInt.CopyCharPref(gCurrentDirectoryString +".uri");
prefValue = gPrefInt.getCharPref(gCurrentDirectoryString +".uri");
function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1...
prefValue = gPrefInt.GetIntPref(gCurrentDirectoryString+ ".maxHits");
prefValue = gPrefInt.getIntPref(gCurrentDirectoryString+ ".maxHits");
function fillSettings(){ try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = null; } try { var ldapUrl = Components.classes["@mozilla.org/network/ldap-url;1...
function FillSuggestedList(firstWord)
function FillSuggestedList()
function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list ClearList(list); // We may have the initial word if (firstWord && firstWord != "") { dump("First Word = "+firstWord+"\n"); AppendStringToList(list, firstWord); } // Get suggested words until an emp...
list = dialog.suggestedList;
list = dialog.SuggestedList;
function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list ClearList(list); // We may have the initial word if (firstWord && firstWord != "") { dump("First Word = "+firstWord+"\n"); AppendStringToList(list, firstWord); } // Get suggested words until an emp...
if (firstWord && firstWord != "") { dump("First Word = "+firstWord+"\n"); AppendStringToList(list, firstWord); } do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (word != "") { AppendStringToList(list, word);
if (MisspelledWord.length > 0) { do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (word != "") { AppendStringToList(list, word); } } while (word != ""); if (list.length == 0) { AppendStringToList(list, GetString("NoSuggestedWords")); allowSelectWord = false; } else { allowSelectWor...
function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list ClearList(list); // We may have the initial word if (firstWord && firstWord != "") { dump("First Word = "+firstWord+"\n"); AppendStringToList(list, firstWord); } // Get suggested words until an emp...
} while (word != ""); if (list.length == 0) { AppendStringToList(list, GetString("NoSuggestedWords")); allowSelectWord = false; } else { allowSelectWord = true;
function FillSuggestedList(firstWord){ list = dialog.suggestedList; // Clear the current contents of the list ClearList(list); // We may have the initial word if (firstWord && firstWord != "") { dump("First Word = "+firstWord+"\n"); AppendStringToList(list, firstWord); } // Get suggested words until an emp...
dump(len+"=number of words in list\n");
function FillSuggestedList(){ list = dialog.SuggestedList; // Clear the current contents of the list ClearTreelist(list); if (MisspelledWord.length > 0) { // Get suggested words until an empty string is returned var count = 0; do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word="+w...
SetReplaceEnable();
function FillSuggestedList(){ list = dialog.SuggestedList; // Clear the current contents of the list ClearTreelist(list); if (MisspelledWord.length > 0) { // Get suggested words until an empty string is returned var count = 0; do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word="+w...
ClearList(list);
ClearTreelist(list);
function FillSuggestedList(){ list = dialog.SuggestedList; // Clear the current contents of the list ClearList(list); if (MisspelledWord.length > 0) { // Get suggested words until an empty string is returned do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (...
dump("Suggested Word = "+word+"\n"); if (word != "") { AppendStringToList(list, word);
dump("Suggested Word="+word+"|\n"); if (word.length > 0) { AppendStringToTreelist(list, word);
function FillSuggestedList(){ list = dialog.SuggestedList; // Clear the current contents of the list ClearList(list); if (MisspelledWord.length > 0) { // Get suggested words until an empty string is returned do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (...
} while (word != ""); if (list.length == 0) {
} while (word.length > 0); if (list.getAttribute("length") == 0) {
function FillSuggestedList(){ list = dialog.SuggestedList; // Clear the current contents of the list ClearList(list); if (MisspelledWord.length > 0) { // Get suggested words until an empty string is returned do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (...
AppendStringToList(list, GetString("NoSuggestedWords"));
var item = AppendStringToTreelistById(list, "NoSuggestedWords"); if (item) item.setAttribute("disabled", "true");
function FillSuggestedList(){ list = dialog.SuggestedList; // Clear the current contents of the list ClearList(list); if (MisspelledWord.length > 0) { // Get suggested words until an empty string is returned do { word = spellChecker.GetSuggestedWord(); dump("Suggested Word = "+word+"\n"); if (...
EnableMenuItem('downloadSelected', GetNumSelectedMessages() > 0);
function fillThreadPaneContextMenu(){ var numSelected = GetNumSelectedMessages(); var isNewsgroup = false; var selectedMessage = null; // Clear the global var used to keep track if a 'Delete Message' or 'Move // To' command has been triggered via the thread pane context menu. gThreadPaneDeleteOrMoveOccurred = fal...
#endif
function fillThreadPaneContextMenu(){ var numSelected = GetNumSelectedMessages(); var isNewsgroup = false; var selectedMessage = null; // Clear the global var used to keep track if a 'Delete Message' or 'Move // To' command has been triggered via the thread pane context menu. gThreadPaneDeleteOrMoveOccurred = fal...
if (column_accesskey) item.setAttribute("accesskey", column_accesskey);
function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var strBundle = document.getElementById('sortBundle'); var sortString; if (strBundle) sortString = strBundle.getString('SortMenuItems'); if (!sortS...
var column_name = tree_column.getAttribute("value");
var column_name = tree_column.getAttribute("label");
function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementById('theColumns'); var head = document.getElementById('headRow'); var skip_column = document.getElementById('popupCel...
item.setAttribute("value", name);
item.setAttribute("label", name);
function fillViewMenu(popup){ var fill_after = document.getElementById('fill_after_this_node'); var fill_before = document.getElementById('fill_before_this_node'); var columns = document.getElementById('theColumns'); var head = document.getElementById('headRow'); var skip_column = document.getElementById('popupCel...
view.selection.select(0);
if (view.rowCount > 0) view.selection.select(0);
function filterActions() { var filter = document.getElementById("filter").value; if (filter == "") { gDownloadActionsWindow.clearFilter(); return; } var view = gDownloadActionsWindow._view; view._filterSet = gDownloadActionsWindow._filterActions(filter); if (!v...
view.selection.select(0);
if (view.rowCount > 0) view.selection.select(0);
function filterCookies() { var filter = document.getElementById("filter").value; if (filter == "") { gCookiesWindow.clearFilter(); return; } var view = gCookiesWindow._view; view._filterSet = gCookiesWindow._filterCookies(filter); if (!view._filtered) { ...
onMore(null);
onMore(null, 0);
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
if ("filterList" in args) { gFilterList = args.filterList; }
if ("filterList" in args) gFilterList = args.filterList;
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
if ("filter" in args) { gFilter = window.arguments[0].filter; initializeDialog(gFilter); PopulateTemplateMenu(); } else { if (gFilterList) setSearchScope(getScopeFromFilterList(gFilterList));
if ("filter" in args) { gFilter = window.arguments[0].filter; initializeDialog(gFilter); } else { if (gFilterList) setSearchScope(getScopeFromFilterList(gFilterList)); if ("filterName" in args) { gPreFillName = args.filterName; gFilter = gFilterList.createFilter(gPreFillName); var term = gFilter.createTerm();
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
PopulateTemplateMenu(); if ("filterName" in args) { gPreFillName = args.filterName; gFilter = gFilterList.createFilter(gPreFillName); var term = gFilter.createTerm();
term.attrib = Components.interfaces.nsMsgSearchAttrib.Sender; term.op = Components.interfaces.nsMsgSearchOp.Is;
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
term.attrib = Components.interfaces.nsMsgSearchAttrib.Sender; term.op = Components.interfaces.nsMsgSearchOp.Is;
var termValue = term.value; termValue.attrib = term.attrib; termValue.str = gPreFillName;
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
var termValue = term.value; termValue.attrib = term.attrib; termValue.str = gPreFillName;
term.value = termValue;
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
term.value = termValue;
gFilter.appendTerm(term);
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
gFilter.appendTerm(term);
var filterAction = gFilter.createAction(); filterAction.type = (getScopeFromFilterList(gFilterList) == Components.interfaces.nsMsgSearchScope.newsFilter) ? nsMsgFilterAction.Delete : nsMsgFilterAction.MoveToFolder; gFilter.appendAction(filterAction); initializeDialog(gFilter); gFilter.clearActionList(); } else { onMo...
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
var filterAction = gFilter.createAction(); filterAction.type = (getScopeFromFilterList(gFilterList) == Components.interfaces.nsMsgSearchScope.newsFilter) ? nsMsgFilterAction.Delete : nsMsgFilterAction.MoveToFolder; gFilter.appendAction(filterAction); initializeDialog(gFilter); gFilter.clearActionList(); } else{ onMor...
ensureActionRow(); if (!gFilter) { var stub = gFilterBundle.getString("untitledFilterName"); var count = 1; var name = stub; while (duplicateFilterNameExists(name)) { count++; name = stub + " " + count.toString();
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
if (!gFilter) { var stub = gFilterBundle.getString("untitledFilterName"); var count = 1; var name = stub; while (duplicateFilterNameExists(name)) { count++; name = stub + " " + count.toString(); } gFilterNameElement.value = name; SetUpFilterActionList(getScopeFromFilterList(gFilterList)); } gFilterNameElement.select...
gFilterNameElement.select(); gFilterNameElement.focus(); moveToAlertPosition();
function filterEditorOnLoad(){ initializeSearchWidgets(); initializeFilterWidgets(); gPrefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); gFilterBundle = document.getElementById("bundle_filter"); InitMessageLabel(); if...
getJunkmailComponent(); gJunkmailComponent.startBatch();
function filterFolderForJunk(){ MsgJunkMailInfo(true); var view = GetDBView(); // need to expand all threads, so we analyze everything view.doCommand(nsMsgViewCommandType.expandAll); var treeView = view.QueryInterface(Components.interfaces.nsITreeView); var count = treeView.rowCount; if (!count) return; var ...
return ucConvertOutgoingMessage(msg);
return msg;
function filterOutput (msg, msgtype){ if ("outputFilters" in client) { for (var f in client.outputFilters) { if (client.outputFilters[f].enabled) msg = client.outputFilters[f].func(msg, msgtype); } } return ucConvertOutgoingMessage(msg);}
var substring = document.getElementById("textbox").value.toString();
var substring = document.getElementById("textbox").value.toLowerCase();
function FilterPrefs(){ var substring = document.getElementById("textbox").value.toString(); var prefCol = view.selection.currentIndex < 0 ? null : gPrefView[view.selection.currentIndex].prefCol; var array = gPrefView; gPrefView = gPrefArray; if (substring) { gPrefView = []; for (var i = 0; i < gPrefArray.le...
var substring = document.getElementById("textbox").value.toLowerCase();
var substring = document.getElementById("textbox").value; var rex; if (substring.charAt(0) == '/') { var r = substring.match(/^\/(.*)\/(i?)$/); try { rex = RegExp(r[1], r[2]); } catch (e) { return; } }
function FilterPrefs(){ var substring = document.getElementById("textbox").value.toLowerCase(); var prefCol = view.selection.currentIndex < 0 ? null : gPrefView[view.selection.currentIndex].prefCol; var array = gPrefView; gPrefView = gPrefArray; if (substring) { gPrefView = []; for (var i = 0; i < gPrefArray...
var array = gPrefView;
var oldlen = gPrefView.length;
function FilterPrefs(){ var substring = document.getElementById("textbox").value.toLowerCase(); var prefCol = view.selection.currentIndex < 0 ? null : gPrefView[view.selection.currentIndex].prefCol; var array = gPrefView; gPrefView = gPrefArray; if (substring) { gPrefView = []; for (var i = 0; i < gPrefArray...
if (gPrefArray[i].prefCol.toLowerCase().indexOf(substring) >= 0)
if (rex.test(gPrefArray[i].prefCol + ";" + gPrefArray[i].valueCol))
function FilterPrefs(){ var substring = document.getElementById("textbox").value.toLowerCase(); var prefCol = view.selection.currentIndex < 0 ? null : gPrefView[view.selection.currentIndex].prefCol; var array = gPrefView; gPrefView = gPrefArray; if (substring) { gPrefView = []; for (var i = 0; i < gPrefArray...
view.treebox.rowCountChanged(array.length, gPrefView.length - array.length);
view.treebox.rowCountChanged(oldlen, gPrefView.length - oldlen);
function FilterPrefs(){ var substring = document.getElementById("textbox").value.toLowerCase(); var prefCol = view.selection.currentIndex < 0 ? null : gPrefView[view.selection.currentIndex].prefCol; var array = gPrefView; gPrefView = gPrefArray; if (substring) { gPrefView = []; for (var i = 0; i < gPrefArray...
gUpdatingBatch = false;
function FinalizeCookieDeletions() { for (var c=0; c<deletedCookies.length; c++) { cookiemanager.remove(deletedCookies[c].host, deletedCookies[c].name, deletedCookies[c].path, document.getElementById("checkbox").checked); } deletedCookies.len...
gUpdatingBatch = false;
function FinalizePermissionDeletions() { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); for (var p=0; p<deletedPermissions.length; p++) { if (deletedPermissions[p].type == popupType) { // we lost the URI's original sc...
bmWindow.document.getElementById("bookmarks-view").outlinerBody.setAttribute("ref", searchURI);
bmWindow.document.getElementById("bookmarks-view").outliner.setAttribute("ref", searchURI);
function find(){ // Build up a find URI from the search fields and open a new window // rooted on the URI. var match = document.getElementById("matchList"); var method = document.getElementById("methodList"); var searchURI = "find:datasource=rdf:bookmarks" searchURI += "&match=" + match.selectedItem.value; sear...
if (item.getAttribute('iframe-src') == target) {
if (item.getAttribute('id') == target) {
function find_panel(panels, target) { if (target && target != '') { // Find the index of the selected panel for (var ii=1; ii < panels.childNodes.length; ii += 2) { var item = panels.childNodes.item(ii); if (item.getAttribute('iframe-src') == target) { if (is_excluded(item)) { deb...
function findAgainInPage(browser, rootSearchWindow, startSearchWindow, reverse)
function findAgainInPage(findInstData, reverse)
function findAgainInPage(browser, rootSearchWindow, startSearchWindow, reverse){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = fin...
var findInst = browser.webBrowserFind; var findInFrames = findInst.QueryInterface(Components.interfaces.nsIWebBrowserFindInFrames); findInFrames.rootSearchFrame = rootSearchWindow; findInFrames.currentSearchFrame = startSearchWindow; findInst.searchFrames = true;
function findAgainInPage(browser, rootSearchWindow, startSearchWindow, reverse){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = fin...
findInst.searchString = findService.searchString;
var searchString = findService.searchString; if (searchString.length == 0) { findInPage(findInstData); return; } findInstData.init(); var findInst = findInstData.webBrowserFind; findInst.searchString = searchString;
function findAgainInPage(browser, rootSearchWindow, startSearchWindow, reverse){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = fin...
var found = false; if (findInst.searchString.length == 0) { findInPage(browser, rootSearchWindow, startSearchWindow); return; } found = findInst.findNext();
var found = findInst.findNext();
function findAgainInPage(browser, rootSearchWindow, startSearchWindow, reverse){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = fin...
function findAgainInPage(browser, rootSearchWindow, startSearchWindow)
function findAgainInPage(browser, rootSearchWindow, startSearchWindow, reverse)
function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.Que...
findInst.findBackwards = findService.findBackwards;
findInst.findBackwards = findService.findBackwards ^ reverse;
function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.Que...
findInst.findBackwards = findService.findBackwards;
function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.Que...
if (findInst.searchString.length > 0) found = findInst.findNext();
if (findInst.searchString.length == 0) return findInPage(browser, rootSearchWindow, startSearchWindow); found = findInst.findNext();
function findAgainInPage(browser, rootSearchWindow, startSearchWindow){ if ("findDialog" in window && window.findDialog) window.findDialog.focus(); else { var findInst = browser.webBrowserFind; // set up the find to search the focussedWindow, bounded by the content window. var findInFrames = findInst.Que...
url = Components.classes["@mozilla.org/network/standard-url;1"]. createInstance(Components.interfaces.nsIURI); url.spec = alink.baseURI;
var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); url = ioService.newURI(alink.baseURI, null, null);
findAtomLink: function(linkRel, linkElements) { // XXX Need to check for MIME type and hreflang for ( var j=0 ; j<linkElements.length ; j++ ) { var alink = linkElements[j]; if (alink && //if there's a link rel ((alink.getAttribute('rel') && alink.getAttribute('rel') == linkRel) || ...