rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
setTimeout(LoadBookmarksCallback, 100);
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 fileLocator = Components.classes["component:
var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService();
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(...
var file_url = Components.classes["component:
var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL);
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(...
dialog.heightInput = document.getElementById("heightInput");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); dump(tagName+" = InsertTable tagName\n"); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } // Create dialog object to store control...
if (!appCore.cmdLineURLUsed) {
if (!appCore.cmdLineURLUsed && !turboMode) {
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...
if ( turboMode ) { appCore.cmdLineURLUsed = true; window.setTimeout( "window.close()", 100 ); return; }
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...
window.addEventListener("load", UpdateInternetSearchResults, true);
function Startup() { // Position window. var win = document.getElementById( "main-window" ); if (win) { 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 scr...
if (!prefService) throw "couldn't create a preferences service";
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...
const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefSvcContractID].getService(kPrefSvcIID);
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var list = document.getElementById( "skinsList" ); if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent...
theme = kPrefSvc.getComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString).data;
theme = parent.hPrefWindow.pref.getComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString).data;
function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var list = document.getElementById( "skinsList" ); if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; return; } gData.loaded = true; parent...
SetTextfieldFocus(dialog.rowsInput);
SetTextboxFocus(dialog.rowsInput);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } // Create dialog object to store controls for easy access dialog = new Object;...
signonviewer = Components.classes["component:
signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance();
function Startup(){ signonviewer = Components.classes["component://netscape/signonviewer/signonviewer-world"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the ...
pref = Components.classes['component:
pref = Components.classes['@mozilla.org/preferences;1'];
function Startup(){ signonviewer = Components.classes["component://netscape/signonviewer/signonviewer-world"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); doSetOKCancel(onOK, null); // init ok event handler // remove wallet functions (unless overruled by the ...
onMoreFewerImage();
onMoreFewer();
function Startup(){ //XXX Very weird! When calling this with an existing image, // we get called twice. That causes dialog layout // to explode to fullscreen! if (StartupCalled) { dump("*** CALLING IMAGE DIALOG Startup() AGAIN! ***\n"); return; } StartupCalled = true; if (!InitEditorShell()) retu...
var bookmarksView = document.getElementById("bookmarks-view");
const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var titleString;
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); const windowNode = document.getElementById("bookmark-window"); // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var uri = window.arguments[0]; bookmarksView.tree...
const windowNode = document.getElementById("bookmark-window");
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); const windowNode = document.getElementById("bookmark-window"); // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var uri = window.arguments[0]; bookmarksView.tree...
var title = "";
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); const windowNode = document.getElementById("bookmark-window"); // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var uri = window.arguments[0]; bookmarksView.tree...
const titleString = bookmarksView._bundle.GetStringFromName("window_title"); windowNode.setAttribute("title", titleString.replace(/%folder_name%/gi, title));
titleString = bookmarksView._bundle.GetStringFromName("window_title"); titleString = titleString.replace(/%folder_name%/gi, title); windowNode.setAttribute("title", titleString);
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); const windowNode = document.getElementById("bookmark-window"); // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var uri = window.arguments[0]; bookmarksView.tree...
var rootfoldername = bookmarksView._bundle.GetStringFromName("bookmarks_root");
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); const windowNode = document.getElementById("bookmark-window"); // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var uri = window.arguments[0]; bookmarksView.tree...
rootfoldername = rootfoldername.replace(/%user_name%/, kProfile.currentProfile); windowNode.setAttribute("title", rootfoldername);
var length = {value:0}; var profileList = kProfile.getProfileList(length); if (length.value > 1 || kProfile.currentProfile.toLowerCase() != "default") { titleString = bookmarksView._bundle.GetStringFromName("bookmarks_root"); titleString = titleString.replace(/%user_name%/, kProfile.currentProfile); windowNode.setAt...
function Startup(){ var bookmarksView = document.getElementById("bookmarks-view"); const windowNode = document.getElementById("bookmark-window"); // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var uri = window.arguments[0]; bookmarksView.tree...
return; }
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Create dialog object to store controls for easy access dialog = new Object; dialog.TitleInput = document.getElementById("TitleInput"); dialog.charsetTree = document.getElementById('CharsetTree'); //dialog.charsetRoot =...
BrowserSetDefaultCharacterSet(arrayArgComponents[1]);
appCore.setDefaultCharacterSet(arrayArgComponents[1]);
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...
if (startPage)
if (startPage && startPage != "about:blank")
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...
element.setAttribute("selected","true" );
element2.selectedTab = element;
function Startup(){ // xpconnect to cookieviewer interface cookieviewer = Components.classes["@mozilla.org/cookieviewer/cookieviewer-world;1"].createInstance(); cookieviewer = cookieviewer.QueryInterface(Components.interfaces.nsICookieViewer); // intialise string bundle for bundle = srGetStrBundle(JS_STRINGS_FILE...
return; }
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.RowSpanInput = document.getElementById("RowSpanInput"); dialog.ColSpanInput = document.getElementById("ColSpanInput");
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.RowSpanCheckbox = document.getElementById("RowSpanCheckbox"); dialog.ColSpanCheckbox = document.getElementById("ColSpanCheckbox");
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...
SetSpanEnable();
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...
StartPageCheck();
function Startup(){ var startupFunc; try { startupFunc = document.getElementById("mailnewsEnableMapi").getAttribute('startupFunc'); } catch (ex) { startupFunc = null; } if (startupFunc) eval(startupFunc);}
try { gCurrentTheme = pref.getCharPref(PREF_GENERAL_SKINS_SELECTEDSKIN); } catch (e) { gCurrentTheme = "classic/1.0"; }
var cr = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIXULChromeRegistry); gCurrentTheme = cr.getSelectedSkin("global");
function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gURIPrefix = isExtensions ? "urn:mozilla:extension:" : "urn:mozilla:theme:"; gDSRoot = isExtensions ? "urn:mozilla:extension:root" : "urn:mozilla...
SeeMore = (dialog.MoreFewerButton.getAttribute("more") != "1"); onMoreFewer();
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...
InitDialog();
SeeMore = (dialog.MoreFewerButton.getAttribute("more") != "1"); if ( SeeMore ) InitDialog();
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...
onMoreFewer();
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 newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); newMailNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes);
var downloadDoneNotificationAlertUI = document.getElementById("finishedNotificationAlert"); downloadDoneNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes);
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...
windowNode.setAttribute("title", titleString);
document.title = titleString;
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var title; var uri = window.a...
if(lastmoddate == 0) lastmod = GetString("Unknown");
if(lastmoddate != 0) lastmodString = lastmoddate;
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 ...
document.getElementById("PageModDate").setAttribute("value",lastmod);
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 ...
dump(", lastmod date="+lastmoddate+"\n"); document.getElementById("PageModDate").setAttribute("value", lastmodString);
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 ...
if (!turboMode) { var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"] .getService(Components.interfaces.nsICmdLineService); var cmdLineUrl = cmdLineService.URLToLoad; if (cmdLineUrl && !appCore.cmdLineURLUsed) { uriToLoad = cmdLineUrl; appCore.cmdLineURLUsed = true; } if (!uriToLoa...
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...
try { encrypted = pref.GetBoolPref("wallet.crypto"); } catch(e) { dump("wallet.crypto pref is missing from all.js"); }
function Startup(){ signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@mozilla.org/passwordmanager;1"].getService(); passwordmanager = password...
if ( parent.hPrefWindow.getPrefIsLocked( "browser.display.languageList" ) ) { disableAllFontElements(); }
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....
gReplicationBundle.getString("downloadButtonAccessKey");
gReplicationBundle.getString("downloadButton.accesskey");
function Startup(){ gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gReplicationBundle = document.getElementById("bundle_replication"); document.getElementById("download").label = gReplicationBundle.getString("downloadButton"); document.get...
getBrowser().boxObject.setPropertyAsSupports("listenerkungfu", appCore);
getBrowser().boxObject.setPropertyAsSupports("listenerkungfu", window.XULBrowserWindow);
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...
#endif
function Startup() { gWindowState = window.location.search.substr("?type=".length, window.location.search.length); var isExtensions = gWindowState == "extensions"; gURIPrefix = isExtensions ? "urn:mozilla:extension:" : "urn:mozilla:theme:"; gDSRoot = isExtensions ? "urn:mozilla:extension:root" : "urn:mozilla...
dump(tagName+" = InsertTable tagName\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); dump(tagName+" = InsertTable tagName\n"); tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); } // Create dialog object to store control...
return;
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...
switch (window.arguments[4]) {
var folderItem; var arg; if (window.arguments.length < 5) arg = null; else arg = window.arguments[4]; switch (arg) {
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { switch (window.arguments[4]) { case "selectFolder": // If we're...
var folderItem = document.getElementById(window.arguments[2]);
folderItem = document.getElementById(window.arguments[2]);
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { switch (window.arguments[4]) { case "selectFolder": // If we're...
var folderItem = document.getElementById(gCreateInFolder);
folderItem = document.getElementById(gCreateInFolder);
function Startup(){ doSetOKCancel(onOK); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { switch (window.arguments[4]) { case "selectFolder": // If we're...
wind.setAttribute("title", wind.getAttribute("alttitle"));
document.title = wind.getAttribute("alttitle");
function Startup() { // xpconnect to password manager interfaces signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance(); signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer); passwordmanager = Components.classes["@mozilla.org/passwordmanager...
sizeToContent(); document.title = document.documentElement.getAttribute("selectFolderTitle");
sizeToFit(); document.title = document.documentElement.getAttribute("title-selectFolder");
function Startup(){ initServices(); initBMService(); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; if ("arguments" in window) ...
var changedList = ["allowWindowOpenChanged", "allowWindowMoveResizeChanged",
var changedList = ["allowWindowMoveResizeChanged",
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", ...
document.getElementById("allowWindowOpen").checked = getPrefValueForCheckbox("dom.disable_open_during_load");
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", ...
if (uriToLoad == "about:blank" && !toolbar.hidden && gURLBar && !gURLBar.parentNode.parentNode.collapsed) { elt = gURLBar; } else { elt = _content;
if (uriToLoad == "about:blank") { var navBar = document.getElementById("nav-bar"); if (navBar && !navBar.hidden && gURLBar && !gURLBar.parentNode.parentNode.collapsed) elt = gURLBar; else elt = _content;
function Startup(){ // init globals gNavigatorBundle = document.getElementById("bundle_browser"); gBrowser = document.getElementById("content"); gURLBar = document.getElementById("urlbar"); gReportButton = document.getElementById("page-report-button"); gBrowser.addEventListener("DOMUpdatePageReport", UpdatePageRe...
appCore.SetDocumentCharset(arrayArgComponents[1]);
BrowserSetDefaultCharacterSet(arrayArgComponents[1]);
function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); window.buttonPrefListener = new nsButtonPrefListener(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createIn...
SetTextfieldFocus(dialog.TableRowsInput);
SetTextboxFocus(dialog.TableRowsInput);
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...
window.content.appCore= appCore;
window._content.appCore= appCore;
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 up...
document.getElementById("DocSubdir").setAttribute("hidden", "true");
document.getElementById("DocSubdir").hidden = true;
function Startup(){ gPublishData = window.arguments[0]; if (!gPublishData) { dump("No publish data!\n"); window.close(); return; } gDialog.FileList = document.getElementById("FileList"); gDialog.FinalStatusMessage = document.getElementById("FinalStatusMessage"); gDialog.StatusMessage = do...
document.getElementById("OtherSubdir").setAttribute("hidden", "true");
document.getElementById("OtherSubdir").hidden = true;
function Startup(){ gPublishData = window.arguments[0]; if (!gPublishData) { dump("No publish data!\n"); window.close(); return; } gDialog.FileList = document.getElementById("FileList"); gDialog.FinalStatusMessage = document.getElementById("FinalStatusMessage"); gDialog.StatusMessage = do...
document.getElementById("Subdirectories").setAttribute("hidden", "true");
document.getElementById("Subdirectories").hidden = true;
function Startup(){ gPublishData = window.arguments[0]; if (!gPublishData) { dump("No publish data!\n"); window.close(); return; } gDialog.FileList = document.getElementById("FileList"); gDialog.FinalStatusMessage = document.getElementById("FinalStatusMessage"); gDialog.StatusMessage = do...
gDialog.RadioGroup.setAttribute("collapsed", gListElement ? "false" : "true");
gDialog.RadioGroup.collapsed = !gListElement;
function Startup(){ var editor = GetCurrentEditor(); if (!editor) { window.close(); return; } gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.Starti...
pref_string = prefInt.CopyCharPref("mailnews.view_default_charset");
pref_string = prefInt.getLocalizedUnicharPref("mailnews.view_default_charset");
function startUp(){ try { prefInt = Components.classes["component://netscape/preferences"]; ccm = Components.classes['component://netscape/charset-converter-manager']; if (ccm) { ccm = ccm.getService(); ccm = ccm.QueryInterface(Components.interfaces.nsICharsetConverterManager2); availCharsetL...
gExtensionsView.style.width = "20em";
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 changedList = ["allowWindowOpenChanged", "allowTargetNewChanged", "allowWindowMoveResizeChanged", "allowWindowStatusChangeChanged", "allowWindowFlipChanged", "allowDocumentCookieSetChanged", "allowDocumentCookieGetChanged", "allowImageSrcChangeChanged"];
var changedList = ["allowWindowOpenChanged", "allowTargetNewChanged", "allowWindowMoveResizeChanged", "allowWindowStatusChangeChanged", "allowWindowFlipChanged", "allowDocumentCookieSetChanged", "allowDocumentCookieGetChanged", "allowImageSrcChangeChanged", "allowHideStatusBarChanged"];
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
} else { document.getElementById("allowWindowOpen").checked = data["allowWindowOpen"].checked; document.getElementById("allowTargetNew").checked = data["allowTargetNew"].checked; document.getElementById("allowWindowMoveResize").checked = data["allowWindowMoveResize"].checked; document.getElementById("allowWindowFlip")...
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
gDialog.AdvancedEditCell = document.getElementById("AdvancedEditButton2"); gDialog.AdvancedEditCellToolTipText = gDialog.AdvancedEditCell.getAttribute("tooltiptext");
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...
if (labelElement.innerHTML.match(/</))
if (/</.test(labelElement.innerHTML))
function Startup(){ if (!InitEditorShell()) return; gDialog.editText = document.getElementById("EditText"); gDialog.labelText = document.getElementById("LabelText"); gDialog.labelFor = document.getElementById("LabelFor"); gDialog.labelAccessKey = document.getElementById("LabelAccessKey"); labelElement = window...
var textField = document.createElement("textfield"); textField.setAttribute("value", prefillList[i+1]); textField.setAttribute("readonly", "true");
var textBox = document.createElement("textbox"); textBox.setAttribute("value", prefillList[i+1]); textBox.setAttribute("readonly", "true");
function Startup() { /* fetch the input */ var list = walletpreview.GetPrefillValue(); var BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var title = document.getElementById("walletpreview"); title.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getEl...
row.appendChild(textField);
row.appendChild(textBox);
function Startup() { /* fetch the input */ var list = walletpreview.GetPrefillValue(); var BREAK = list[0]; prefillList = list.split(BREAK); /* create the heading */ var title = document.getElementById("walletpreview"); title.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getEl...
if (ListElement && gDialog.RadioGroup.getAttribute("index") == "1") gDialog.RadioGroup.selectedItem = gDialog.ChangeSelectedRadio; else gDialog.RadioGroup.selectedItem = gDialog.ChangeAllRadio;
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
if (ListElement) { if (gDialog.RadioGroup.getAttribute("index") == "1") gDialog.RadioGroup.selectedItem = gDialog.ChangeSelectedRadio; else gDialog.RadioGroup.selectedItem = gDialog.ChangeAllRadio; }
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
ListType = editorShell.GetListState(mixedObj);
gListType = editorShell.GetListState(mixedObj);
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
MixedListSelection = mixedObj.value;
gMixedListSelection = mixedObj.value;
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
ListElement = editorShell.GetElementOrParentByTagName("list", null);
gListElement = editorShell.GetElementOrParentByTagName("list", null);
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
if (ListElement) globalElement = ListElement.cloneNode(false);
if (gListElement) globalElement = gListElement.cloneNode(false);
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
if (ListElement && gDialog.RadioGroup.getAttribute("index") == "1") gDialog.RadioGroup.selectedItem = gDialog.ChangeSelectedRadio; else gDialog.RadioGroup.selectedItem = gDialog.ChangeAllRadio; gDialog.RadioGroup.setAttribute("collapsed", ListElement ? "false" : "true");
gDialog.RadioGroup.setAttribute("collapsed", gListElement ? "false" : "true"); if (gListElement) { if (gDialog.RadioGroup.getAttribute("index") == "1") gDialog.RadioGroup.selectedItem = gDialog.ChangeSelectedRadio; else gDialog.RadioGroup.selectedItem = gDialog.ChangeAllRadio; }
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
originalListType = ListType;
gOriginalListType = gListType;
function Startup(){ if (!InitEditorShell()) return; gDialog.ListTypeList = document.getElementById("ListType"); gDialog.BulletStyleList = document.getElementById("BulletStyle"); gDialog.BulletStyleLabel = document.getElementById("BulletStyleLabel"); gDialog.StartingNumberInput = document.getElementById("Startin...
element = document.getElementById("cookieviewer"); element.setAttribute("title", cookieBundle.getString("imageTitle"));
document.title = cookieBundle.getString("imageTitle");
function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager/promptservice/popupmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookie...
element = document.getElementById("cookieviewer"); element.setAttribute("title", cookieBundle.getString("popupTitle"));
document.title = cookieBundle.getString("popupTitle");
function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager/promptservice/popupmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookie...
SetTextfieldFocus(dialog.TitleInput);
SetTextboxFocus(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 ...
doSetOKCancel(find);
function Startup(){ doSetOKCancel(find); var bundle = document.getElementById("bookmarksBundle"); gOKButton = document.getElementById("ok"); gOKButton.label = bundle.getString("search_button_label"); gOKButton.disabled = true; gSearchField = document.getElementById("searchField"); gSearchField.focus();}
gSpellChecker.InitSpellChecker(GetCurrentEditor());
var filterContractId; gSendMailMessageMode = window.arguments[0]; if (gSendMailMessageMode) filterContractId = "@mozilla.org/editor/txtsrvfiltermail;1"; else filterContractId = "@mozilla.org/editor/txtsrvfilter;1"; gSpellChecker.setFilter(Components.classes[filterContractId].createInstance(Components.interfaces.nsITex...
function Startup(){ if (!GetCurrentEditor()) { window.close(); return; } // Get the spellChecker shell gSpellChecker = Components.classes['@mozilla.org/editor/editorspellchecker;1'].createInstance(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker) { dump("SpellChecker not found!!!\n"); w...
gSendMailMessageMode = window.arguments[0];
function Startup(){ if (!GetCurrentEditor()) { window.close(); return; } // Get the spellChecker shell gSpellChecker = Components.classes['@mozilla.org/editor/editorspellchecker;1'].createInstance(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker) { dump("SpellChecker not found!!!\n"); w...
} var docShell = { value : null }; var result = appCore.getContentDocShell(docShell); if (docShell.value) { webNavigation = docShell.value.QueryInterface(Components.interfaces.nsIWebNavigation);
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...
} catch (e) { dump(" Exception ERROR in Link checker. e.result="+e.result+", gNumLinksToCheck="+gNumLinksToCheck+"\n"); }
} catch (e) { dump (" *** EXCEPTION\n");}
function Startup(){ if (!InitEditorShell()) return; // Set window location relative to parent window (based on persisted attributes) SetWindowLocation(); // Get all objects that refer to other locations var objects = editorShell.GetLinkedObjects(); // Loop over the nodes that have links: for (var i = 0; i < o...
window.sizeToContent();
function Startup(){ if (!InitEditorShell()) return; // Set window location relative to parent window (based on persisted attributes) SetWindowLocation(); // Get all objects that refer to other locations var objects = editorShell.GetLinkedObjects(); // Loop over the nodes that have links: for (var i = 0; i < o...
if (!LoadSignons()) { return; } LoadReject(); LoadNopreview(); LoadNocapture();
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...
try{ document.getElementById("allowWindowOpen").checked = !pref.GetBoolPref("dom.disable_open_during_load"); } catch (e){ document.getElementById("allowWindowOpen").checked = true; } try{ document.getElementById("allowTargetNew").checked = !pref.GetBoolPref("browser.block.target_new_window"); } catch (e){ document.g...
document.getElementById("allowWindowOpen").checked = getPrefValueForCheckbox("dom.disable_open_during_load"); document.getElementById("allowTargetNew").checked = getPrefValueForCheckbox("browser.block.target_new_window"); document.getElementById("allowWindowMoveResize").checked = getPrefValueForCheckbox("dom.disable_w...
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
document.getElementById("allowWindowOpen").checked = data["allowWindowOpen"].checked;
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
document.getElementById("allowTargetNew").checked = data["allowTargetNew"].checked; document.getElementById("allowWindowMoveResize").checked = data["allowWindowMoveResize"].checked; document.getElementById("allowWindowFlip").checked = data["allowWindowFlip"].checked; document.getElementById("allowWindowStatusChange")...
document.getElementById("allowWindowOpen").checked = data["allowWindowOpen"].checked; document.getElementById("allowTargetNew").checked = data["allowTargetNew"].checked; document.getElementById("allowWindowMoveResize").checked = data["allowWindowMoveResize"].checked; document.getElementById("allowWindowFlip").checked =...
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
if (document.getElementById("javascriptAllowMailnews"))
if (document.getElementById("javascriptAllowMailnews")) {
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
}
function Startup(){ data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-scripts.xul"]; //If scriptData does not exist, then it is the first time the panel was shown and we default to false if (!("scriptData" in data)){ var changedList = ["allowWindowOpenChanged", "allowTar...
element = document.getElementById("cookiesTab"); element.hidden = "true";
document.getElementById("dummyContainer").hidden = "true"; document.getElementById("cookiesTab").hidden = "true";
function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager/promptservice/popupmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookie...
window.buttonPrefListener = new nsButtonPrefListener();
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 (...
prefwindow = Components.classes['component:
prefwindow = Components.classes['@mozilla.org/prefwindow;1'].getService(Components.interfaces.nsIPrefWindow);
function StartUp(windowName){ dump("\nDoing " + windowName + " startup...\n"); dump("Looking up prefwindow object...\n"); if (prefwindow == null) { dump("Creating prefwindow object...\n"); prefwindow = Components.classes['component://netscape/prefwindow'].getService(Components.interfaces.nsIPrefWindow); } else { ...
var kids = document.getElementById("treechildren"); tree.selectItem(kids);
tree.selectedIndex = 0; } var selectedRegion = window.arguments.length ? window.arguments[1] : null; var list = document.getElementById("regionList"); if (selectedRegion) { var elements = list.getElementsByAttribute("value", selectedRegion); if (elements.length) list.selectedItem = elements[0]; } else { list.selectedI...
function Startup(){ doSetOKCancel(onOK); var selectedLanguage = window.arguments.length ? window.arguments[0] : null; var tree = document.getElementById("langList"); if (selectedLanguage) { var elements = tree.getElementsByAttribute("value", selectedLanguage); if (elements.length) tree.selectItem(element...
var pref;
function Startup(){ // xpconnect to cookieviewer interface cookieviewer = Components.classes["@mozilla.org/cookieviewer/cookieviewer-world;1"].createInstance(); cookieviewer = cookieviewer.QueryInterface(Components.interfaces.nsICookieViewer); // intialise string bundle for bundle = srGetStrBundle(JS_STRINGS_FILE...
prefInt = Components.classes["component: ccm = Components.classes['component:
prefInt = Components.classes["@mozilla.org/preferences;1"]; ccm = Components.classes['@mozilla.org/charset-converter-manager;1'];
function startUp(){ try { prefInt = Components.classes["component://netscape/preferences"]; ccm = Components.classes['component://netscape/charset-converter-manager']; if (ccm) { ccm = ccm.getService(); ccm = ccm.QueryInterface(Components.interfaces.nsICharsetConverterManager2); availCharsetL...
SetTextfieldFocus(dialog.urlInput);
SetTextboxFocus(dialog.urlInput);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Map OK/Cancel to relevant functions // Create dialog object to store controls for easy access dialog = new Object; dialog.urlInput = document.getElementById("urlInput"); dialog.targetInput = document.getElementById("targetI...
gDialog.OkButton = document.documentElement.getButton("accept");
function Startup(){ if (!InitEditorShell()) return; tableElement = editorShell.CreateElementWithDefaults(tagName); if(!tableElement) { dump("Failed to create a new table!\n"); window.close(); return; } gDialog.rowsInput = document.getElementById("rowsInput"); gDialog.columnsInput = document.getEle...