rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
minSize = document.getElementById( "minSize" );
function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); // register our ok callback function parent....
dialog.ColorPicker.color = color;
SetCurrentColor(color); dialog.ColorPicker.initColor(color);
function Startup(){ if (!window.arguments[1]) { dump("EdColorPicker: Missing color object param\n"); return; } // window.arguments[1] is object to get initial values and return color data gColorObj = window.arguments[1]; gColorObj.Cancel = false; // Create dialog object to store controls for easy access d...
Registry = Components.classes['component: Registry = Registry.QueryInterface(Components.interfaces.nsIRegistryDataSource); Registry.openDefaultRegistry(); Registry = Registry.QueryInterface(Components.interfaces.nsIRDFDataSource);
Registry = Components.classes['component: Registry = Registry.QueryInterface(Components.interfaces.nsIRegistry); Registry.openWellKnownRegistry(Registry.ApplicationRegistry);
function StartUp(){ SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMode(); Registry = Components.classes['component://netscape/registry-viewer'].createInstance(); Registry = Registry.QueryInterface(Co...
document.getElementById("profiles").focus();
function StartUp(){ SetUpOKCancelButtons(); centerWindowOnScreen(); if(window.location && window.location.search && window.location.search == "?manage=true" ) SwitchProfileManagerMode(); Registry = Components.classes['component://netscape/registry-viewer'].createInstance(); Registry = Registry.QueryInterface(Co...
SetPageProxyState("invalid");
SetPageProxyState("invalid", null);
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gBrowser = d...
var navbundle = document.getElementById("bundle_navigator"); var showSkinsDescription = navbundle.getString("showskinsdescription"); if (showSkinsDescription == "false") { gShowDescription = false; var description = document.getElementById("description"); while (description.hasChildNodes()) description.removeChild(desc...
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-themes.xul"].userData; var list = document.getElementById( "skinsList" ); if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; removeInvalidThemes(); return; }...
bookmarksView.outlinerBody.setAttribute("ref", uri);
bookmarksView.outliner.setAttribute("ref", uri);
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); // Set up the outliner controller // gBookmarksShell = new nsBookmarksShell("bookmarks-outliner", "bookmarks-outlinerbody"); // var rdflinerObserver = new nsBookmarksRDFLinerObserver(); // var builder = bookmarksBody.builder.QueryIn...
var btfMenuItem = document.getElementById("btfMenuItem"); btfMenuItem.setAttribute("id", BMSVC.getBookmarksToolbarFolder().Value);
function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gExpander = document.getElementById("expander"); gMenulist = document.getElementById("sel...
WordInput.focus();
SetTextfieldFocus(WordInput);
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word to...
dump("entering startup\n");
function Startup() {dump("entering startup\n"); // xpconnect to password manager interfaces signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@...
document.documentElement.getButton("accept").label = kSignonBundle.getString("close"); kObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); kObserverService.addObserver(signonReloadDisplay, "signonChanged", false);
function Startup() {dump("entering startup\n"); // xpconnect to password manager interfaces signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@...
dialog.widthUnitsSelect = document.getElementById( "widthUnitsSelect" ); dialog.heightUnitsSelect = document.getElementById( "heightUnitsSelect" );
dialog.widthUnitsMenulist = document.getElementById( "widthUnitsMenulist" ); dialog.heightUnitsMenulist = document.getElementById( "heightUnitsMenulist" );
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...
parent.hPrefWindow.registerOKCallbackFunc(onOK);
function Startup(){ if (top.opener) { var browser = top.opener.document.getElementById("content"); var l = browser.mPanelContainer.childNodes.length; if (l > 1) { var useButton = document.getElementById("browserUseCurrent"); useButton.label = useButton.getAttribute("label2"); } }}
setTimeout(delayedInit, 0);
window.XULBrowserWindow = new nsXULBrowserWindow(); window.buttonPrefListener = new nsButtonPrefListener(); _content.appCore = appCore; appCore.setWebShellWindow(window); var contentArea = document.getElementById("appcontent"); contentArea.addEventListener("load", loadEventHandlers, true); contentArea.addEventL...
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gURLBar = do...
LoadAvailableCharSets();
function Startup(){ if (!InitEditorShell()) return; var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.notifyObservers(null, "charsetmenu-selected", "other"); gDialog.TitleInput = document.getElementById("TitleInput...
dump("***** Previous index of radio group in EdConvertToTable="+gIndex+"\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Create dialog object to store controls for easy access dialog = new Object; dialog.sepRadioGroup = document.getElementById("SepRadioGroup"); dialog.sepCharacterInput = document.getElementById("SepCharacterInput"); dial...
gName.value = window.arguments[0];
gName.value = gArg.name;
function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand...
gSuggestedKeyword = window.arguments[7]; gKeywordRequired = window.arguments[8];
gSuggestedKeyword = gArg.keyword; gKeywordRequired = gArg.bNeedKeyword;
function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand...
gPostData = window.arguments[9];
gPostData = gArg.postData;
function Startup(){ initServices(); initBMService(); gName = document.getElementById("name"); gRequiredFields.push(gName); gKeywordRow = document.getElementById("keywordRow"); gKeyword = document.getElementById("keyword"); gGroup = document.getElementById("addgroup"); gExpander = document.getElementById("expand...
var sidebarSplitter = document.getElementById("sidebar-splitter");
sidebarSplitter = document.getElementById("sidebar-splitter");
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:...
ListStyleList = document.getElementById("ListStyle");
ListTypeList = document.getElementById("ListType");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); ListStyleList = document.getElementById("ListStyle"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("StartingN...
dump("List and global elements: "+ListElement+globalElement+"\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); ListStyleList = document.getElementById("ListStyle"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("StartingN...
ListStyleList.focus();
ListTypeList.focus();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); ListStyleList = document.getElementById("ListStyle"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("StartingN...
window.XULBrowserWindow = new nsXULBrowserWindow(); window.buttonPrefListener = new nsButtonPrefListener(); var webNavigation; try { appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (!appCore) throw Components.results.NS_...
function Startup(){ gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); window.XULBrowserWindow = new...
var contentArea = document.getElementById("appcontent"); contentArea.addEventListener("load", loadEventHandlers, true); contentArea.addEventListener("focus", contentAreaFrameFocus, true); if ("arguments" in window && window.arguments.length > 1 && window.arguments[1]) { if (window.arguments[1].indexOf("charset=") != ...
var homePage = getHomePage(); if (homePage) document.getElementById("home-button").setAttribute("tooltiptext", homePage);
function Startup(){ gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); window.XULBrowserWindow = new...
var homePage = getHomePage(); if (homePage) document.getElementById("home-button").setAttribute("tooltiptext", homePage); var interfaceRequestor = getBrowser().docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress)...
setTimeout(delayedInit, 0);
function Startup(){ gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); window.XULBrowserWindow = new...
dialog.MoreSection = document.getElementById("MoreSection"); dialog.MoreFewerButton = document.getElementById("MoreFewerButton"); dialog.HeadSrcInput = document.getElementById("HeadSrcInput");
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.PageLocation = document.getElementById("PageLocation"); dialog.TitleInput = document.getElementById("TitleInput"); dialog.AuthorInput ...
headNode = editorShell.editorDocument.getElementsByTagName("head").item(0); if (!headNode) window.close(); InitMoreFewer();
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.PageLocation = document.getElementById("PageLocation"); dialog.TitleInput = document.getElementById("TitleInput"); dialog.AuthorInput ...
dialog.TitleInput.focus();
SetTextfieldFocus(dialog.TitleInput);
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.PageLocation = document.getElementById("PageLocation"); dialog.TitleInput = document.getElementById("TitleInput"); dialog.AuthorInput ...
dialog.srcInput.focus();
SetTextfieldFocus(dialog.srcInput);
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...
gBundle = srGetStrBundle("chrome:
gPrefApplicationsBundle = document.getElementById("bundle_prefApplications");
function Startup(){ // set up the string bundle gBundle = srGetStrBundle("chrome://communicator/locale/pref/pref-applications.properties"); // set up the elements gTree = document.getElementById("appTree"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById(...
gTree = document.getElementById("appTree");
gList = document.getElementById("appList");
function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gTree = document.getElementById("appTree"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ...
gTree.database.AddDataSource(gDS); gTree.setAttribute("ref", "urn:mimetypes");
gList.database.AddDataSource(gDS); gList.setAttribute("ref", "urn:mimetypes");
function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gTree = document.getElementById("appTree"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ...
var isPageCycling;
var isPageCycling = false;
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"] .getService(Components.interfaces.nsICmdLineService); var startPage = cmdLineService.URLToLoad; appCore.cmdLineURLUsed = true;
var startPage; if (!appCore.cmdLineURLUsed) { var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"] .getService(Components.interfaces.nsICmdLineService); startPage = cmdLineService.URLToLoad; appCore.cmdLineURLUsed = true; }
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
checkForDefaultBrowser();
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
gOKButton.label = bundle.getString("search_button_label");
function Startup(){ var bundle = document.getElementById("historyBundle"); gOKButton = document.documentElement.getButton("accept"); gOKButton.label = bundle.getString("search_button_label"); gOKButton.disabled = true; gSearchField = document.getElementById("searchField"); gSearchField.focus();}
var url_bar = document.getElementById("urlbar"); if ( url_bar ) url_bar.focus();
function Startup() { window.XULBrowserWindow = new nsXULBrowserWindow(); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); if (appCore == null) { // Give up. window.close(); } // I...
dump("1\n");
function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLine is...
dialog.pixelOrPercentSelect = document.getElementById("pixelOrPercentSelect");
dialog.pixelOrPercentMenulist = document.getElementById("pixelOrPercentMenulist");
function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLine is...
dump("after sizeToContent\n");
function Startup(){ dump("HLine Properties startup...\n"); if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Get the selected horizontal line hLineElement = editorShell.GetSelectedElement(tagName); if (!hLineElement) { // We should never be here if not editing an existing HLine dump("HLine is...
var ind = bookmarkView.treeBuilder.getIndexOfResource(folderItem);
ind = bookmarkView.treeBuilder.getIndexOfResource(folderItem);
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"...
contentArea.addEventListener("load", checkForDirectoryListing, true);
function Startup() { window.XULBrowserWindow = new nsXULBrowserWindow(); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); window._content.appCore= appCore; if (appCore == null) { // Give u...
checkForDefaultBrowser();
function Startup() { window.XULBrowserWindow = new nsXULBrowserWindow(); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); window._content.appCore= appCore; if (appCore == null) { // Give u...
var imagesEnabled = document.getElementById("enableImages").checked; var imageBroadcaster = document.getElementById("imageBroadcaster"); imageBroadcaster.setAttribute("disabled", !imagesEnabled); javascriptEnabledChange()
gImagesPref = document.getElementById("enableImagePref"); gImagesEnabled = document.getElementById("enableImages"); gImagesRestricted = document.getElementById("enableRestricted"); var prefValue = gImagesPref.getAttribute("value"); if (!prefValue) prefValue = "0"; switch (prefValue) { case "1": gImagesRestricted.checke...
function Startup(){ policyButton = document.getElementById("popupPolicy"); manageTree = document.getElementById("permissionsTree"); togglePermissionEnabling(); loadPermissions(); var imagesEnabled = document.getElementById("enableImages").checked; var imageBroadcaster = document.getElementById("imageBroadcaster...
kObserverService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); kObserverService.addObserver(cookieReloadDisplay, "cookieChanged", false);
function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryInterface(Comp...
spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker)
gSpellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker)
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word t...
WordToAdd = window.arguments[1];
gWordToAdd = window.arguments[1];
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word t...
WordInput = document.getElementById("WordInput"); DictionaryList = document.getElementById("DictionaryList");
dialog.WordInput = document.getElementById("WordInput"); dialog.DictionaryList = document.getElementById("DictionaryList");
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word t...
WordInput.value = WordToAdd;
dialog.WordInput.value = gWordToAdd;
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word t...
SetTextboxFocus(WordInput);
SetTextboxFocus(dialog.WordInput);
function Startup(){ if (!InitEditorShell()) return; dump("EditoreditorShell found for dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // The word t...
if (httpPort.value == "0") httpPort.setAttribute("value", ""); if (radiogroup.value == 3) radiogroup.selectedIndex = 0;
function Startup(){ DoEnabling();}
doSetOKCancel(onOK, onCancel, 0, onApply);
doSetOKCancel(onAccept, onCancel, 0, onApply);
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...
gPrefutilitiesBundle = document.getElementById("bundle_prefutilities");
function Startup(){ var tree = document.getElementById( "skinsTree" ); var theSkinKids = document.getElementById("theSkinKids"); if (theSkinKids.hasChildNodes() && theSkinKids.firstChild) tree.selectItem(theSkinKids.firstChild);}
sidebarOverlayInit();
function Startup() { // Position window. var win = document.getElementById( "main-window" ); var x = win.getAttribute( "x" ); var y = win.getAttribute( "y" ); // dump(" move to "+x+" "+y+"\n"); window.moveTo( x, y ); // TileWindow(); // Make sure window fits on screen initially // FitToScr...
var newMailNotificationTrayIconPref = document.getElementById("newMailNotificationTrayIcon"); newMailNotificationTrayIconPref.hidden = !/^Win/.test(navigator.platform);
function Startup(){ PlaySoundCheck(); // if we don't have the alert service, hide the pref UI for using alerts to notify on new mail // see bug #158711 var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); newMailNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Comp...
bookmarksView.treeBoxObject.selection.select(0);
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.treeBoxObject.selection.select(0); var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.a...
bookmarksView.treeBoxObject.scrollToRow(rowIndex); bookmarksView.treeBoxObject.selection.select(rowIndex);
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.treeBoxObject.selection.select(0); var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.a...
var name = GetSelectionAsText(); name = TruncateStringAtWordEnd(name, 40, false); name = ReplaceWhitespace(name, "_");
if (anchorElement) { var name = GetSelectionAsText(); name = PrepareStringForURL(TruncateStringAtWordEnd(name, 40, false)); if (AnchorNameExists(name)) name += "_"
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); nameInput = document.getElementById("nameInput"); dump("tagName = "+tagName+"\n"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an...
if (AnchorNameExists(name)) name += "_" anchorElement.setAttribute("name",name);
globalElement = anchorElement.cloneNode(false); globalElement.setAttribute("name",name); }
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); nameInput = document.getElementById("nameInput"); dump("tagName = "+tagName+"\n"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an...
globalElement = anchorElement.cloneNode(false);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); nameInput = document.getElementById("nameInput"); dump("tagName = "+tagName+"\n"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an...
resolution.setAttribute( "value", dpi.replace(/\$val/, "72" ) );
resolution.setAttribute( "value", "72" ); resolution.setAttribute( "label", dpi.replace(/\$val/, "72" ) );
function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); // register our ok callback function parent....
resolution.setAttribute( "value", dpi.replace(/\$val/, "96" ) );
resolution.setAttribute( "value", "96" ); resolution.setAttribute( "label", dpi.replace(/\$val/, "96" ) );
function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); languageList = document.getElementById( "selectLangs" ); gPrefutilitiesBundle = document.getElementById("bundle_prefutilities"); // register our ok callback function parent....
try { editor.selectElement(labelElement); gDialog.labelText.value = GetSelectionAsText(); } catch (e) {}
var range = editor.document.createRange(); range.selectNode(labelElement); gDialog.labelText.value = range.toString();
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { dump("Failed to get active editor!\n"); window.close(); return; } gDialog.editText = document.getElementById("EditText"); gDialog.labelText = document.getElementById("LabelText"); gDialog.labelFor = document.getElementById("LabelFor"); ...
FillNamedAnchorList();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Message was wrapped in a <label> or <div>, so actual text is a child text node linkCaption = (document.getElementById("linkTextCaption")).firstChild; linkMessage = (document.getElementById("linkTextMessage")).firstChil...
dump("spec is " + ioService.getURLSpecFromFile(file)); gDS = gRDF.GetDataSource(ioService.getURLSpecFromFile(file));
var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler); dump("spec is " + fileHandler.getURLSpecFromFile(file)); gDS = gRDF.GetDataSource(fileHandler.getURLSpecFromFile(file));
function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gList = document.getElementById("appList"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ...
nameInput.focus();
SetTextfieldFocus(nameInput);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); nameInput = document.getElementById("nameInput"); dump("tagName = "+tagName+"\n"); // Get a single selected element of the desired type anchorElement = editorShell.GetSelectedElement(tagName); if (anchorElement) { // We found an...
if (document.getElementById("main-window").getAttribute("fullScreen") == "true") { BrowserFullScreenEnter(); }
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); gNavigatorRegionBundle = document.getElementById("bundle_navigator_region"); gBrandRegionBundle = document.getElementById("bundle_brand_region"); gBrowser = d...
var tagName = "input"; inputElement = editor.getSelectedElement(tagName);
const kTagName = "input"; try { inputElement = editor.getSelectedElement(kTagName); } catch (e) {}
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog = { accept: document.documentElement.getButton("accept"), inputType: document.getElementById("InputType"), inputNameDeck: document.getElementById("InputNameDeck"), input...
inputElement = editor.createElementWithDefaults(tagName);
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog = { accept: document.documentElement.getButton("accept"), inputType: document.getElementById("InputType"), inputNameDeck: document.getElementById("InputNameDeck"), input...
fieldsetElement = editor.getElementOrParentBykTagName(kTagName, editor.selection.anchorNode);
fieldsetElement = editor.getElementOrParentByTagName(kTagName, editor.selection.anchorNode);
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { dump("Failed to get active editor!\n"); window.close(); return; } gDialog.editText = document.getElementById("EditText"); gDialog.legendText = document.getElementById("LegendText"); gDialog.legendAlign = document.getElementById("LegendA...
fieldsetElement = editor.getElementOrParentBykTagName(kTagName, editor.selection.focusNode);
fieldsetElement = editor.getElementOrParentByTagName(kTagName, editor.selection.focusNode);
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { dump("Failed to get active editor!\n"); window.close(); return; } gDialog.editText = document.getElementById("EditText"); gDialog.legendText = document.getElementById("LegendText"); gDialog.legendAlign = document.getElementById("LegendA...
range.setStart(legendElement, 0); range.setEnd(legendElement, legendElement.childNodes.length);
range.selectNode(legendElement);
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { dump("Failed to get active editor!\n"); window.close(); return; } gDialog.editText = document.getElementById("EditText"); gDialog.legendText = document.getElementById("LegendText"); gDialog.legendAlign = document.getElementById("LegendA...
insertButton.setAttribute("accesskey", GetString("InsertAccessKey")); }
function Startup(){ if (!InitEditorShell()) 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", GetString("Insert")); var cancelButt...
FitToScreen();
function Startup() { // TileWindow(); // Make sure window fits on screen initially FitToScreen(); // Create the browser instance component. createBrowserInstance(); if (appCore == null) { // Give up. window.close(); } // Initialize browser instance.. appCore.setWebShellWind...
dialog.misspelledWord = document.getElementById("MisspelledWord"); dialog.replaceWordInput = document.getElementById("ReplaceWord"); dialog.suggestedList = document.getElementById("SuggestedList"); dialog.languageList = document.getElementById("LanguageList"); if (!dialog.misspelledWord || !dialog.replaceWordInput || ...
if (!dialog.MisspelledWord || !dialog.ReplaceWordInput || !dialog.SuggestedList || !dialog.LanguageList )
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
misspelledWord = window.arguments[1];
MisspelledWord = window.arguments[1];
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
if (misspelledWord != "") { dump("First misspelled word = "+misspelledWord+"\n");
if (MisspelledWord.length > 0) { dump("First misspelled word = "+MisspelledWord+"\n");
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dialog.misspelledWord.setAttribute("value", misspelledWord);
dialog.MisspelledWord.setAttribute("value", MisspelledWord);
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
} else { dump("No misspelled word found\n"); Close();
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dialog.replaceWordInput.value = misspelledWord;
dialog.ReplaceWordInput.value = MisspelledWord;
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dialog.languageList.selectedIndex = 0; dump("Language Listed Index = "+dialog.languageList.selectedIndex+"\n");
dialog.LanguageList.selectedIndex = 0; dump("Language Listed Index = "+dialog.LanguageList.selectedIndex+"\n");
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
dialog.suggestedList.focus();
DoEnabling(); dialog.SuggestedList.focus();
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Spell Checker dialog\n"); // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Sav...
var tagName = "form"; formElement = editor.getSelectedElement(tagName); if (!formElement) formElement = editor.getElementOrParentByTagName(tagName, editor.selection.anchorNode); if (!formElement) formElement = editor.getElementOrParentByTagName(tagName, editor.selection.focusNode);
const kTagName = "form"; try { formElement = editor.getSelectedElement(kTagName); if (!formElement) formElement = editor.getElementOrParentByTagName(kTagName, editor.selection.anchorNode); if (!formElement) formElement = editor.getElementOrParentByTagName(kTagName, editor.selection.focusNode); } catch (e) {}
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gForm = { Name: document.getElementById("FormName"), Action: document.getElementById("FormAction"), Method: document.getElementById("FormMethod"), EncType: document.getElementById("FormEncType")...
formElement = editor.createElementWithDefaults(tagName);
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gForm = { Name: document.getElementById("FormName"), Action: document.getElementById("FormAction"), Method: document.getElementById("FormMethod"), EncType: document.getElementById("FormEncType")...
dialog = new Object; dialog.srcInput = document.getElementById("srcInput"); dialog.srcMessage = (document.getElementById("srcMessage")).firstChild; if (null == dialog.srcInput || null == dialog.srcMessage ) { dump("Not all dialog controls were found!!!\n"); }
srcInput = document.getElementById("srcInput");
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"); // Kinda clunky: Message was wrapped in a <p>, // so actual message is a child text node dialo...
dialog.srcInput.value = selection;
srcInput.value = selection;
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"); // Kinda clunky: Message was wrapped in a <p>, // so actual message is a child text node dialo...
dialog.srcInput.focus();
srcInput.focus();
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"); // Kinda clunky: Message was wrapped in a <p>, // so actual message is a child text node dialo...
if (!appCore.cmdLineURLUsed) { var isPageCycling = appCore.startPageCycler();
if (!appCore.cmdLineURLUsed) isPageCycling = appCore.startPageCycler();
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
if (!isPageCycling) { var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"] .getService(Components.interfaces.nsICmdLineService); startPage = cmdLineService.URLToLoad; appCore.cmdLineURLUsed = true; }
if (!isPageCycling) { var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"] .getService(Components.interfaces.nsICmdLineService); startPage = cmdLineService.URLToLoad; appCore.cmdLineURLUsed = true; if (!startPage && "arguments" in window && window.arguments.length > 0) startPage = win...
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
if (!startPage && "arguments" in window && window.arguments.length > 0) startPage = window.arguments[0]; if (!startPage) startPage = "about:blank"; loadURI(startPage);
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createInstance(Components.interfaces.nsIBrowserInstance); if (...
updateLockedButtonState();
function Startup(){ // set up the string bundle gPrefApplicationsBundle = document.getElementById("bundle_prefApplications"); // set up the elements gTree = document.getElementById("appTree"); gExtensionField = document.getElementById("extension"); gMIMETypeField = document.getElementById("mimeType"); ...
dump("EditoreditorShell not found!!!\n");
dump("editorShell not found!!!\n"); window.close(); return; } hLineElement = window.editorShell.GetSelectedElement(tagName); if (!hLineElement) { dump("HLine is not selected! Shouldn't be here!\n");
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } d...
dump("EditoreditorShell found for HRule Properties dialog\n");
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } d...
dialog.AltText = document.getElementById("image.AltText");
dialog.heightInput = document.getElementById("height"); dialog.widthInput = document.getElementById("width"); dialog.leftAlign = document.getElementById("leftAlign"); dialog.centerAlign = document.getElementById("centerAlign"); dialog.rightAlign = document.getElementById("rightAlign"); dialog.shading = document.getElem...
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } d...
dump(dialog.heightInput+dialog.widthInput+dialog.shading+dialog.pixelOrPercentButton+"\n"); dialog.heightInput.value = hLineElement.getAttribute("height"); width = hLineElement.getAttribute("width"); dialog.widthInput.value = (width - 0) + ""; if (width.search(/%/) > 0) { dialog.pixelOrPercentButton.value = "pe...
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } d...
dialog.heightInput.focus();
function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } d...
try { var alertService = Components.classes["@mozilla.org/alerts-service;1"].getService(Components.interfaces.nsIAlertsService); } catch(ex) { var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); newMailNotificationAlertUI.setAttribute("hidden","true"); }
function Startup(){ PlaySoundCheck();}
var tagName = "button"; buttonElement = editor.getSelectedElement(tagName);
const kTagName = "button"; try { buttonElement = editor.getSelectedElement(kTagName); } catch (e) {}
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog = { buttonType: document.getElementById("ButtonType"), buttonName: document.getElementById("ButtonName"), buttonValue: document.getElementById("ButtonValue"), buttonDisabled: d...
buttonElement = editor.createElementWithDefaults(tagName);
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog = { buttonType: document.getElementById("ButtonType"), buttonName: document.getElementById("ButtonName"), buttonValue: document.getElementById("ButtonValue"), buttonDisabled: d...