rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
toolkitCore.CloseWindow(window); | window.close(); | function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // te... |
dialog.Src = document.getElementById("image.Src"); | dialog.srcInput = document.getElementById("image.srcInput"); dialog.altTextInput = document.getElementById("image.altTextInput"); | function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // te... |
dialog.AltText = document.getElementById("image.AltText"); if (null == dialog.Src || null == dialog.AltText ) | dialog.AdvancedButton = document.getElementById("AdvancedButton"); dialog.AdvancedRow = document.getElementById("AdvancedRow"); dialog.AdvancedRow.style.display = "none"; if (null == dialog.srcInput || null == dialog.altTextInput ) | function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // te... |
dialog.Src.focus(); | dialog.srcInput.focus(); | function Startup(){ dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // te... |
gExtensionsView.addEventListener("richview-select", onExtensionSelect, false); | gExtensionsView.addEventListener("select", onExtensionSelect, false); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... |
gExtensionsView.addEventListener("richview-select", onThemeSelect, false); | gExtensionsView.addEventListener("select", onThemeSelect, false); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... |
dialog.SelectionList.setAttribute("disabled", "true"); dialog.PreviousButton.setAttribute("disabled", "true"); dialog.NextButton.setAttribute("disabled", "true"); | if (rowCount == 1 && colCount == 1) { dialog.SelectionList.setAttribute("disabled", "true"); dialog.PreviousButton.setAttribute("disabled", "true"); dialog.NextButton.setAttribute("disabled", "true"); } | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... |
gCB_AddGroup.checked = true; | gCB_AddGroup.setAttribute("checked", "true"); | function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; var dialogElement = document.documentElement; if ("arguments"... |
fillSettings(); } else { | try { fillSettings(); } catch (ex) { dump("pref-directory-add.js:Startup(): fillSettings() exception: " + ex + "\n"); } } else { | function Startup(){ if ( "arguments" in window && window.arguments[0] ) { gCurrentDirectory = window.arguments[0].selectedDirectory; gCurrentDirectoryString = window.arguments[0].selectedDirectoryString; fillSettings(); } else { fillDefaultSettings(); }} |
#ifdef MOZ_WIDGET_GTK2 var shell = getShellService(); if (!shell) document.getElementById("defaultBrowserPrefs").hidden = true; #endif | function Startup(){ var useButton = document.getElementById("browserUseCurrent"); try { var browser = top.opener.document.getElementById("content"); var l = browser.mPanelContainer.childNodes.length; if (l > 1) useButton.label = useButton.getAttribute("label2"); } catch (e) { // prefwindow wasn... | |
gExtensionsView.addEventListener("select", onExtensionSelect, false); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... | |
gExtensionsView.init(); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... | |
selectedCellCount = countObj.value; | gSelectedCellCount = countObj.value; | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... |
if (selectedCellCount == 0) | if (gSelectedCellCount == 0) | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... |
SetSelectionButtons(); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
{ | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
dialog.PreviousButton.setAttribute("disabled", "true"); dialog.NextButton.setAttribute("disabled", "true"); } | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; dialog = new Object; if (!dialog) window.close(); // Get dialog widgets - Table Panel dialog.TableRowsInput = document.getElementById("TableRowsInput"); dialog.TableColumnsInput = document.get... | |
document.getElementById('tabNavigationLinks').setChecked((gData.tabNavPref & kTabToLinks) != 0); document.getElementById('tabNavigationForms').setChecked((gData.tabNavPref & kTabToForms) != 0); | var tabNavigationLinks = document.getElementById('tabNavigationLinks'); tabNavigationLinks.checked = ((gData.tabNavPref & kTabToLinks) != 0); tabNavigationLinks.disabled = gData.tabNavLocked; var tabNavigationForms = document.getElementById('tabNavigationForms'); tabNavigationForms.checked = ((gData.tabNavPref & kTabTo... | function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-keynav.xul"]; if (!/Mac/.test(navigator.platform)) { if (!("tabNavPref" in gData)) { // Textboxes are always part of the tab order gData.tabNavPref = parent.hPrefWindow.getPref('int', 'accessi... |
if (!("linksOnlyPref" in gData)) gData.linksOnlyPref = parent.hPrefWindow.getPref('bool', 'accessibility.typeaheadfind.linksonly')? 1: 0; var radioGroup = document.getElementById('findAsYouTypeAutoWhat'); radioGroup.selectedIndex = gData.linksOnlyPref; | function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-keynav.xul"]; if (!/Mac/.test(navigator.platform)) { if (!("tabNavPref" in gData)) { // Textboxes are always part of the tab order gData.tabNavPref = parent.hPrefWindow.getPref('int', 'accessi... | |
togglePermissionEnabling(); | function Startup(){ policyButton = document.getElementById("popupPolicy"); manageTree = document.getElementById("permissionsTree"); togglePermissionEnabling(); loadPermissions(); javascriptEnabledChange() gImagesPref = document.getElementById("enableImagePref"); gImagesEnabled = document.getElementById("enable... | |
toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } | function Startup() { dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // N... | |
dump("Getting parent appcore\n"); var editorName = document.getElementById("args").getAttribute("value"); | var editorName = window.arguments[0]; | function Startup() { dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // N... |
if(!appCore || !toolkitCore) { | if(!appCore) { | function Startup() { dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // N... |
toolkitCore.CloseWindow(window); | window.close(); | function Startup() { dump("Doing Startup...\n"); toolkitCore = XPAppCoresManager.Find("ToolkitCore"); if (!toolkitCore) { toolkitCore = new ToolkitCore(); if (toolkitCore) toolkitCore.Init("ToolkitCore"); } if(!toolkitCore) { dump("toolkitCore not found!!! And we can't close the dialog!\n"); } // N... |
window.title = GetString("TransferProgressCaption"); | document.title = GetString("TransferProgressCaption"); | function Startup(){ //ddump("In sroaming/transfer/progressDialog::Startup()"); gDialog.FileList = document.getElementById("FileList"); gDialog.StatusMessage = document.getElementById("StatusMessage"); gDialog.ListingProgress = document.getElementById("ListingProgress"); gDialog.Close ... |
if (!gCheckCompat) { var msgText = getExtensionString("disabledCompatMsg"); var buttonLabel = getExtensionString("enableButtonLabel"); var buttonAccesskey = getExtensionString("enableButtonAccesskey"); var notifyData = "addons-enable-compatibility"; var addonsMsg = document.getElementById("addonsMsg"); addonsMsg.showMe... | function Startup() { var startupView = window.location.search.substr("?view=".length, window.location.search.length); gExtensionStrings = document.getElementById("extensionsStrings"); gPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);... | |
dump("HLine Properties startup...\n"); | function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLin... | |
dump("HLine is not selected! Shouldn't be here!\n"); | function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLin... | |
window.tryToClose = WindowIsClosing; | function Startup(){ gBrowser = document.getElementById("content"); var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.arguments[0]; gIsLoadingBlank = uriToLoad == "about:... | |
else if (viewGroup.hasAttribute("last-selected")) | else if (viewGroup.hasAttribute("last-selected") && !document.getElementById(viewGroup.getAttribute("last-selected") + "-view").hidden) | function Startup() { gExtensionStrings = document.getElementById("extensionsStrings"); gPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var defaultPref = gPref.QueryInterface(Components.interfaces.nsIPrefService) ... |
loadCookies(); | if (!isImages) { loadCookies(); } | function Startup() { // xpconnect to cookiemanager/permissionmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryInterface(Components.interfaces.nsICookieManager); permissionmanager = Components.classes["@mozilla.org/permissionmanage... |
gWindowState = window.location.search.substr("?type=".length, window.location.search.length); | var startupView = window.location.search.substr("?view=".length, window.location.search.length); gExtensionStrings = document.getElementById("extensionsStrings"); gPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var defaultPref = gPref.QueryInterface(Com... | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... |
var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); typeCondition.setAttribute("object", gItemType); document.documentElement.setAttribute("windowtype", document.documentElem... | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... | |
gExtensionsView.setAttribute("state", gWindowState); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... | |
gApp = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo) .QueryInterface(Components.interfaces.nsIXULRuntime); | var appInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo) .QueryInterface(Components.interfaces.nsIXULRuntime); gInSafeMode = appInfo.inSafeMode; gAppID = appInfo.ID; updateOptionalViews(); gExtensionManager.sortTypeByProperty(nsIUpdateItem.TYPE_ADDON, "name", tr... | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... |
gExtensionsView.addEventListener("extension-updatenow", onExtensionUpdateNow, false); var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var defaultPref = pref.QueryInterface(Components.interfaces.nsIPrefService) .getDefaultBranch(null); if (!isExtensi... | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... | |
var extensionsStrings = document.getElementById("extensionsStrings"); document.title = extensionsStrings.getString(gWindowState + "Title"); gExtensionsViewController.onCommandUpdate(); var getMore = document.getElementById("getMore"); try { var getMoreURL = pref.getComplexValue(isExtensions ? PREF_EXTENSIONS_GETMOREE... | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... | |
performUpdate(); | checkUpdatesAll(); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... |
if (!isExtensions) { #ifndef MOZ_PHOENIX document.getElementById("installButton").setAttribute("tooltiptext", extensionsStrings.getString("cmdInstallTooltipTheme")); #endif document.getElementById("uninstallButton").setAttribute("tooltiptext", extensionsStrings.getString("cmdUninstallTooltipTheme")); document.getElemen... | if (gExtensionsView.selectedItem) gExtensionsView.scrollBoxObject.scrollToElement(gExtensionsView.selectedItem); if (gInSafeMode) { var addonsMsg = document.getElementById("addonsMsg"); addonsMsg.showMessage("chrome: getExtensionString("safeModeMsg"), null, null, true, null); | function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gItemType = isExtensions ? nsIUpdateItem.TYPE_EXTENSION : nsIUpdateItem.TYPE_THEME; var typeCondition = document.getElementById("typeCondition"); t... |
imageMap = editorShell.CreateElementWithDefaults("map"); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; dialog.srcInput = document.getElementById( "srcInput" ); dialog.altTextInput = document.getElementById( "altTextInput" ); dialog.MoreFewer... | |
if( !imageMap ) { dump("Failed to get map element or create a new one!\n"); window.close(); } if (insertNewIMap) globalMap = imageMap.cloneNode(true); else globalMap = imageMap; | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; dialog.srcInput = document.getElementById( "srcInput" ); dialog.altTextInput = document.getElementById( "altTextInput" ); dialog.MoreFewer... | |
var insertButton = document.documentElement.getButton("accept"); if (insertButton) { insertButton.setAttribute("label", GetString("Insert")); insertButton.setAttribute("accesskey", GetString("InsertAccessKey")); } var cancelButton = document.getElementById("insertCharsDlg").getButton("cancel"); if (cancelButton) cance... | function Startup(){ if (!GetCurrentEditor()) { window.close(); return; } StartupLatin(); // Dialog is non-modal: // Change button text: "Ok" to "Insert"; "Cancel" to "Close" var insertButton = document.documentElement.getButton("accept"); if (insertButton) { insertButton.setAttribute("label", GetStrin... | |
if (gData.loaded) { | if ("loaded" in gData && "themeIndex" in gData) { | function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var list = document.getElementById( "skinsList" ); if (gData.loaded) { list.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent.hPrefWindow.registerOKCallbac... |
originalName = anchorElement.name; | originalName = ConvertToCDATAString(anchorElement.name); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); nameInput = document.getElementById("nameInput"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an element and don't need to ins... |
DoEnabling(); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); nameInput = document.getElementById("nameInput"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an element and don't need to ins... | |
var dateEnded = ds.GetTarget(resource, dateStartedRes, true).QueryInterface(Components.interfaces.nsIRDFDate).Value; | var dateEnded = ds.GetTarget(resource, dateEndedRes, true).QueryInterface(Components.interfaces.nsIRDFDate).Value; | function Startup(){ const NC_NS = "http://home.netscape.com/NC-rdf#"; const rdfSvcContractID = "@mozilla.org/rdf/rdf-service;1"; const rdfSvcIID = Components.interfaces.nsIRDFService; var rdfService = Components.classes[rdfSvcContractID].getService(rdfSvcIID); const dlmgrContractID = "@mozilla.org/download-manager... |
element.setAttribute("style","display: none;" ); | element.setAttribute("hidden", "true"); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the "walle... |
element.setAttribute("selected","true" ); | element.setAttribute("hidden", "true"); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the "walle... |
element.setAttribute("style", "display: none"); | element.setAttribute("hidden", "true"); | function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the "walle... |
if (legendElement.innerHTML.match(/</)) | if (/</.test(legendElement.innerHTML)) | function Startup(){ if (!InitEditorShell()) return; gDialog.editText = document.getElementById("EditText"); gDialog.legendText = document.getElementById("LegendText"); gDialog.legendAlign = document.getElementById("LegendAlign"); gDialog.RemoveFieldSet = document.getElementById("RemoveFieldSet"); // Get a sing... |
TabPanels = document.getElementById("TabPanels"); var TableTab = document.getElementById("TableTab"); var CellTab = document.getElementById("CellTab"); | gDialog.TableTab = document.getElementById("TableTab"); gDialog.CellTab = document.getElementById("CellTab"); gDialog.TabPanels = document.getElementById("TabPanels"); | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; // Get dialog widgets - Table Panel gDialog.TableRowsInput = document.getElementById("TableRowsInput"); gDialog.TableColumnsInput = document.getElementById("TableColumnsInput"); gDialog.TableWidth... |
TabPanels.setAttribute("selectedIndex", CellPanel); | gDialog.TabPanels.selectedIndex = CellPanel; | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; // Get dialog widgets - Table Panel gDialog.TableRowsInput = document.getElementById("TableRowsInput"); gDialog.TableColumnsInput = document.getElementById("TableColumnsInput"); gDialog.TableWidth... |
CellTab.setAttribute("selected", "true"); TableTab.removeAttribute("selected"); | gDialog.CellTab.selected = "true"; gDialog.TableTab.selected = null; | function Startup(){ if (!InitEditorShell()) return; selection = editorShell.editorSelection; if (!selection) return; // Get dialog widgets - Table Panel gDialog.TableRowsInput = document.getElementById("TableRowsInput"); gDialog.TableColumnsInput = document.getElementById("TableColumnsInput"); gDialog.TableWidth... |
bestState = bothHide; | bestState = {capture: hide, prefill: hide}; | function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = bothHide; if (!content || !content.document) { return bothFalse; } var document = content.document; if (!("forms" in document)) { // this will occur i... |
return bothFalse; | return {capture: false, prefill: false}; | function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = bothHide; if (!content || !content.document) { return bothFalse; } var document = content.document; if (!("forms" in document)) { // this will occur i... |
return bothTrue; | return {capture: true, prefill: true}; | function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = bothHide; if (!content || !content.document) { return bothFalse; } var document = content.document; if (!("forms" in document)) { // this will occur i... |
return bothFalse; | return rv; | function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = bothHide; if (!content || !content.document) { return bothFalse; } var document = content.document; if (!("forms" in document)) { // this will occur i... |
bestState = hide; return bothFalse; | bestState = {capture: hide, prefill: hide}; return rv; | function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = bothHide; if (!content || !content.document) { return bothFalse; } var document = content.document; if (!("forms" in document)) { // this will occur i... |
bestState = enable; | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { if (elementCount > threshhold) { bestState = enable; return true; } bestState = ena... | |
return false; | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { if (elementCount > threshhold) { bestState = enable; return true; } bestState = ena... | |
return false; | function stateFoundInFormsArray(formsArray, captureOrPrefill, threshhold) { var state = getStateFromFormsArray(formsArray, captureOrPrefill, threshhold); if (state == enable) { if (elementCount > threshhold) { bestState = enable; return true; } bestState = ena... | |
var rv = bothFalse; | var rv = {capture: false, prefill: false}; | function stateFoundInFormsArray(formsArray, threshhold) { var rv = bothFalse; var state = getStateFromFormsArray(formsArray, threshhold); for (var i in state) { if (state[i] == enable) { bestState[i] = enable; if (elementCount > threshhold) { rv[i] = true; ... |
window.openDialog("chrome: "chrome,resizable=yes", hostPort); | viewPopups(hostPort); | function StatusbarViewPopupManager() { var hostPort = ""; try { hostPort = getBrowser().selectedBrowser.currentURI.hostPort; } catch(ex) { } // open whitelist with site prefilled to unblock window.openDialog("chrome://communicator/content/permissions/permissionsManager.xul", "", "chrome,... |
"chrome,resizable=yes", hostPort, false); | "chrome,resizable=yes", hostPort); | function StatusbarViewPopupManager() { var hostPort = ""; try { hostPort = getBrowser().selectedBrowser.currentURI.hostPort; } catch(ex) { } // open whitelist with site prefilled to unblock window.openDialog("chrome://communicator/content/popupManager.xul", "", "chrome,resizable=yes", ho... |
output.appendChild(view.messages); | output.appendChild(adoptNode(view.messages)); | function stock_initOutputWindow(newClient, newView, newClickHandler){ function initHeader() { /* it's better if we wait a half a second before poking at these * dom nodes. */ setHeaderState(view.prefs["displayHeader"]); updateHeader(); var div = document.getElementById("message... |
window.close(); | return true; | function stopFetching(){ if (gLdapOperation) { try { gLdapOperation.abandon(); } catch (e) { } } window.close();} |
InlineSpellChecker.inlineSpellChecker.enableRealTimeSpell = false; | InlineSpellChecker.editor.setSpellcheckUserOverride(false); | function StopInlineSpellChecker(){ if (InlineSpellChecker.inlineSpellChecker) InlineSpellChecker.inlineSpellChecker.enableRealTimeSpell = false;} |
for (var i = 0; i < this.mSelectDocs.length; ++i) this.mSelectDocs[i].removeEventListener("mousedown", MouseDownListener, true); | stopSelectByClick: function() { this.mSelecting = false; for (var i = 0; i < this.mSelectDocs.length; ++i) this.mSelectDocs[i].removeEventListener("mousedown", MouseDownListener, true); this.mPanel.panelset.setCommandAttribute("cmd:selectByClick", "checked", null); }, | |
} | storeNextItem: function() { if (!this.itemsToStore.length) { this.createFolder(); return this.cleanupParsingState(this); } var item = this.itemsToStore[this.itemsToStoreIndex]; item.store(); item.markValid(); // if the listener is tracking progress for storing each item, report it her... | |
aSettings.markAsReadOnSpam = document.getElementById("markAsReadOnSpam").checked; | function storeSettings(aSettings, aLoggingEnabled){ aSettings.level = document.getElementById("level").checked ? 100 : 0; aSettings.moveOnSpam = document.getElementById("moveOnSpam").checked; aSettings.moveTargetMode = document.getElementById("moveTargetMode").value; aSettings.actionTargetAccount = document.getElem... | |
aSettings.moveTargetMode = document.getElementById("moveTargetMode").selectedItem.getAttribute("value"); | aSettings.moveTargetMode = document.getElementById("moveTargetMode").value; | function storeSettings(aSettings, aLoggingEnabled){ aSettings.level = document.getElementById("level").checked ? 100 : 0; aSettings.moveOnSpam = document.getElementById("moveOnSpam").checked; aSettings.moveTargetMode = document.getElementById("moveTargetMode").selectedItem.getAttribute("value"); aSettings.actionTar... |
function StreamListener(server) | function StreamListener(observer) | function StreamListener(server){ this.server = server;} |
this.server = server; | this._observer = observer; | function StreamListener(server){ this.server = server;} |
testcases[tc++] = new TestCase( SECTION, x +" === " + y, expect, result ); | new TestCase( SECTION, x +" === " + y, expect, result ); | function StrictEquality( x, y, expect ) { result = ( x === y ); testcases[tc++] = new TestCase( SECTION, x +" === " + y, expect, result );} |
for ( var currentChar = 0, strippedString=""; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } } return strippedString; | for ( var currentChar = 0, strippedString=""; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); | function StripSpaces( s ) { for ( var currentChar = 0, strippedString=""; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } } return strippedString; } |
} return strippedString; } | function StripSpaces( s ) { for ( var currentChar = 0, strippedString=""; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } } return strippedString; } | |
var strippedString = ""; for ( var currentChar = 0; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } } return strippedString; | var strippedString = ""; for ( var currentChar = 0; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } | function StripSpaces( s ) { var strippedString = ""; for ( var currentChar = 0; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } } return strippedString; } |
return strippedString; } | function StripSpaces( s ) { var strippedString = ""; for ( var currentChar = 0; currentChar < s.length; currentChar++ ) { if (!IsWhiteSpace(s.charAt(currentChar))) { strippedString += s.charAt(currentChar); } } return strippedString; } | |
var preHost = uri.preHost; if (preHost) | var userPass = uri.userPass; if (userPass) | function StripUsernamePasswordFromURI(uri){ var url = ""; if (uri) { try { url = uri.spec; var preHost = uri.preHost; if (preHost) { start = url.indexOf(preHost); url = url.slice(0, start) + url.slice(start+preHost.length+1); } } catch (e) {} } return url;} |
start = url.indexOf(preHost); url = url.slice(0, start) + url.slice(start+preHost.length+1); | start = url.indexOf(userPass); url = url.slice(0, start) + url.slice(start+userPass.length+1); | function StripUsernamePasswordFromURI(uri){ var url = ""; if (uri) { try { url = uri.spec; var preHost = uri.preHost; if (preHost) { start = url.indexOf(preHost); url = url.slice(0, start) + url.slice(start+preHost.length+1); } } catch (e) {} } return url;} |
var Bundle = srGetStrBundle("resource:/res/strres.properties"); | var Bundle = srGetStrBundle("resource: | function strresTest() { var Bundle = srGetStrBundle("resource:/res/strres.properties"); var ostr1 = Bundle.GetStringFromName("file"); dump("\n--** JS strBundle GetStringFromName file=" + ostr1 + "len=" + ostr1.length + "**--\n"); var ostr2 = Bundle.GetStringFromID(123); dump("\n--** JS strBundle GetStringFrom... |
this.mRuleBoxObject = XPCU.QI(this.mRuleOutliner.boxObject, "nsIOutlinerBoxObject"); | this.mRuleBoxObject = this.mRuleOutliner.outlinerBoxObject; | function StyleRulesViewer() // implements inIViewer{ this.mObsMan = new ObserverManager(); this.mURL = window.location; this.mRuleOutliner = document.getElementById("olStyleRules"); this.mRuleBoxObject = XPCU.QI(this.mRuleOutliner.boxObject, "nsIOutlinerBoxObject"); this.mPropsOutliner = document.getElementById(... |
this.mPropsBoxObject = XPCU.QI(this.mPropsOutliner.boxObject, "nsIOutlinerBoxObject"); | this.mPropsBoxObject = this.mPropsOutliner.outlinerBoxObject; | function StyleRulesViewer() // implements inIViewer{ this.mObsMan = new ObserverManager(); this.mURL = window.location; this.mRuleOutliner = document.getElementById("olStyleRules"); this.mRuleBoxObject = XPCU.QI(this.mRuleOutliner.boxObject, "nsIOutlinerBoxObject"); this.mPropsOutliner = document.getElementById(... |
function StyleRuleView(aElement) | function StyleRuleView(aObject) | function StyleRuleView(aElement){ this.mDOMUtils = XPCU.createInstance("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils"); this.mRules = this.mDOMUtils.getStyleRules(aElement);} |
this.mRules = this.mDOMUtils.getStyleRules(aElement); | if (doesQI(aObject, "nsIDOMCSSStyleSheet")) { this.mSheetRules = aObject.cssRules; } else { this.mRules = this.mDOMUtils.getStyleRules(aObject); } if (this.mRules) { for (var i = this.mRules.Count(); i >= 0; --i) { var rule = this.mRules.GetElementAt(i); try { rule = XPCU.QI(rule, "nsIDOMCSSStyleRule"); } catch (ex) {... | function StyleRuleView(aElement){ this.mDOMUtils = XPCU.createInstance("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils"); this.mRules = this.mDOMUtils.getStyleRules(aElement);} |
var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); | var itemPersistentOnly = menuPopup.firstChild.nextSibling; while (itemPersistentOnly.nextSibling) menuPopup.removeChild(itemPersistentOnly.nextSibling); | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window.content); var currentStyleSheets = []; for (var i = 0; i < styleSh... |
var noOptionalStyles = true; | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window.content); var currentStyleSheets = []; for (var i = 0; i < styleSh... | |
noOptionalStyles = false; | altStyleSelected = true; | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window.content); var currentStyleSheets = []; for (var i = 0; i < styleSh... |
menuItem.setAttribute("checked", !currentStyleSheet.disabled); | menuItem.setAttribute("checked", !currentStyleSheet.disabled && !styleDisabled); | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window.content); var currentStyleSheets = []; for (var i = 0; i < styleSh... |
itemNoOptStyles.setAttribute("checked", noOptionalStyles); | menuPopup.firstChild.setAttribute("checked", styleDisabled); itemPersistentOnly.setAttribute("checked", !altStyleSelected && !styleDisabled); itemPersistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? true : false; | function stylesheetFillPopup(menuPopup){ var itemNoOptStyles = menuPopup.firstChild; while (itemNoOptStyles.nextSibling) menuPopup.removeChild(itemNoOptStyles.nextSibling); var noOptionalStyles = true; var styleSheets = getAllStyleSheets(window.content); var currentStyleSheets = []; for (var i = 0; i < styleSh... |
this.mOutliner = document.getElementById("olStyleSheets"); this.mOlBox = this.mOutliner.outlinerBoxObject; | function StylesheetsViewer(){ this.mURL = window.location; this.mObsMan = new ObserverManager(this);} | |
} | function stylesheetSwitch(forDocument, title) { docStyleSheets = forDocument.styleSheets; numSS = docStyleSheets.length; for (i=0; i<numSS; i++) { docStyleSheet = docStyleSheets[i]; if (docStyleSheet.title == "") { if (docStyleSheet.disabled == true) docStyleSheet.disabled = false; continue; ... | |
} | function stylesheetSwitch(forDocument, title) { docStyleSheets = forDocument.styleSheets; numSS = docStyleSheets.length; for (i=0; i<numSS; i++) { docStyleSheet = docStyleSheets[i]; if (docStyleSheet.title == "") { if (docStyleSheet.disabled == true) docStyleSheet.disabled = false; continue; ... | |
if (gSubscribableServer) { gSubscribableServer.subscribeCleanup(); } | function subscribeCancel(){ //dump("in subscribeCancel()\n"); Stop(); return true;} | |
if (gSubscribableServer) { gSubscribableServer.subscribeCleanup(); } | function subscribeOK(){ //dump("in subscribeOK()\n") if (top.okCallback) { top.okCallback(top.gServerURI,top.gChangeTable); } return true;} | |
var nntpServer; try { nntpServer = server.QueryInterface(Components.interfaces.nsINntpIncomingServer); if (nntpServer) nntpServer.writeNewsrcFile(); } catch (ex) { } | function SubscribeOKCallback(serverURI, changeTable){ //dump("in SubscribeOKCallback(" + serverURI +")\n"); //dump("change table = " + changeTable + "\n"); var folder = GetMsgFolderFromUri(serverURI); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribabl... | |
gStatusFeedback.showProgress(0); | gStatusFeedback._startMeteors(); | function SubscribeOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0 || event.originalTarget.localName != "treechildren") return; var row = {}, col = {}, obj = {}; gSubscribeTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, obj); if (row.value == -1 || ro... |
gStatusBar.setAttribute("mode", "undetermined"); | function SubscribeOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0 || event.originalTarget.localName != "treechildren") return; var row = {}, col = {}, obj = {}; gSubscribeTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, obj); if (row.value == -1 || ro... | |
gStatusFeedback.showStatusString(Bundle.GetStringFromName("pleaseWaitString")); | gStatusFeedback.showStatusString(gSubscribeBundle.getString("pleaseWaitString")); | function SubscribeOnClick(event){ var t = event.originalTarget; if (event.detail == 2) { ReverseStateFromNode(t.parentNode.parentNode); } else { if (t.getAttribute('twisty') == 'true') { var treeitem = t.parentNode.parentNode.parentNode; var open = treeitem.getAttribute('open'); if(open == "true") { ... |
if (targetclass != 'tree-cell-twisty') { | if (targetclass == 'tree-cell-twisty') { var treeitem = event.target.parentNode.parentNode.parentNode; var open = treeitem.getAttribute('open'); if(open == "true") { var name = treeitem.getAttribute("name"); dump("do twisty for " + name +"\n"); gStatusBar.setAttribute("mode","undetermined"); gSubscribableServer.popu... | function SubscribeOnClick(event){ if (event.detail == 2) { ReverseStateFromNode(event.target.parentNode.parentNode); } else { var targetclass = event.target.getAttribute('class'); if (targetclass != 'tree-cell-twisty') { var name = event.target.parentNode.parentNode.getAttribute('name'); gNameField.setAttribute... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.