rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
window.alert(bundle.getString("notFoundWarning")); | AlertWithTitle(null, bundle.getString("notFoundWarning")); | function onFindNext(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance setUpFindInst(); // Search. var result = gFindInst.findNext(); if (!result) { var bundle = document.getElementById("findBundle"); window.alert(bundle.getString("notFoundWarning")); SetTex... |
if (!gReplaceDialog.bundle) gReplaceDialog.bundle = document.getElementById("findBundle"); window.alert(gReplaceDialog.bundle.getString("notFoundWarning")); gReplaceDialog.findKey.select(); gReplaceDialog.findKey.focus(); | var bundle = document.getElementById("findBundle"); window.alert(bundle.getString("notFoundWarning")); SetTextboxFocus(gReplaceDialog.findKey); gReplaceDialog.findInput.select(); gReplaceDialog.findInput.focus(); return false; | function onFindNext(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance setUpFindInst(); // Search. var result = gFindInst.findNext(); if (!result) { if (!gReplaceDialog.bundle) gReplaceDialog.bundle = document.getElementById("findBundle"); window.alert(gRe... |
return false; | return true; | function onFindNext(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance setUpFindInst(); // Search. var result = gFindInst.findNext(); if (!result) { if (!gReplaceDialog.bundle) gReplaceDialog.bundle = document.getElementById("findBundle"); window.alert(gRe... |
if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; | var proceed = processCreateProfileData(profileName, gProfileRoot, languageCode, regionCode); | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); | if (!proceed) return false; | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
var profName = wizardManager.WSM.PageData["newProfile1_2"].ProfileName.value; var profDir = wizardManager.WSM.PageData["newProfile1_2"].ProfileDir.value; var profLang = wizardManager.WSM.PageData["newProfile1_2"].ProfileLanguage.value; var profRegion = wizardManager.WSM.PageData["newProfile1_2"].ProfileRegion.value; | if (window.opener) window.opener.CreateProfile(profileName, gProfileRoot); else gProfile.currentProfile = profileName; | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
var proceed = processCreateProfileData(profName, profDir, profLang, profRegion); if( proceed ) { if( window.opener ) { window.opener.CreateProfile(profName, profDir); } else { profile.currentProfile = profName; } window.close(); } else return; | return true; | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
dump(parent.wizardManager.WSM); | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); // dump(parent.wizardManager.WSM); var accountData= gCurrentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, ... | |
profile.startApprunner(profName); | profile.currentProfile = profName; | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
var profLocale = wizardManager.WSM.PageData["newProfile1_2"].ProfileLocale.value; | var profLang = wizardManager.WSM.PageData["newProfile1_2"].ProfileLanguage.value; var profRegion = wizardManager.WSM.PageData["newProfile1_2"].ProfileRegion.value; | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
proceed = processCreateProfileData(profName, profDir, profLocale); | proceed = processCreateProfileData(profName, profDir, profLang, profRegion); | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... |
if (profRegion) { selectLocale(profRegion); } | function onFinish(){ // check if we're at final stage if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var tag = wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" ); wizardManager.WSM.SavePageData( tag, null, null, null ); var profName = wizardManager.WSM... | |
var accountData= currentAccountData; | var accountData= gCurrentAccountData; | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); // dump(parent.wizardManager.WSM); var accountData= currentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, a... |
if (!currentAccount) currentAccount = createAccount(accountData); | if (!gCurrentAccount) gCurrentAccount = createAccount(accountData); | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); // dump(parent.wizardManager.WSM); var accountData= currentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, a... |
finishAccount(currentAccount, accountData); | finishAccount(gCurrentAccount, accountData); | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); // dump(parent.wizardManager.WSM); var accountData= currentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, a... |
verifyLocalFoldersAccount(currentAccount); | verifyLocalFoldersAccount(gCurrentAccount); | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); // dump(parent.wizardManager.WSM); var accountData= currentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, a... |
profile = gProfileService.createProfile(gProfileRoot, profileName); | profile = gProfileService.createProfile(gProfileRoot, null, profileName); | function onFinish() { var profileName = document.getElementById("profileName").value; var profile; // Create profile named profileName in profileRoot. try { profile = gProfileService.createProfile(gProfileRoot, profileName); } catch (e) { var profileCreationFailed = gProfileManagerBundle.getString("pro... |
var pageData = GetPageData(); | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); dump(parent.wizardManager.WSM); var accountData= gCurrentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, accoun... | |
dump(parent.wizardManager.WSM); var accountData= gCurrentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, accountData); FixupAccountDataForIsp(accountData); if (!gCurrentAccount) gCurrentAccount = createAccount(accountData); finishAccount(gCurrentAccount, accountData); v... | FinishAccount(); | function onFinish() { if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish ) return; var pageData = GetPageData(); dump(parent.wizardManager.WSM); var accountData= gCurrentAccountData; if (!accountData) accountData = new Object; PageDataToAccountData(pageData, accoun... |
gPrefs.SetBoolPref("nglayout.debug.disable_xul_cache", true); gPrefs.SetBoolPref("nglayout.debug.disable_xul_cache", false); | gPrefs.setBoolPref("nglayout.debug.disable_xul_cache", true); gPrefs.setBoolPref("nglayout.debug.disable_xul_cache", false); | function onFlush() { gPrefs.SetBoolPref("nglayout.debug.disable_xul_cache", true); gPrefs.SetBoolPref("nglayout.debug.disable_xul_cache", false);} |
onFocus: function onFocus() { gDialog.selectName.value = this.element.getAttribute("name"); gDialog.selectSize.value = this.element.getAttribute("size"); gDialog.selectMultiple.checked = this.element.hasAttribute("multiple"); gDialog.selectDisabled.checked = this.element.hasAttribute("disabled"); gDialog.selec... | optgroupObject.prototype.onFocus = function onFocus() { gDialog.optgroupLabel.value = this.element.label; gDialog.optgroupDisabled.checked = this.element.disabled; gDialog.selectDeck.setAttribute("selectedIndex", "1"); }; | onFocus: function onFocus() { gDialog.selectName.value = this.element.getAttribute("name"); gDialog.selectSize.value = this.element.getAttribute("size"); gDialog.selectMultiple.checked = this.element.hasAttribute("multiple"); gDialog.selectDisabled.checked = this.element.hasAttribute... |
fontFaceMenuList.setAttribute("value",GetString('Mixed')); | fontFaceMenuList.setAttribute("label",GetString('Mixed')); | function onFontFaceChange(fontFaceMenuList, commandID){ var commandNode = document.getElementById(commandID); var state = commandNode.getAttribute("state"); if (state == "mixed") { //Selection is the "mixed" ( > 1 style) state fontFaceMenuList.selectedItem = null; fontFaceMenuList.setAttribute("value",GetS... |
if (menuItem.getAttribute("value") && (menuItem.data.toLowerCase() == state.toLowerCase())) | if (menuItem.getAttribute("label") && (menuItem.value.toLowerCase() == state.toLowerCase())) | function onFontFaceChange(fontFaceMenuList, commandID){ var commandNode = document.getElementById(commandID); var state = commandNode.getAttribute("state"); if (state == "mixed") { //Selection is the "mixed" ( > 1 style) state fontFaceMenuList.selectedItem = null; fontFaceMenuList.setAttribute("value",GetS... |
function onFontFaceChange() | function onFontFaceChange(fontFaceMenuList, commandID) | function onFontFaceChange(){ return; //TODO: REWRITE THIS var select = document.getElementById("FontFaceSelect"); if (select) { // Default selects "Variable Width" var newIndex = 0; var face = select.getAttribute("face");//dump("onFontFaceChange: face="+face+"\n"); if ( face == "mixed") { // No ... |
return; var select = document.getElementById("FontFaceSelect"); if (select) { var newIndex = 0; var face = select.getAttribute("face"); if ( face == "mixed") | var commandNode = document.getElementById(commandID); var state = commandNode.getAttribute("state"); dump("Updating font face with " + state + "\n"); if (state == "mixed") { fontFaceMenuList.selectedItem = null; fontFaceMenuList.setAttribute("value",GetString('MixedFormats')); } else { var menuPopup = document.getEl... | function onFontFaceChange(){ return; //TODO: REWRITE THIS var select = document.getElementById("FontFaceSelect"); if (select) { // Default selects "Variable Width" var newIndex = 0; var face = select.getAttribute("face");//dump("onFontFaceChange: face="+face+"\n"); if ( face == "mixed") { // No ... |
newIndex = -1; } else { for( var i = 0; i < gFontFaceNames.length; i++) | var menuItem = menuItems.item(i); if (menuItem.getAttribute("value") && (menuItem.data.toLowerCase() == state.toLowerCase())) | function onFontFaceChange(){ return; //TODO: REWRITE THIS var select = document.getElementById("FontFaceSelect"); if (select) { // Default selects "Variable Width" var newIndex = 0; var face = select.getAttribute("face");//dump("onFontFaceChange: face="+face+"\n"); if ( face == "mixed") { // No ... |
if( gFontFaceNames[i] == face ) { newIndex = i; break; } | fontFaceMenuList.selectedItem = menuItem; break; | function onFontFaceChange(){ return; //TODO: REWRITE THIS var select = document.getElementById("FontFaceSelect"); if (select) { // Default selects "Variable Width" var newIndex = 0; var face = select.getAttribute("face");//dump("onFontFaceChange: face="+face+"\n"); if ( face == "mixed") { // No ... |
if (select.selectedIndex != newIndex) select.selectedIndex = newIndex; | function onFontFaceChange(){ return; //TODO: REWRITE THIS var select = document.getElementById("FontFaceSelect"); if (select) { // Default selects "Variable Width" var newIndex = 0; var face = select.getAttribute("face");//dump("onFontFaceChange: face="+face+"\n"); if ( face == "mixed") { // No ... | |
function onFontSizeChange() | function onFontSizeChange(fontSizeMenulist, commandID) | function onFontSizeChange(){ var select = document.getElementById("FontFaceSelect"); if (select) { // If we don't match anything, set to "0 (normal)" var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") { // No single type selected newIndex = -1; } else {... |
var select = document.getElementById("FontFaceSelect"); if (select) { var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") | var newIndex = 2; var size = fontSizeMenulist.getAttribute("size"); if ( size == "mixed") { newIndex = -1; } else { for( var i = 0; i < gFontSizeNames.length; i++) | function onFontSizeChange(){ var select = document.getElementById("FontFaceSelect"); if (select) { // If we don't match anything, set to "0 (normal)" var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") { // No single type selected newIndex = -1; } else {... |
newIndex = -1; } else { for( var i = 0; i < gFontSizeNames.length; i++) | if( gFontSizeNames[i] == size ) | function onFontSizeChange(){ var select = document.getElementById("FontFaceSelect"); if (select) { // If we don't match anything, set to "0 (normal)" var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") { // No single type selected newIndex = -1; } else {... |
if( gFontSizeNames[i] == size ) { newIndex = i; break; } | newIndex = i; break; | function onFontSizeChange(){ var select = document.getElementById("FontFaceSelect"); if (select) { // If we don't match anything, set to "0 (normal)" var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") { // No single type selected newIndex = -1; } else {... |
if (select.selectedIndex != newIndex) select.selectedIndex = newIndex; | function onFontSizeChange(){ var select = document.getElementById("FontFaceSelect"); if (select) { // If we don't match anything, set to "0 (normal)" var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") { // No single type selected newIndex = -1; } else {... | |
if (fontSizeMenulist.selectedIndex != newIndex) fontSizeMenulist.selectedIndex = newIndex; | function onFontSizeChange(){ var select = document.getElementById("FontFaceSelect"); if (select) { // If we don't match anything, set to "0 (normal)" var newIndex = 2; var size = select.getAttribute("size"); if ( size == "mixed") { // No single type selected newIndex = -1; } else {... | |
var fieldView = new pageInfoTreeView(["field-number","field-label","field-field","field-type","field-value"]); | var fieldView = new pageInfoTreeView(["field-number","field-label","field-field","field-type","field-value"], COPYCOL_NONE); | function onFormSelect(){ var theBundle = document.getElementById("pageinfobundle"); var formTree = document.getElementById("formtree"); var formView = formTree.treeBoxObject.view; if (!formView.rowCount) return; if (formView.selection.count == 1) { var formPreview = document.getElementById("formpreview"); v... |
var item = aItems[i]; dump(item + "\n"); var eventBox = savedThis.createEventBox(item); dump(eventBox + "\n"); dump("adding box\n"); | var eventBox = savedThis.createEventBox(aItems[i]); | onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems) { for (var i = 0; i < aCount; ++i) { //items[aItems[i].id] = aItems[i]; var item = aItems[i]; dump(item + "\n"); var eventBox = savedThis.createEventBox(item); ... |
var lastmodifed; | onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems) { var lastmodifed; for (var i=0; i<aCount; i++) { calComp.addSubcomponent(aItems[i].icalComponent); } } | |
document.getElementById("btnSession").disabled = !aSiteField.value; document.getElementById("btnBlock").disabled = !aSiteField.value; document.getElementById("btnAllow").disabled = !aSiteField.value; | var site = aSiteField.value.replace(/^\s*([-\w]*:\/+)?/, ""); document.getElementById("btnSession").disabled = !site; document.getElementById("btnBlock").disabled = !site; document.getElementById("btnAllow").disabled = !site; | onHostInput: function (aSiteField) { document.getElementById("btnSession").disabled = !aSiteField.value; document.getElementById("btnBlock").disabled = !aSiteField.value; document.getElementById("btnAllow").disabled = !aSiteField.value; }, |
if (aEvent.keyCode == 13) gPermissionManager.addPermission(nsIPermissionManager.ALLOW_ACTION); | if (aEvent.keyCode == KeyEvent.DOM_VK_RETURN) document.getElementById("btnAllow").click(); | onHostKeyPress: function (aEvent) { if (aEvent.keyCode == 13) gPermissionManager.addPermission(nsIPermissionManager.ALLOW_ACTION); }, |
var preview = document.getElementById("imagepreview"); | var saveAsButton = document.getElementById("imagesaveasbutton"); | function onImageSelect(){ var outliner = document.getElementById("imageoutliner"); var preview = document.getElementById("imagepreview"); if (outliner.outlinerBoxObject.selection.count == 1) { var view = outliner.outlinerBoxObject.view; if (!view.rowCount) return; var clickedRow = outliner.outlinerBoxObjec... |
var view = outliner.outlinerBoxObject.view; if (!view.rowCount) return; var clickedRow = outliner.outlinerBoxObject.selection.currentIndex; var lineNum = view.getCellText(clickedRow, "image-number"); makePreview(imageList[lineNum-1]); | makePreview(getSelectedItem(outliner)); saveAsButton.setAttribute("disabled", "false"); } else { saveAsButton.setAttribute("disabled", "true"); | function onImageSelect(){ var outliner = document.getElementById("imageoutliner"); var preview = document.getElementById("imagepreview"); if (outliner.outlinerBoxObject.selection.count == 1) { var view = outliner.outlinerBoxObject.view; if (!view.rowCount) return; var clickedRow = outliner.outlinerBoxObjec... |
makePreview(getSelectedImage(tree)); | makePreview(tree.treeBoxObject.selection.currentIndex); | function onImageSelect(){ var tree = document.getElementById("imagetree"); var saveAsButton = document.getElementById("imagesaveasbutton"); if (tree.treeBoxObject.selection.count == 1) { makePreview(getSelectedImage(tree)); saveAsButton.setAttribute("disabled", "false"); } else saveAsButton.setAttribute(... |
var imageUrl = firstCell.getAttribute("value"); | var imageUrl = firstCell.getAttribute("label"); | function onImageSelect(){ var tree = document.getElementById("imageTree"); var imageFrame = document.getElementById("imageFrame"); if (tree.selectedItems.length == 1) { var clickedRow = tree.selectedItems[0].firstChild; var firstCell = clickedRow.firstChild; var imageUrl = firstCell.getAttribute("value")... |
var imageFrame = document.getElementById("imageFrame"); | function onImageSelect(){ var tree = document.getElementById("imageTree"); var imageFrame = document.getElementById("imageFrame"); if (tree.selectedItems.length == 1) { var clickedRow = tree.selectedItems[0].firstChild; var firstCell = clickedRow.firstChild; var imageUrl = firstCell.getAttribute("label"); ... | |
imageFrame.setAttribute("src", imageUrl); | setTimeout(placeImage, 0, imageFrame, imageUrl); | function onImageSelect(){ var tree = document.getElementById("imageTree"); var imageFrame = document.getElementById("imageFrame"); if (tree.selectedItems.length == 1) { var clickedRow = tree.selectedItems[0].firstChild; var firstCell = clickedRow.firstChild; var imageUrl = firstCell.getAttribute("label"); ... |
if (email.split('@').length < 2 && parent.currentAccountData.domain) email += "@" + parent.currentAccountData.domain; | if (email.split('@').length < 2 && parent.gCurrentAccountData.domain) email += "@" + parent.gCurrentAccountData.domain; | function onInit() { var pageData = parent.wizardManager.WSM.PageData; var email = ""; if (pageData.identity && pageData.identity.email) { // fixup the email email = pageData.identity.email.value; if (email.split('@').length < 2 && parent.currentAccountData.domain) email += "@" +... |
var smtpserver = document.getElementById("smtphostname"); | var smtpTextField = document.getElementById("smtphostname"); | function onInit() { var smtpserver = document.getElementById("smtphostname"); if (smtpserver && smtpserver.value == "" && parent.smtpService.defaultServer.hostname) smtpserver.value = parent.smtpService.defaultServer.hostname;} |
if (smtpserver && smtpserver.value == "" && parent.smtpService.defaultServer.hostname) smtpserver.value = parent.smtpService.defaultServer.hostname; | var smtpServer = parent.smtpService.defaultServer; if (smtpTextField && smtpTextField.value == "" && smtpServer.hostname) smtpTextField.value = smtpServer.hostname; setDivText("smtpStaticText", smtpServer.hostname); hideShowSmtpSettings(smtpServer); | function onInit() { var smtpserver = document.getElementById("smtphostname"); if (smtpserver && smtpserver.value == "" && parent.smtpService.defaultServer.hostname) smtpserver.value = parent.smtpService.defaultServer.hostname;} |
gPrefsBundle = document.getElementById("bundle_prefs"); | function onInit() { var smtpTextField = document.getElementById("smtphostname"); var smtpServer = parent.smtpService.defaultServer; if (smtpTextField && smtpTextField.value == "" && smtpServer.hostname) smtpTextField.value = smtpServer.hostname; // modify the value in the smtp display if we already have a... | |
setupFixedUI(); | function onInit() { initServerType(); setupBiffUI(); setupMailOnServerUI();} | |
if (email.split('@').length < 2 && parent.gCurrentAccountData.domain) email += "@" + parent.gCurrentAccountData.domain; | if (email.split('@').length < 2 && currentAccountData && currentAccountData.domain) email += "@" + currentAccountData.domain; | function onInit() { var pageData = parent.wizardManager.WSM.PageData; var email = ""; if (pageData.identity && pageData.identity.email) { // fixup the email email = pageData.identity.email.value; if (email.split('@').length < 2 && parent.gCurrentAccountData.domain) email += "@" ... |
var username=""; if (pageData.login && pageData.login.username) username = pageData.login.username.value; setDivTextFromForm("server.username", username); | var userName=""; if (pageData.login && pageData.login.username) { userName = pageData.login.username.value; } if (!userName && email) { var emailData = email.split('@'); userName = emailData[0]; } setDivTextFromForm("server.username", userName); if (showMailServerDetails) { var incomingServerName=""; if (pageData.... | function onInit() { var pageData = parent.wizardManager.WSM.PageData; var email = ""; if (pageData.identity && pageData.identity.email) { // fixup the email email = pageData.identity.email.value; if (email.split('@').length < 2 && parent.gCurrentAccountData.domain) email += "@" ... |
gPrefsBundle = document.getElementById("bundle_prefs"); | function onInit() { var accountNameInput = document.getElementById("prettyName"); if (accountNameInput.value=="") { var pageData = parent.GetPageData(); var type = parent.getCurrentServerType(pageData); var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + typ... | |
var hiddenInput = document.getElementById("servertype"); dump("hiddenInput = " + hiddenInput.value + "\n"); var servertypeMenulist = document.getElementById("servertypeMenulist"); if (hiddenInput.value) { var selectedElements = servertypeMenulist.getElementsByAttribute("data", hiddenInput.value); if (selectedElements ... | function onInit() { var smtpTextField = document.getElementById("smtphostname"); var smtpServer = parent.smtpService.defaultServer; if (smtpTextField && smtpTextField.value == "" && smtpServer.hostname) smtpTextField.value = smtpServer.hostname; setDivText("smtpStaticText", smtpServer.hostname); hideShow... | |
gEncryptIfPossible = document.getElementById("identity.encrypt_mail_if_possible"); gEncryptAlways = document.getElementById("identity.encrypt_mail_always"); | gHiddenEncryptionPolicy = document.getElementById("identity.encryptionpolicy"); gEncryptionChoices = document.getElementById("encryptionChoices"); | function onInit() { // initialize all of our elements based on the current identity values.... gEncryptionCertName = document.getElementById("identity.encryption_cert_name"); gEncryptIfPossible = document.getElementById("identity.encrypt_mail_if_possible"); gEncryptAlways = document.getElementById("identity.... |
gEncryptIfPossible.checked = gIdentity.getBoolAttribute("encrypt_mail_if_possible"); gEncryptAlways.checked = gIdentity.getBoolAttribute("encrypt_mail_always"); | var selectedItemId = null; var encryptionPolicy = gIdentity.getIntAttribute("encryptionpolicy"); switch (encryptionPolicy) { case 1: selectedItemId = 'encrypt_mail_if_possible'; break; case 2: selectedItemId = 'encrypt_mail_always'; break; default: selectedItemId = 'encrypt_mail_never'; break; } gEncryptionChoices.sel... | function onInit() { // initialize all of our elements based on the current identity values.... gEncryptionCertName = document.getElementById("identity.encryption_cert_name"); gEncryptIfPossible = document.getElementById("identity.encrypt_mail_if_possible"); gEncryptAlways = document.getElementById("identity.... |
gEncryptIfPossible.setAttribute("disabled", true); | document.getElementById('encrypt_mail_if_possible').setAttribute("disabled", true); | function onInit() { // initialize all of our elements based on the current identity values.... gEncryptionCertName = document.getElementById("identity.encryption_cert_name"); gEncryptIfPossible = document.getElementById("identity.encrypt_mail_if_possible"); gEncryptAlways = document.getElementById("identity.... |
else { enableSigningControls(); } enableCertSelectButtons(); | function onInit() { // initialize all of our elements based on the current identity values.... gEncryptionCertName = document.getElementById("identity.encryption_cert_name"); gHiddenEncryptionPolicy = document.getElementById("identity.encryptionpolicy"); gEncryptionChoices = document.getElementById("encryptionChoic... | |
setEmailDescriptionText(); | function onInit(){ checkForDomain(); checkForFullName(); checkForEmail(); } | |
gPrefsBundle = document.getElementById("bundle_prefs"); | function onInit(){ setEmailDescriptionText(); checkForDomain(); checkForFullName(); checkForEmail(); } | |
title = messengerBundle.getString("acctCentralTitleFormat") .replace(/%brandName%/, brandName) .replace(/%accountType%/, acctType) .replace(/%accountName%/, acctName); | title = messengerBundle.getFormattedString("acctCentralTitleFormat", [brandName, acctType, acctName]); | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; var brandBundle; var messengerBundle; // Set the header for the page. // Title containts the brand name of the application and the account // type... |
try { if (!nsPrefBranch) { var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); nsPrefBranch = prefService.getBranch(null); } } catch (ex) { dump("error getting pref service. "... | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; var brandBundle; var messengerBundle; // Set the header for the page. // Title containts the brand name of the application and the account // type... | |
gPrefsBundle = document.getElementById("bundle_prefs"); | function onInit() { var loginNameInput = document.getElementById("username"); if (loginNameInput.value == "") { // retrieve data from previously entered pages var pageData = parent.wizardManager.WSM.PageData; var type = parent.getCurrentServerType(pageData); dump("type = " + type + "\n"); ... | |
brandBundle = srGetStrBundle("chrome: brandName = brandBundle.GetStringFromName("brandShortName"); | brandBundle = document.getElementById("bundle_brand"); brandName = brandBundle.getString("brandShortName"); | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; // Set the header for the page. // Title containts the brand name of the application and the account // type (mail/news) and the name of the account ... |
msgBundle = srGetStrBundle("chrome: | messengerBundle = document.getElementById("brand_messenger"); | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; // Set the header for the page. // Title containts the brand name of the application and the account // type (mail/news) and the name of the account ... |
acctType = msgBundle.GetStringFromName("newsAcctType"); | acctType = messengerBundle.getString("newsAcctType"); | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; // Set the header for the page. // Title containts the brand name of the application and the account // type (mail/news) and the name of the account ... |
acctType = msgBundle.GetStringFromName("mailAcctType"); | acctType = messengerBundle.getString("mailAcctType"); | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; // Set the header for the page. // Title containts the brand name of the application and the account // type (mail/news) and the name of the account ... |
title = msgBundle.GetStringFromName("acctCentralTitleFormat") | title = messengerBundle.getString("acctCentralTitleFormat") | function OnInit(){ var title = null; var titleElement = null; var brandName = null; var acctType = null; var acctName = null; // Set the header for the page. // Title containts the brand name of the application and the account // type (mail/news) and the name of the account ... |
if (listbox) { LoadDirectoriesList(listbox); } | LoadDirectoriesList(listbox); if (gPrefInt.prefIsLocked("ldap_2.disable_button_add")) document.getElementById("addButton").setAttribute('disabled', true); | function onInitEditDirectories(){ var listbox = document.getElementById("directoriesList"); gFromGlobalPref = window.arguments[0].fromGlobalPref; if (listbox) { LoadDirectoriesList(listbox); }} |
var command = ary[1]; | var command = ary[1].toLowerCase(); | function onInputCompleteLine(e, simulated){ if (!simulated) { if (client.inputHistory[0] != e.line) client.inputHistory.unshift (e.line); if (client.inputHistory.length > client.MAX_HISTORY) client.inputHistory.pop(); client.lastHistoryReferenced = -1; ... |
var deckIndex = 0; | var deckIndex = gDialog.AddHTMLAttributeValueDeck.getAttribute("index"); | function onInputHTMLAttributeName(){ var attName = TrimString(gDialog.AddHTMLAttributeNameInput.value).toLowerCase(); // Clear value widget, but prevent triggering update in tree gUpdateTreeValue = false; gDialog.AddHTMLAttributeValueInput.value = ""; gUpdateTreeValue = true; if (attName) { // Get value list... |
deckIndex = gDialog.AddHTMLAttributeValueDeck.getAttribute("index"); | function onInputHTMLAttributeName(){ var attName = TrimString(gDialog.AddHTMLAttributeNameInput.value).toLowerCase(); // Clear value widget, but prevent triggering update in tree gUpdateTreeValue = false; gDialog.AddHTMLAttributeValueInput.value = ""; gUpdateTreeValue = true; if (attName) { // Get value list... | |
UpdateExistingAttribute(gDialog.AddHTMLAttributeNameInput.value, value, "HTMLAList"); | if ( !UpdateExistingAttribute(name, value, "HTMLAList" ) && value) AddTreeItem(name, value, "HTMLAList", HTMLAttrs); | function onInputHTMLAttributeValue(){ if (!gUpdateTreeValue) return; // Trim spaces only from left since we must allow spaces within the string // (we always reset the input field's value below) var value = TrimStringLeft(gDialog.AddHTMLAttributeValueInput.value); if (value) { // Do value filtering based o... |
e.preventDefault(); | function onInputKeyPress (e){ switch (e.keyCode) { case 13: /* CR */ e.line = e.target.value; e.target.value = ""; if (e.line.search(/\S/) == -1) return; onInputCompleteLine (e); break; case 38: /* up */ if ... | |
if (client.prefs["outgoing.colorCodes"]) setTimeout(onInputKeyPressCallback, 100, e.target); | function onInputKeyPress (e){ switch (e.keyCode) { case 9: /* tab */ if (!e.ctrlKey && !e.metaKey) { onTabCompleteRequest(e); e.preventDefault(); } break; case 13: /* CR */ e.line = e.target.value; ... | |
var eventType = event.GetUnicode(); | var eventType = event.toString(); | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "DeleteOrMoveMsgCompleted") HandleDeleteOrMoveMsgCompleted(folder); else if (eventType == "DeleteOrMoveMsgFailed") HandleDeleteOrMoveMsgFailed(folder); else if (eventType == "FolderLoaded") { if (fol... |
dump("In OnFolderLoaded for " + uri +"\n"); | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFol... | |
if (gNextMessageAfterLoad) { gNextMessageAfterLoad = false; GoNextMessage(navigateUnread, true); msgNavigationService.EnsureDocumentIsLoaded(document); SetFocusThreadPane(); PositionThreadPane(); } | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFol... | |
SetUpToolbarButtons(uri); | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFolde... | |
var eventType = event.GetUnicode(); | var eventType = event.toString(); | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "DeleteOrMoveMsgCompleted") { HandleDeleteOrMoveMessageCompleted(folder); } else if (eventType == "DeleteOrMoveMsgFailed") { HandleDeleteOrMoveMessageFailed(folder); ... |
gNextMessageAfterLoad = false; | var type = gNextMessageAfterLoad; gNextMessageAfterLoad = null; | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); ... |
PositionThreadPane(); | scrolled = ScrollToMessage(type, true, true ); | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); ... |
ScrollToFirstNewMessage(); | if (!scrolled) { ScrollToMessage(nsMsgNavigationType.firstNew, true, false ); } | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); ... |
if (eventType == "FolderCreateCompleted") { SetFolderPicker(folder.URI, gActionTargetElement.id); SetBusyCursor(window, false); } else if (eventType == "FolderCreateFailed") { SetBusyCursor(window, false); } } | if (eventType == "FolderCreateCompleted") { SetFolderPicker(folder.URI, gActionTargetElement.id); SetBusyCursor(window, false); } else if (eventType == "FolderCreateFailed") SetBusyCursor(window, false); } | OnItemEvent: function(folder, event) { var eventType = event.toString(); if (eventType == "FolderCreateCompleted") { SetFolderPicker(folder.URI, gActionTargetElement.id); SetBusyCursor(window, false); } else if (eventType == "FolderCreateFailed") { S... |
var eventType = event.GetUnicode(); | var eventType = event.toString(); | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "FolderCreateCompleted") { SetFolderPicker(folder.URI, gActionTargetElement.id); SetBusyCursor(window, false); } else if (eventType == "FolderCreateFailed") { ... |
if (property.GetUnicode() == "TotalMessages" || property.GetUnicode() == "TotalUnreadMessages") { | if (property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") { | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { var currentLoadedFolder = GetLoadedMsgFolder(); if (!currentLoadedFolder) return; var currentURI = currentLoadedFolder.URI; //if we don't have a folder loaded, don't bother. if (currentURI) { if (property.GetUnicode() == "To... |
if(property.GetUnicode() == "TotalMessages" || property.GetUnicode() == "TotalUnreadMessages") { | if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") { | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { var currentLoadedFolder = GetThreadPaneFolder(); if (!currentLoadedFolder) return; var currentURI = currentLoadedFolder.URI; //if we don't have a folder loaded, don't bother. if(currentURI) { if(property.GetUnic... |
folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); | var folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { var currentLoadedFolder = GetThreadTreeFolder(); var currentURI = currentLoadedFolder.getAttribute('ref'); //if we don't have a folder loaded, don't bother. if(currentURI) { if(property.GetUnicode() == "TotalMessages" || property.GetUnicod... |
if(property == "TotalMessages" || property == "TotalUnreadMessages") | if(property.GetUnicode() == "TotalMessages" || property.GetUnicode() == "TotalUnreadMessages") | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { if(property == "TotalMessages" || property == "TotalUnreadMessages") { folder = item.QueryInterface(Components.interfaces.nsIMsgFolder); if(folder) { var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource); ... |
UpdateFolderLocationPicker(item); | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { if (item == msgWindow.openFolder) { if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") { UpdateStatusMessageCounts(gMsgFolderSelected); } } }, | |
if (item == msgWindow.openFolder) { | if (item == gMsgFolderSelected) { | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { if (item == msgWindow.openFolder) { if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") { UpdateStatusMessageCounts(gMsgFolderSelected); UpdateFolderLocationPicker(item); ... |
UpdateStatusMessageCounts(msgWindow.openFolder); | UpdateStatusMessageCounts(gMsgFolderSelected); | OnItemIntPropertyChanged: function(item, property, oldValue, newValue) { if (item == msgWindow.openFolder) { if(property.toString() == "TotalMessages" || property.toString() == "TotalUnreadMessages") { UpdateStatusMessageCounts(msgWindow.openFolder); } } }, |
}, | } | onItemSelected: function() { // This will (eventually) call isCommandEnabled on Copy viewer.pane.panelset.updateAllCommands(); }, |
doSetOKCancel(onAccept, onCancel, doHelpButton); | function onJunkMailLoad(){ if (window.arguments && window.arguments[0]) { // XXX todo, what if no folder? setupForAccountFromFolder(window.arguments[0].folder.URI); } doSetOKCancel(onAccept, onCancel, doHelpButton);} | |
else if (e.keyCode == 13) { var fileList = treeView.selectedFiles; if (fileList.length > 0) { var file = fileList.queryElementAt(0, nsIFile); if (file.isDirectory()) { gotoDirectory(file); e.preventDefault(); } } } | function onKeypress(e) { if (e.keyCode == 8) /* backspace */ goUp(); else if (e.keyCode == 13) { /* enter */ var fileList = treeView.selectedFiles; if (fileList.length > 0) { var file = fileList.queryElementAt(0, nsIFile); if (file.isDirectory()) { gotoDirectory(file); e.preventDefaul... | |
window._content.focus(); ResetStructToolbar(); | window.content.focus(); | function OnKeyPress(event){ var editor = GetCurrentEditor(); var keyCode = event.keyCode; if (keyCode == 13) { var newTag = event.target.value; var element = gContextMenuFiringDocumentElement; var offset = 0; var childNodes = element.parentNode.childNodes; while (childNodes.item(offset) != element) { ... |
ResetStructToolbar(); | window.content.focus(); | function OnKeyPress(event){ var editor = GetCurrentEditor(); var keyCode = event.keyCode; if (keyCode == 13) { var newTag = event.target.value; var element = gContextMenuFiringDocumentElement; var offset = 0; var childNodes = element.parentNode.childNodes; while (childNodes.item(offset) != element) { ... |
function onLess(event) | function onLess(event, rowNumber) | function onLess(event){ if (gTotalSearchTerms>1) removeSearchRow(--gTotalSearchTerms); if (gTotalSearchTerms==1) gSearchLessButton .setAttribute("disabled", "true"); // the user removed a term, so scroll to the bottom so they are aware of it scrollToLastSearchTerm(gTotalSearchTerms);} |
if (gTotalSearchTerms>1) removeSearchRow(--gTotalSearchTerms); if (gTotalSearchTerms==1) gSearchLessButton .setAttribute("disabled", "true"); | if (gTotalSearchTerms > 1) { removeSearchRow(rowNumber); --gTotalSearchTerms; } | function onLess(event){ if (gTotalSearchTerms>1) removeSearchRow(--gTotalSearchTerms); if (gTotalSearchTerms==1) gSearchLessButton .setAttribute("disabled", "true"); // the user removed a term, so scroll to the bottom so they are aware of it scrollToLastSearchTerm(gTotalSearchTerms);} |
scrollToLastSearchTerm(gTotalSearchTerms); | if (gTotalSearchTerms ==1 ) document.getElementById("less0").setAttribute("disabled", "true"); | function onLess(event){ if (gTotalSearchTerms>1) removeSearchRow(--gTotalSearchTerms); if (gTotalSearchTerms==1) gSearchLessButton .setAttribute("disabled", "true"); // the user removed a term, so scroll to the bottom so they are aware of it scrollToLastSearchTerm(gTotalSearchTerms);} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.