rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
HistoryMenu.toggleRecentlyClosedTabs();
function updateGoMenu(aEvent, goMenu){ if (aEvent.target != aEvent.currentTarget) return; // In case the timer didn't fire. destroyGoMenuItems(goMenu); var history = document.getElementById("hiddenHistoryTree"); if (history.hidden) { history.hidden = false; var globalHistory = Components.classes["@mozilla...
function updateGoMenu(goMenu)
function updateGoMenu(aEvent, goMenu)
function updateGoMenu(goMenu){ // In case the timer didn't fire. destroyGoMenuItems(goMenu); var history = document.getElementById("hiddenHistoryTree"); if (history.hidden) { history.hidden = false; var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"] ...
if (aEvent.target != aEvent.currentTarget) return;
function updateGoMenu(goMenu){ // In case the timer didn't fire. destroyGoMenuItems(goMenu); var history = document.getElementById("hiddenHistoryTree"); if (history.hidden) { history.hidden = false; var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"] ...
var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"] .getService(Components.interfaces.nsIGlobalHistory); var dataSource = globalHistory.QueryInterface(Components.interfaces.nsIRDFDataSource); history.database.AddDataSource(dataSource);
var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"] .getService(Components.interfaces.nsIRDFDataSource); history.database.AddDataSource(globalHistory);
function updateGoMenu(goMenu){ // In case the timer didn't fire. destroyGoMenuItems(goMenu); var history = document.getElementById("hiddenHistoryTree"); if (history.hidden) { history.hidden = false; var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"] ...
if (gSlimAttachmentView) displayAttachmentsForSlimView(); else displayAttachmentsForExpandedView();
displayAttachmentsForExpandedView();
function updateHeaderViews(){ if (gCollapsedHeaderViewMode) showHeaderView(gCollapsedHeaderView); else showHeaderView(gExpandedHeaderView); if (gSlimAttachmentView) displayAttachmentsForSlimView(); else displayAttachmentsForExpandedView();}
var val = aUseSmallIcons ? "small" : null;
gToolboxIconSize = aUseSmallIcons ? "small" : null;
function updateIconSize(aUseSmallIcons){ var val = aUseSmallIcons ? "small" : null; setAttribute(gToolbox, "iconsize", val); gToolboxDocument.persist(gToolbox.id, "iconsize"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { s...
setAttribute(gToolbox, "iconsize", val);
setAttribute(gToolbox, "iconsize", gToolboxIconSize);
function updateIconSize(aUseSmallIcons){ var val = aUseSmallIcons ? "small" : null; setAttribute(gToolbox, "iconsize", val); gToolboxDocument.persist(gToolbox.id, "iconsize"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { s...
setAttribute(toolbar, "iconsize", val);
setAttribute(toolbar, "iconsize", gToolboxIconSize);
function updateIconSize(aUseSmallIcons){ var val = aUseSmallIcons ? "small" : null; setAttribute(gToolbox, "iconsize", val); gToolboxDocument.persist(gToolbox.id, "iconsize"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { s...
repositionDialog();
function updateIconSize(aUseSmallIcons){ gToolboxIconSize = aUseSmallIcons ? "small" : "large"; setAttribute(gToolbox, "iconsize", gToolboxIconSize); gToolboxDocument.persist(gToolbox.id, "iconsize"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableT...
switch(category)
if (category == "AccentUpper" || category == "AccentLower")
function UpdateLatinL(){ ClearMenulist(LatinL); switch(category) { case "AccentUpper": // Uppercase Diacritical DisableLatinL(false); for(var basic=0; basic < 26; basic++) AppendStringToMenulist(LatinL , String.fromCharCode(0x41 + basic)); if(oldL < 26) LatinL.selectedIndex = oldL; ...
case "AccentUpper": DisableLatinL(false); for(var basic=0; basic < 26; basic++) AppendStringToMenulist(LatinL , String.fromCharCode(0x41 + basic)); if(oldL < 26) LatinL.selectedIndex = oldL; else LatinL.selectedIndex = upper.length; break; case "AccentLower": DisableLatinL(false); for(var basic=0; basic < 26; basic++)
DisableLatinL(false); if (category == "AccentUpper") { for(var basic=0; basic < 26; basic++) AppendStringToMenulist(LatinL , String.fromCharCode(0x41 + basic)); } else { for(var basic=0; basic < 26; basic++)
function UpdateLatinL(){ ClearMenulist(LatinL); switch(category) { case "AccentUpper": // Uppercase Diacritical DisableLatinL(false); for(var basic=0; basic < 26; basic++) AppendStringToMenulist(LatinL , String.fromCharCode(0x41 + basic)); if(oldL < 26) LatinL.selectedIndex = oldL; ...
if(oldL < 26) LatinL.selectedIndex = oldL; else LatinL.selectedIndex = lower.length; break; default: DisableLatinL(true); break;
} if (indexL > 25) indexL = 25; LatinL.selectedIndex = indexL; } else { DisableLatinL(true);
function UpdateLatinL(){ ClearMenulist(LatinL); switch(category) { case "AccentUpper": // Uppercase Diacritical DisableLatinL(false); for(var basic=0; basic < 26; basic++) AppendStringToMenulist(LatinL , String.fromCharCode(0x41 + basic)); if(oldL < 26) LatinL.selectedIndex = oldL; ...
for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper[LatinL.selectedIndex].length) LatinM.selectedIndex = oldM; else LatinM.selectedIndex = upper[LatinL.selectedIndex].length; break;
for(var basic=0; basic < upper[indexL].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[indexL][basic])); if(indexM_AU < upper[indexL].length) indexM = indexM_AU; else indexM = upper[indexL].length - 1; indexM_AU = indexM; break;
function UpdateLatinM(){ ClearMenulist(LatinM); switch(category) { case "AccentUpper": // Uppercase Diacritical for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper...
for(var basic=0; basic < lower[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(lower[LatinL.selectedIndex][basic])); if(oldM < lower[LatinL.selectedIndex].length) LatinM.selectedIndex = oldM; else LatinM.selectedIndex = lower[LatinL.selectedIndex].length; break;
for(var basic=0; basic < lower[indexL].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(lower[indexL][basic])); if(indexM_AL < lower[indexL].length) indexM = indexM_AL; else indexM = lower[indexL].length - 1; indexM_AL = indexM; break;
function UpdateLatinM(){ ClearMenulist(LatinM); switch(category) { case "AccentUpper": // Uppercase Diacritical for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper...
for(var i=0; i < otherupper.length; i++) AppendStringToMenulist(LatinM, String.fromCharCode(otherupper[i])); if(oldM < otherupper.length) LatinM.selectedIndex = oldL; else LatinM.selectedIndex = otherupper.length; break;
for(var i=0; i < otherupper.length; i++) AppendStringToMenulist(LatinM, String.fromCharCode(otherupper[i])); if(indexM_U < otherupper.length) indexM = indexM_U; else indexM = otherupper.length - 1; indexM_U = indexM; break;
function UpdateLatinM(){ ClearMenulist(LatinM); switch(category) { case "AccentUpper": // Uppercase Diacritical for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper...
for(var i=0; i < otherlower.length; i++) AppendStringToMenulist(LatinM , String.fromCharCode(otherlower[i])); if(oldL < otherlower.length) LatinM.selectedIndex = oldM; else LatinM.selectedIndex = otherlower.length; break;
for(var i=0; i < otherlower.length; i++) AppendStringToMenulist(LatinM , String.fromCharCode(otherlower[i])); if(indexM_L < otherlower.length) indexM = indexM_L; else indexM = otherlower.length - 1; indexM_L = indexM; break;
function UpdateLatinM(){ ClearMenulist(LatinM); switch(category) { case "AccentUpper": // Uppercase Diacritical for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper...
for(var i=0; i < symbol.length; i++) AppendStringToMenulist(LatinM , String.fromCharCode(symbol[i])); if(oldM < symbol.length) LatinM.selectedIndex = oldM; else LatinM.selectedIndex = symbol.length; break;
for(var i=0; i < symbol.length; i++) AppendStringToMenulist(LatinM , String.fromCharCode(symbol[i])); if(indexM_S < symbol.length) indexM = indexM_S; else indexM = symbol.length - 1; indexM_S = indexM; break;
function UpdateLatinM(){ ClearMenulist(LatinM); switch(category) { case "AccentUpper": // Uppercase Diacritical for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper...
LatinM.selectedIndex = indexM;
function UpdateLatinM(){ ClearMenulist(LatinM); switch(category) { case "AccentUpper": // Uppercase Diacritical for(var basic=0; basic < upper[LatinL.selectedIndex].length; basic++) AppendStringToMenulist(LatinM , String.fromCharCode(upper[LatinL.selectedIndex][basic])); if(oldM < upper...
var send_default_charset = prefs.getComplexValue("mailnews.send_default_charset",
var send_default_charset = sPrefs.getComplexValue("mailnews.send_default_charset",
function UpdateMailEditCharset(){ var send_default_charset = prefs.getComplexValue("mailnews.send_default_charset", Components.interfaces.nsIPrefLocalizedString).data;// dump("send_default_charset is " + send_default_charset + "\n"); var compFieldsCharset = msgCompose.compFields.c...
var compFieldsCharset = msgCompose.compFields.characterSet;
var compFieldsCharset = gMsgCompose.compFields.characterSet;
function UpdateMailEditCharset(){ var send_default_charset = prefs.getComplexValue("mailnews.send_default_charset", Components.interfaces.nsIPrefLocalizedString).data;// dump("send_default_charset is " + send_default_charset + "\n"); var compFieldsCharset = msgCompose.compFields.c...
if (g_charsetConvertManager) { var charsetAtom = g_charsetConvertManager.GetCharsetAtom(compFieldsCharset);
if (gCharsetConvertManager) { var charsetAtom = gCharsetConvertManager.GetCharsetAtom(compFieldsCharset);
function UpdateMailEditCharset(){ var send_default_charset = prefs.getComplexValue("mailnews.send_default_charset", Components.interfaces.nsIPrefLocalizedString).data;// dump("send_default_charset is " + send_default_charset + "\n"); var compFieldsCharset = msgCompose.compFields.c...
var send_default_charset = prefs.getLocalizedUnicharPref("mailnews.send_default_charset");
var send_default_charset = prefs.getComplexValue("mailnews.send_default_charset", Components.interfaces.nsIPrefLocalizedString);
function UpdateMailEditCharset(){ var send_default_charset = prefs.getLocalizedUnicharPref("mailnews.send_default_charset");// dump("send_default_charset is " + send_default_charset + "\n"); var compFieldsCharset = msgCompose.compFields.characterSet;// dump("msgCompose.compFields is " + compFieldsCharset + "\n"); ...
document.getElementById('messengerBox').removeAttribute('flex');
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); // don't do anything if we are already in the correct configuration if (paneConfig == gCurrentPaneConfig) return; var mailContentWrapper = document.getElementById("mailContentWrapper"); var mes...
document.getElementById('messengerBox').setAttribute('flex', '1');
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); // don't do anything if we are already in the correct configuration if (paneConfig == gCurrentPaneConfig) return; var mailContentWrapper = document.getElementById("mailContentWrapper"); var mes...
var desiredMsgPaneParentId = (paneConfig == "0" || paneConfig == "2") ? "messagesBox" : "mailContentWrapper";
var desiredMsgPaneParentId = (paneConfig == "0" || paneConfig == "2" || paneConfig == "3") ? "messagesBox" : "mailContentWrapper";
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); if (paneConfig == kStandardPaneConfig) document.getElementById('messagepanebox').setAttribute('flex', 1); else document.getElementById('messagepanebox').removeAttribute('flex'); // don...
} else if (paneConfig == kWideThreadPaneConfig) { mailContentWrapper.insertBefore(threadPaneSplitter, mailContentWrapper.firstChild); mailContentWrapper.insertBefore(messengerBox, mailContentWrapper.firstChild); mailContentWrapper.setAttribute("orient", "vertical"); threadPaneSplitter.setAttribute("orient", "ve...
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); if (paneConfig == kStandardPaneConfig) document.getElementById('messagepanebox').setAttribute('flex', 1); else document.getElementById('messagepanebox').removeAttribute('flex'); // don...
messagePaneBox.removeAttribute("minwidth");
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); // don't do anything if we are already in the correct configuration if (paneConfig == gCurrentPaneConfig) return; var mailContentWrapper = document.getElementById("mailContentWrapper"); var mes...
{ messagePaneBox.removeAttribute("minwidth");
{
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); // don't do anything if we are already in the correct configuration if (paneConfig == gCurrentPaneConfig) return; var mailContentWrapper = document.getElementById("mailContentWrapper"); var mes...
messagePaneBox.setAttribute("minwidth", "400");
function UpdateMailPaneConfig(aMsgWindowInitialized) { var paneConfig = pref.getIntPref("mail.pane_config.dynamic"); // don't do anything if we are already in the correct configuration if (paneConfig == gCurrentPaneConfig) return; var mailContentWrapper = document.getElementById("mailContentWrapper"); var mes...
if (gDBView)
if (gDBView && GetNumSelectedMessages() == 1)
function UpdateMailPaneConfig() { const dynamicIds = ["messagesBox", "mailContent", "threadPaneBox"] var desiredId = dynamicIds[GetMailPaneConfig()]; var messagePane = GetMessagePane(); if (messagePane.parentNode.id != desiredId) { ClearAttachmentList(); var messagePaneSplitter = GetThreadAndMessagePaneSplitt...
wizardMap.accname.previous = "server";
wizardMap.done.previous = "accname";
function updateMap(pageData, wizardMap) { dump("Updating wizard map..\n"); if (pageData.accounttype) { if (pageData.accounttype.mailaccount && pageData.accounttype.mailaccount.value) { if (currentAccountData && currentAccountData.wizardSkipPanels) { wizardMap.identity.n...
}
},
updateMarkAsReadTextbox: function(aFocusTextBox) { var textbox = document.getElementById('markAsReadDelay'); textbox.disabled = !document.getElementById('markAsRead').checked; if (!textbox.disabled && aFocusTextBox) textbox.focus(); }
var button = document.getElementById("masterPassword");
var button = document.getElementById("changeMasterPassword");
updateMasterPasswordButton: function () { var checkbox = document.getElementById("useMasterPassword"); var button = document.getElementById("masterPassword"); button.disabled = !checkbox.checked; // in instant-apply mode, we'd like flipping this to try to immediately // remove the master password i...
if (!checkbox.checked && this._masterPasswordSet()) {
if (!checkbox.checked)
updateMasterPasswordButton: function () { var checkbox = document.getElementById("useMasterPassword"); var button = document.getElementById("masterPassword"); button.disabled = !checkbox.checked; // in instant-apply mode, we'd like flipping this to try to immediately // remove the master password i...
this._initMasterPasswordUI(); }
else this.changeMasterPassword(); this._initMasterPasswordUI();
updateMasterPasswordButton: function () { var checkbox = document.getElementById("useMasterPassword"); var button = document.getElementById("masterPassword"); button.disabled = !checkbox.checked; // in instant-apply mode, we'd like flipping this to try to immediately // remove the master password i...
var headerEntry;
var headerEntry = null;
function UpdateMessageHeaders(){ // iterate over each header we received and see if we have a matching entry in each // header view table... for (headerName in currentHeaderData) { var headerField = currentHeaderData[headerName]; var headerEntry; if (headerName == "subject") { try { if (gDBV...
if (headerEntry != undefined && headerEntry) { headerEntry.outputFunction(headerEntry, headerField.headerValue); headerEntry.valid = true; }
function UpdateMessageHeaders(){ // iterate over each header we received and see if we have a matching entry in each // header view table... for (headerName in currentHeaderData) { var headerField = currentHeaderData[headerName]; var headerEntry; if (headerName == "subject") { try { if (gDBV...
if (headerEntry == undefined && gViewAllHeaders)
if (!headerEntry && gViewAllHeaders)
function UpdateMessageHeaders(){ // iterate over each header we received and see if we have a matching entry in each // header view table... for (headerName in currentHeaderData) { var headerField = currentHeaderData[headerName]; var headerEntry; if (headerName == "subject") { try { if (gDBV...
if (headerEntry != undefined && headerEntry)
if (headerEntry)
function UpdateMessageHeaders(){ // iterate over each header we received and see if we have a matching entry in each // header view table... for (headerName in currentHeaderData) { var headerField = currentHeaderData[headerName]; var headerEntry; if (headerName == "subject") { try { if (gDBV...
}
function UpdateMessageHeaders(){ // iterate over each header we received and see if we have a matching entry in each // header view table... for (headerName in currentHeaderData) { var headerField = currentHeaderData[headerName]; var headerEntry; if (headerName == "subject") { try { if (gDBV...
if (this.FinishEmailProcessing != undefined)
if ("FinishEmailProcessing" in this)
function UpdateMessageHeaders(){ // iterate over each header we received and see if we have a matching entry in each // header view table... for (headerName in currentHeaderData) { var headerField = currentHeaderData[headerName]; var headerEntry; if (headerName == "subject") { try { if (gDBV...
FinishEmailProcessing();
if (this.FinishEmailProcessing != undefined) FinishEmailProcessing();
function UpdateMessageHeaders(){ if (gViewAllHeaders) { fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return; } if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBo...
msgPaneData.UserAgentToolbar.removeAttribute("hidden");
msgPaneData.UserAgentToolbar.removeAttribute("collapsed");
function UpdateMessageHeaders(){ if (gViewAllHeaders) { fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return; } if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBo...
msgPaneData.UserAgentToolbar.setAttribute("hidden", "true");
msgPaneData.UserAgentToolbar.setAttribute("collapsed", "true");
function UpdateMessageHeaders(){ if (gViewAllHeaders) { fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return; } if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBo...
if (gViewAllHeaders)
for (headerName in currentHeaderData)
function UpdateMessageHeaders(){ if (gViewAllHeaders) { fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return; } if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBo...
fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return;
var headerField = currentHeaderData[headerName]; var headerEntry = gExpandedHeaderView[headerName]; if (headerEntry != undefined && headerEntry) { headerEntry.outputFunction(headerEntry, headerField.headerValue); headerEntry.valid = true; } headerEntry = gCollapsedHeaderView[headerName]; if (headerEntry != undefined &&...
function UpdateMessageHeaders(){ if (gViewAllHeaders) { fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return; } if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBo...
if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, ""); if (currentHeaderData["from"]) OutputEmailAddresses(msgPaneData.FromBox, msgPaneData.Fro...
updateHeaderViews();
function UpdateMessageHeaders(){ if (gViewAllHeaders) { fillBoxWithAllHeaders(msgPaneData.ViewAllHeadersBox, false); return; } if (currentHeaderData["subject"]) hdrViewSetNodeWithBox(msgPaneData.SubjectBox, msgPaneData.SubjectValue, currentHeaderData["subject"].headerValue); else hdrViewSetNodeWithBo...
this.mLauncher.MIMEInfo.applicationDescription = app.leafName;
this.mLauncher.MIMEInfo.applicationDescription = "";
updateMIMEInfo: function() { var needUpdate = false; // If current selection differs from what's in the mime info object, // then we need to update. if ( this.dialogElement( "saveToDisk" ).selected ) { needUpdate = this.mLauncher.MIMEInfo.preferredAction != this.nsIMIMEInfo.sa...
this.dump( "updateMIMEInfo called...\n" );
updateMIMEInfo: function() { this.dump( "updateMIMEInfo called...\n" ); this.dumpObjectProperties( "\tMIMEInfo", this.mLauncher.MIMEInfo ); },
nick = o.server.me.properNick;
nick = o.server.me.unicodeName;
function updateNetwork(){ var o = getObjectDetails (client.currentObject); var lag = MSG_UNKNOWN; var nick = ""; if (o.server) { if (o.server.me) nick = o.server.me.properNick; lag = (o.server.lag != -1) ? o.server.lag : MSG_UNKNOWN; } client.statusBar["header-url"].setAttr...
client.statusBar["header-url"].setAttribute("name", client.currentObject.name);
client.statusBar["header-url"].setAttribute("name", client.currentObject.unicodeName);
function updateNetwork(){ var o = getObjectDetails (client.currentObject); var lag = MSG_UNKNOWN; var nick = ""; if (o.server) { if (o.server.me) nick = o.server.me.properNick; lag = (o.server.lag != -1) ? o.server.lag : MSG_UNKNOWN; } client.statusBar["header-url"].setAttr...
getMsg(MSG_CONNECT_VIA, view.primServ.name));
getMsg(MSG_CONNECT_VIA, view.primServ.unicodeName));
function updateNetwork(){ if (view.connecting) { setText("status", MSG_CONNECTING); setAttribute("status","condition", "yellow"); removeAttribute("status", "title"); setText("lag", MSG_UNKNOWN); } else if (view.isConnected()) { setText("status", MSG_CONNECTED); s...
folder = GetMsgFolder(uri);
folder = GetMsgFolderFromUri(uri);
function UpdateNode(node, target){ var folder = null; var uri = node.getAttribute("id"); if(uri) folder = GetMsgFolder(uri); if(folder) { if(folder.isServer) { target.setAttribute('value', false); return; } var oldFlag = folder.getFlag(MSG_FOLDER_FL...
url = BookmarksUtils.getProperty(selection.item[i], NC_NS+"URL", ds)
url = BookmarksUtils.getProperty(selection.item[i], gNC_NS+"URL", ds)
function updateOK(){ var selection = gBookmarkTree._selection; var ds = gBookmarkTree.tree.database; var url; gUrls = []; for (var i=0; i<selection.length; ++i) { var type = selection.type[i];// XXX protocol is broken since we have unique id...// var protocol = selection.protocol[i];// if ((type == "B...
type = BookmarksUtils.getProperty(child, RDF_NS+"type", ds);
type = BookmarksUtils.getProperty(child, gRDF_NS+"type", ds);
function updateOK(){ var selection = gBookmarkTree._selection; var ds = gBookmarkTree.tree.database; var url; gUrls = []; for (var i=0; i<selection.length; ++i) { var type = selection.type[i];// XXX protocol is broken since we have unique id...// var protocol = selection.protocol[i];// if ((type == "B...
if (type == NC_NS+"Bookmark") { url = BookmarksUtils.getProperty(child, NC_NS+"URL", ds);
if (type == gNC_NS+"Bookmark") { url = BookmarksUtils.getProperty(child, gNC_NS+"URL", ds);
function updateOK(){ var selection = gBookmarkTree._selection; var ds = gBookmarkTree.tree.database; var url; gUrls = []; for (var i=0; i<selection.length; ++i) { var type = selection.type[i];// XXX protocol is broken since we have unique id...// var protocol = selection.protocol[i];// if ((type == "B...
var protocol = selection.protocol[i]; if ((type == "Bookmark" || type == "") && protocol != "find" && protocol != "javascript") {
if (type == "Bookmark" || type == "") {
function updateOK(){ var selection = gBookmarkTree._selection; var ds = gBookmarkTree.tree.database; var url; gUrls = []; for (var i=0; i<selection.length; ++i) { var type = selection.type[i]; var protocol = selection.protocol[i]; if ((type == "Bookmark" || type == "") && protocol != "find" &&...
protocol = child.Value.split(":")[0]; if (type == NC_NS+"Bookmark" && protocol != "find" && protocol != "javascript") {
if (type == NC_NS+"Bookmark") {
function updateOK(){ var selection = gBookmarkTree._selection; var ds = gBookmarkTree.tree.database; var url; gUrls = []; for (var i=0; i<selection.length; ++i) { var type = selection.type[i]; var protocol = selection.protocol[i]; if ((type == "Bookmark" || type == "") && protocol != "find" &&...
if ( this.dialogElement( "default" ).checked ) {
if ( this.dialogElement( "saveToDisk" ).checked ) {
updateOKButton: function() { var ok = false; if ( this.dialogElement( "default" ).checked ) { // This is always OK. ok = true; } else { if ( this.dialogElement( "saveToDisk" ).checked ) { // Save to disk is always Ok. ok = true; ...
} else { if ( this.dialogElement( "saveToDisk" ).checked ) { ok = true; } else { if ( this.chosenApp || this.dialogElement( "appName" ).value != "" ) { ok = true; } }
} else { if (this.choseApp || this.givenDefaultApp) ok = true;
updateOKButton: function() { var ok = false; if ( this.dialogElement( "default" ).checked ) { // This is always OK. ok = true; } else { if ( this.dialogElement( "saveToDisk" ).checked ) { // Save to disk is always Ok. ok = true; ...
if (this.choseApp || this.givenDefaultApp)
if ((this.choseApp && this.chosenApp.unicodePath) || this.givenDefaultApp)
updateOKButton: function() { var ok = false; if ( this.dialogElement( "saveToDisk" ).checked ) { // This is always OK. ok = true; } else { // only enable the OK button if we have a default app to use or if // the user chose an app...
document.getElementById( "ok" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );
document.getElementById( "calendar-new-eventwindow" ).getButton( "accept" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );
function updateOKButton(){ var CheckEndTime = checkEndTime(); var CheckRecurTime = checkRecurTime(); document.getElementById( "ok" ).setAttribute( "disabled", !( CheckEndTime && CheckRecurTime ) );}
var checkRecur = checkSetRecur(); var checkTimeDate = checkSetTimeDate(); setOkButton(checkRecur && checkTimeDate);
var checkRecur = checkSetRecur(); var componentType = getElementValue("component-type"); var checkTimeDate; if (componentType == "event") checkTimeDate = checkSetTimeDate(); else checkTimeDate = checkDueSetTimeDate(); setOkButton(checkRecur && checkTimeDate);
function updateOKButton(){ var checkRecur = checkSetRecur(); var checkTimeDate = checkSetTimeDate(); setOkButton(checkRecur && checkTimeDate); //this.sizeToContent();}
var checkRecur = checkSetRecurTime();
var checkRecur = checkSetRecur();
function updateOKButton(){ var checkRecur = checkSetRecurTime(); var checkTimeDate = checkSetTimeDate(); setOkButton(checkRecur && checkTimeDate); this.sizeToContent();}
var stylesheets = window._content.document.styleSheets; var preferredSheet = window._content.document.preferredStylesheetSet;
var stylesheets = window.content.document.styleSheets; var preferredSheet = window.content.document.preferredStylesheetSet;
function updatePageStyles(evt){ // XXX - Accessing window._content.document can generate an // onLocationChange for the current tab, this can cause the url // bar to be cleared. Prevent that happening by setting the clear // state to false for the duration of this function. var browser = getBrowser().selectedBrows...
browser.userTypedClear = userTypedClear;
function updatePageTheme(evt){ if (!gPageThemeButton) gPageThemeButton = document.getElementById("page-theme-button"); var hasThemes = false; var stylesheets = window._content.document.styleSheets; for (var i = 0; i < stylesheets.length; ++i) { var currentStyleSheet = stylesheets[i]; if (currentStyleSh...
folderDisplayElement.setAttribute( "value", fileSpec.nativePath );
clearFolderDisplay(); var value = document.createTextNode( fileSpec.nativePath ); folderDisplayElement.appendChild( value );
function updateProfileName(){ var profileName = document.getElementById( "ProfileName" ); var folderDisplayElement = document.getElementById( "ProfileDir" ); var rootFolder = folderDisplayElement.getAttribute( "rootFolder" ); try { var fileSpec = Components.classes["component://netscape/filespec"].createInstance...
function updateProfileName( aTextFieldElement )
function updateProfileName()
function updateProfileName( aTextFieldElement ){ if( detect ) { var folderDisplayElement = document.getElementById( "ProfileDir" ); var rootFolder = folderDisplayElement.getAttribute( "rootFolder" ); dump("*** rootFolder = " + rootFolder + "\n"); var stringValue = rootFolder + aTextFieldElement.value; f...
if( detect ) { var folderDisplayElement = document.getElementById( "ProfileDir" ); var rootFolder = folderDisplayElement.getAttribute( "rootFolder" ); dump("*** rootFolder = " + rootFolder + "\n"); var stringValue = rootFolder + aTextFieldElement.value; folderDisplayElement.setAttribute( "value", stringValue );
var profileName = document.getElementById( "ProfileName" ); var folderDisplayElement = document.getElementById( "ProfileDir" ); var rootFolder = folderDisplayElement.getAttribute( "rootFolder" ); try { var fileSpec = Components.classes["component: if ( fileSpec ) fileSpec = fileSpec.QueryInterface( Components.interface...
function updateProfileName( aTextFieldElement ){ if( detect ) { var folderDisplayElement = document.getElementById( "ProfileDir" ); var rootFolder = folderDisplayElement.getAttribute( "rootFolder" ); dump("*** rootFolder = " + rootFolder + "\n"); var stringValue = rootFolder + aTextFieldElement.value; f...
var progress = (currentProgress * 100) / maxProgress; this.mStatusFeedback.showProgress(progress);
if (this.mStatusFeedback) { var progress = (currentProgress * 100) / maxProgress; this.mStatusFeedback.showProgress(progress); }
updateProgressBar: function() { var currentProgress = 0; var maxProgress = 0; for (index in this.mFeeds) { currentProgress += this.mFeeds[index].currentProgress; maxProgress += this.mFeeds[index].maxProgress; } // if we start seeing weird "jumping" behavior where the progress bar goes bel...
} finally { key.close(); }
} catch (e) {} key.close();
function updateRegistry(rootKey) { LOG("updateRegistry"); var ourInstallDir = getFile(KEY_APPDIR); var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo). QueryInterface(Components.interfaces.nsIXULRuntime); var sbs = Components.classes["@mozilla.o...
LOG("registry is up-to-date");
var uninst = getFile(KEY_APPDIR); uninst.append("uninstall"); uninst.append("uninst.exe"); var uninstString = uninst.path; nameWithVersion = oldInstall.fullName + " (" + oldInstall.version + ")"; try { key.open(rootKey, uninstallRoot, key.ACCESS_READ); var regUninstString = key.readStringValue("UninstallString"); if (r...
function updateRegistry(rootKey) { LOG("updateRegistry"); var ourInstallDir = getFile(KEY_APPDIR); var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo). QueryInterface(Components.interfaces.nsIXULRuntime); var sbs = Components.classes["@mozilla.o...
const uninstallRoot = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
function updateRegistry(rootKey) { LOG("updateRegistry"); var ourInstallDir = getFile(KEY_APPDIR); var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo). QueryInterface(Components.interfaces.nsIXULRuntime); var sbs = Components.classes["@mozilla.o...
uninstaller.append("uninstall.exe"); var uninstallString = uninstaller.path + " /ua \"" + versionWithLocale + "\"";
uninstaller.append("uninst.exe"); var uninstallString = uninstaller.path;
function updateRegistry(rootKey) { LOG("updateRegistry"); var ourInstallDir = getFile(KEY_APPDIR); var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo). QueryInterface(Components.interfaces.nsIXULRuntime); var sbs = Components.classes["@mozilla.o...
} finally { if (child) child.close(); key.close(); }
} catch (e) {} if (child) child.close(); key.close();
function updateRegistry(rootKey) { LOG("updateRegistry"); var ourInstallDir = getFile(KEY_APPDIR); var app = Components.classes["@mozilla.org/xre/app-info;1"]. getService(Components.interfaces.nsIXULAppInfo). QueryInterface(Components.interfaces.nsIXULRuntime); var sbs = Components.classes["@mozilla.o...
updateRepeatUnitExtensions();
function updateRepeatItemEnabled(){ var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var repeatDisableList = document.getElementsByAttribute( "disable-controller", "repeat" ); if( repeatCheckBox.checked ) { // call remove attribute beacuse some widget code checks for the presense of...
weekExtensions.setAttribute( "collapsed", "false" );
weekExtensions.removeAttribute( "collapsed" );
function updateRepeatUnitExtensions( ){ var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" ); //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST ...
monthExtensions.setAttribute( "collapsed", "false" );
monthExtensions.removeAttribute( "collapsed" );
function updateRepeatUnitExtensions( ){ var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" ); //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST ...
pref_string = null;
pref_string = "";
function UpdateSavePrefString(){ var num_languages = 0; pref_string = null; for (var item = active_languages_treeroot.firstChild; item != null; item = item.nextSibling) { var row = item.firstChild; var cell = row.firstChild; var languageid = cell.getAttribute('id'); if (languageid.length > 1) { ...
"anonid", "searchbar-dropmarker");
"anonid", "search-go-button");
updateSearchButton: function() { var searchButton = document.getAnonymousElementByAttribute(this.getSearchBar(), "anonid", "searchbar-dropmarker"); if (!searchButton) return; var engines = gBrowser.mCurrentBrowser.engines; if (!engines || engines.length == 0) { if ...
var searchLocalSystem = document.getElementById("checkSearchLocalSystem"); if (searchLocalSystem) searchLocalSystem.disabled = gCurrentFolder.server.searchScope == nsMsgSearchScope.offlineMail;
function updateSearchFolderPicker(folderURI) { SetFolderPicker(folderURI, gFolderPicker.id); // use the URI to get the real folder gCurrentFolder = RDF.GetResource(folderURI).QueryInterface(nsIMsgFolder); setSearchScope(GetScopeForFolder(gCurrentFolder));}
var treerow = document.getElementById("headRow"); var id = column + "Header"; if (treerow) { var treecell = treerow.getElementsByTagName("treecell"); if (treecell) { var node_count = treecell.length; for (var i=0; i < node_count; i++) { if (id == treecell[i].getAttribute("id")) { treecell[i].setAttribute('sortDir...
var treerow = document.getElementById("headRow"); var id = column + "Header"; if (treerow) { var treecell = treerow.getElementsByTagName("treecell"); if (treecell) { var node_count = treecell.length; for (var i=0; i < node_count; i++) { if (id == treecell[i].getAttribute("id")) { treecell[i].setAttribute("sortDir...
function UpdateSortIndicator(column,sortDirection){ // Find the <treerow> element var treerow = document.getElementById("headRow"); var id = column + "Header"; if (treerow) { // Grab all of the <treecell> elements var treecell = treerow.getElementsByTagName("treecell"); if (treecell) { // Loop through each treec...
var sortedColumn;
var sortedColumn = null;
function UpdateSortIndicators(colID, sortDirection){ var sortedColumn; // set the sort indicator on the column we are sorted by if (colID) { sortedColumn = document.getElementById(colID); if (sortedColumn) { sortedColumn.setAttribute("sortDirection",sortDirection); gAbResultsTree.setAttribute("sortCo...
var colID = ConvertSortTypeToColumnID(sortType); var sortedColumn;
var currCol = document.getElementById("subjectCol"); var primary = (sortType == nsMsgViewSortType.byThread) && gDBView.supportsThreading; currCol.setAttribute("primary", primary); currCol = document.getElementById("threadCol"); while (currCol) { currCol.removeAttribute("sortDirection"); currCol = currCol.nextSibling;...
function UpdateSortIndicators(sortType, sortOrder){ var colID = ConvertSortTypeToColumnID(sortType); var sortedColumn; // set the sort indicator on the column we are sorted by if (colID) { sortedColumn = document.getElementById(colID); if (sortedColumn) { if (sortOrder == nsMsgViewSortOrder.ascending) { ...
sortedColumn = document.getElementById(colID);
var sortedColumn = document.getElementById(colID);
function UpdateSortIndicators(sortType, sortOrder){ var colID = ConvertSortTypeToColumnID(sortType); var sortedColumn; // set the sort indicator on the column we are sorted by if (colID) { sortedColumn = document.getElementById(colID); if (sortedColumn) { if (sortOrder == nsMsgViewSortOrder.ascending) { ...
var currCol = sortedColumn.parentNode.firstChild; while (currCol) { if (currCol != sortedColumn && currCol.localName == "treecol") currCol.removeAttribute("sortDirection"); currCol = currCol.nextSibling; }
function UpdateSortIndicators(sortType, sortOrder){ var colID = ConvertSortTypeToColumnID(sortType); var sortedColumn; // set the sort indicator on the column we are sorted by if (colID) { sortedColumn = document.getElementById(colID); if (sortedColumn) { if (sortOrder == nsMsgViewSortOrder.ascending) { ...
gAbResultsTree.setAttribute("sortCol", colID);
function UpdateSortIndicators(colID, sortDirection){ var sortedColumn; // set the sort indicator on the column we are sorted by if (colID) { sortedColumn = document.getElementById(colID); if (sortedColumn) { sortedColumn.setAttribute("sortDirection",sortDirection); } } // remove the sort indicator fr...
ary.push(network.primServ.me.nick.replace(/[^\w\d]/g, escapeChar));
ary.push(network.primServ.me.unicodeName.replace(/[^\w\d]/g, escapeChar));
function updateStalkExpression(network){ function escapeChar(ch) { return "\\" + ch; }; var list = client.prefs["stalkWords"]; var ary = new Array(); ary.push(network.primServ.me.nick.replace(/[^\w\d]/g, escapeChar)); for (var i = 0; i < list.length; ++i) ary.push(list[i].repl...
start.timezone = gStartTime.timezone;
var menuItem = document.getElementById('menu-options-timezone'); if(menuItem.getAttribute('checked') == 'true') { start.timezone = gStartTimezone; }
function updateStartTime(){ if(gIgnoreUpdate) return; var startWidgetId; var endWidgetId; if (isEvent(window.calendarItem)) { startWidgetId = "event-starttime"; endWidgetId = "event-endtime"; } else { if (!getElementValue("todo-has-entrydate", "checked")) gItemDuration = null; if (!getElementVa...
if(gItemDuration)
if(gItemDuration) {
function updateStartTime(){ if(gIgnoreUpdate) return; var startWidgetId; var endWidgetId; if (isEvent(window.calendarItem)) { startWidgetId = "event-starttime"; endWidgetId = "event-endtime"; } else { if (!getElementValue("todo-has-entrydate", "checked")) gItemDuration = null; if (!getElementVa...
start.timezone = gEndTime.timezone;
var menuItem = document.getElementById('menu-options-timezone'); if(menuItem.getAttribute('checked') == 'true') { start.timezone = gEndTimezone }
function updateStartTime(){ if(gIgnoreUpdate) return; var startWidgetId; var endWidgetId; if (isEvent(window.calendarItem)) { startWidgetId = "event-starttime"; endWidgetId = "event-endtime"; } else { if (!getElementValue("todo-has-entrydate", "checked")) gItemDuration = null; if (!getElementVa...
var isAllDay = getElementValue("event-all-day", "checked"); if(isAllDay) gStartTime.isDate = true;
function updateStartTime(){ if(gIgnoreUpdate) return; var startWidgetId; var endWidgetId; if (isEvent(window.calendarItem)) { startWidgetId = "event-starttime"; endWidgetId = "event-endtime"; } else { if (!getElementValue("todo-has-entrydate", "checked")) gItemDuration = null; if (!getElementVa...
statusTextFld = document.getElementById("statusText");
statusTextFld = document.getElementById("statusbar-display");
function UpdateStatusField(){ var text = defaultStatus; if(jsStatus) text = jsStatus; else if(overLink) text = overLink; else if(jsDefaultStatus) text = jsDefaultStatus; if(!statusTextFld) statusTextFld = document.getElementById("statusText"); statusTextFld.setAttribute("value", text);}
if (rule.selectorText == selectorForObject(name))
if (rule.selectorText && (rule.selectorText == selectorForObject(name)))
function updateStyleSheetForObject(object) { var calStyleSheet = getCalendarStyleSheet(); var name; if (object.uri) name = object.uri.spec; else name = object.replace(' ','_'); // Returns an equality selector for calendars (which have a uri), since an // event can only belong to one cale...
var startTime = gStartTime ? gStartTime.clone() : null; var endTime = gEndTime ? gEndTime.clone() : null;
var startTimezone = gStartTimezone; var endTimezone = gEndTimezone;
function updateTimezone(){ //gConsoleService.logStringMessage("### updateTimezone()"); var menuItem = document.getElementById('menu-options-timezone'); // convert to default timezone if the timezone option // is *not* checked, otherwise keep the specific timezone // and display the labels in order to modify the ti...
if(startTime && endTime) { if(startTime.timezone == endTime.timezone || endTime.timezone == "UTC") {
if(startTimezone && endTimezone) { if(startTimezone == endTimezone || endTimezone == "UTC") {
function updateTimezone(){ //gConsoleService.logStringMessage("### updateTimezone()"); var menuItem = document.getElementById('menu-options-timezone'); // convert to default timezone if the timezone option // is *not* checked, otherwise keep the specific timezone // and display the labels in order to modify the ti...
if(startTime != null) {
if(startTimezone != null) {
function updateTimezone(){ //gConsoleService.logStringMessage("### updateTimezone()"); var menuItem = document.getElementById('menu-options-timezone'); // convert to default timezone if the timezone option // is *not* checked, otherwise keep the specific timezone // and display the labels in order to modify the ti...
tzStart.value = timezoneString(startTime);
tzStart.value = timezoneString(startTimezone);
function updateTimezone(){ //gConsoleService.logStringMessage("### updateTimezone()"); var menuItem = document.getElementById('menu-options-timezone'); // convert to default timezone if the timezone option // is *not* checked, otherwise keep the specific timezone // and display the labels in order to modify the ti...
if(endTime != null && !equalTimezones) {
if(endTimezone != null && !equalTimezones) {
function updateTimezone(){ //gConsoleService.logStringMessage("### updateTimezone()"); var menuItem = document.getElementById('menu-options-timezone'); // convert to default timezone if the timezone option // is *not* checked, otherwise keep the specific timezone // and display the labels in order to modify the ti...
tzEnd.value = timezoneString(endTime);
tzEnd.value = timezoneString(endTimezone);
function updateTimezone(){ //gConsoleService.logStringMessage("### updateTimezone()"); var menuItem = document.getElementById('menu-options-timezone'); // convert to default timezone if the timezone option // is *not* checked, otherwise keep the specific timezone // and display the labels in order to modify the ti...