rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
window.opener.StartPublishing();
gPersistObj = window.opener.StartPublishing();
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...
windowNode = document.getElementById("newBookmarkWindow");
windowNode = document.getElementById("newBookmarkDialog");
function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gFolderTree = document.getElementById("folders"); var shouldSetOKButton = true; if ("arguments" in window) { var folderItem; var arg; if (window.arguments.length < 5) arg = null; else ...
} 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...
gOKButton = document.getElementById("ok");
gOKButton = document.documentElement.getButton("accept");
function Startup(){ var bundle = document.getElementById("historyBundle"); gOKButton = document.getElementById("ok"); gOKButton.label = bundle.getString("search_button_label"); gOKButton.disabled = true; gSearchField = document.getElementById("searchField"); gSearchField.focus();}
title = BookmarksUtils.getProperty(window.arguments[0], NC_NS+"Name");
title = BookmarksUtils.getProperty(window.arguments[0], gNC_NS+"Name");
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); const bookmarksFolder = document.getElementById("bookmark-folders-view"); var titleString; // If we've been opened with a parameter, root the tree on it. if ("argumen...
gOKButton = document.getElementById("ok");
gOKButton = document.documentElement.getButton("accept");
function Startup(){ 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();}
gExtensionsView.style.width = "20em";
gExtensionsView.style.width = extensionsStrings.getString("themesManagerLeftColumn");
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...
win.setAttribute("width", isExtensions ? 460 : 560); win.setAttribute("height", isExtensions ? 300 : 380);
win.setAttribute("width", isExtensions ? (extensionsStrings.getString("extensionsManagerWidth")) : (extensionsStrings.getString("themesManagerWidth"))); win.setAttribute("height", isExtensions ? (extensionsStrings.getString("extensionsManagerHeight")) : (extensionsStrings.getString("themesManagerHeight")));
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...
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 ...
else { var microsummaryRow = document.getElementById("microsummaryRow"); microsummaryRow.setAttribute("hidden", "true"); }
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...
dialog = new Object;
ListStyleList = document.getElementById("ListStyle"); BulletStyleList = document.getElementById("BulletStyle"); BulletStyleLabel = document.getElementById("BulletStyleLabel"); StartingNumberInput = document.getElementById("StartingNumber"); StartingNumberLabel = document.getElementById("StartingNumberLabel");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: //dialog.editBox = document.getElementById("editBox"); initDialog(); // SET FOCUS TO FIRST CONTROL //dialog.editBox.foc...
initDialog();
InitDialog(); ListStyleList.focus();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; // GET EACH CONTROL -- E.G.: //dialog.editBox = document.getElementById("editBox"); initDialog(); // SET FOCUS TO FIRST CONTROL //dialog.editBox.foc...
gDialog.TableRadio.checked = true;
gDialog.CellOrTableGroup.selectedItem = gDialog.TableRadio;
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; gDialog.ColorPicker = document.getElementById("ColorPic...
gDialog.CellRadio.checked = true;
gDialog.CellOrTableGroup.selectedItem = gDialog.CellRadio;
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; gDialog.ColorPicker = document.getElementById("ColorPic...
webProgress.addProgressListener(window.XULBrowserWindow);
webProgress.addProgressListener(window.XULBrowserWindow, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
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...
setTimeout(function f(a) { profilesElement.selectedItem = a; }, 0, listitem);
setTimeout(function(a) { profilesElement.ensureElementIsVisible(a); profilesElement.selectItem(a); }, 0, listitem);
function startup(){ try { gDialogParams = window.arguments[0]. QueryInterface(I.nsIDialogParamBlock); gProfileService = C[ToolkitProfileService].getService(I.nsIToolkitProfileService); gProfileManagerBundle = document.getElementById("bundle_profileManager"); gBrandBundle = document.getElementById("bun...
bundle = srGetStrBundle("chrome:
function Startup() { variableSize = document.getElementById( "sizeVar" ); fixedSize = document.getElementById( "sizeMono" ); languageList = document.getElementById( "selectLangs" ); bundle = srGetStrBundle("chrome://communicator/locale/pref/prefutilities.properties"); gPrefutilitiesBundle = document....
sizeToFit();
function Startup(){ initServices(); initBMService(); gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; if ("arguments" in window) { var ind; var folderItem = null; var arg; ...
prefs = GetPrefs();
var prefs = GetPrefs();
function Startup(){ if (!InitEditorShell()) return; dialog = new Object; if (!dialog) { dump("Failed to create dialog object!!!\n"); window.close(); } dialog.ColorPreview = document.getElementById("ColorPreview"); dialog.NormalText = document.getElementById("NormalText"); dialog.LinkText = document.get...
var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"].getService(Components.interfaces.nsIBrowserHistory);
function Startup() { // Initially disable the clear buttons when needed var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); document.getElementById("history").setAttribute("cleardisabled", globalHistory.count == 0); var cookieMgr = C...
if (!appCore.cmdLineURLUsed && !turboMode) { var cmdLineService = Components.classes["@mozilla.org/appshell/commandLineService;1"] .getService(Components.interfaces.nsICmdLineService); uriToLoad = cmdLineService.URLToLoad;
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; }
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...
appCore.cmdLineURLUsed = true;
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...
gDialog.CellTab.parentNode.removeChild(CellTab);
gDialog.CellTab.parentNode.removeChild(gDialog.CellTab);
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...
#ifdef MOZ_WIDGET_GTK2 var mapiReg; try { mapiReg = Components.classes["@mozilla.org/mapiregistry;1"]. getService(Components.interfaces.nsIMapiRegistry); } catch (e) {} if (!mapiReg) { document.getElementById("defaultClientBox").hidden = true; return; } #endif
function Startup(){ var startupFunc; try { startupFunc = document.getElementById("mailnewsEnableMapi").getAttribute('startupFunc'); } catch (ex) { startupFunc = null; } if (startupFunc) eval(startupFunc); StartPageCheck(); // now do some Notification panel startup work: PlaySoundCheck(); // if we do...
dialog.rowsInput.focus();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); 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; di...
SetTextfieldFocus(dialog.rowsInput);
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); 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; di...
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...
gReplicationBundle = document.getElementById("bundle_replication"); document.getElementById("download").label = gReplicationBundle.getString("downloadButton"); document.getElementById("download").accessKey = gReplicationBundle.getString("downloadButtonAccessKey");
function Startup(){ gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if ( "arguments" in window && window.arguments[0] ) { gCurrentDirectory = window.arguments[0].selectedDirectory; gCurrentDirectoryString = window.arguments[0].selectedDire...
okButton.setAttribute( "value", bundle.GetStringFromName("dontDeleteFiles") ); Button2.setAttribute( "value", bundle.GetStringFromName("deleteFiles") ); cancelButton.setAttribute( "value", bundle.GetStringFromName("cancel") );
okButton.setAttribute("value", bundle.getString("dontDeleteFiles")); Button2.setAttribute("value", bundle.getString("deleteFiles")); cancelButton.setAttribute("value", bundle.getString("cancel"));
function Startup(){ doSetOKCancel( onDontDeleteFiles, onCancel, onDeleteFiles, null ); var okButton = document.getElementById("ok"); var Button2 = document.getElementById("Button2"); var cancelButton = document.getElementById("cancel"); try { okButton.setAttribute( "value", bundle.GetStringFromName("dontDelet...
if (gDialog.DefaultColorsRadio.checked) gDialog.DefaultColorsRadio.focus(); else gDialog.CustomColorsRadio.focus();
gDialog.PageColorGroup.focus();
function Startup(){ if (!InitEditorShell()) return; gDialog.ColorPreview = document.getElementById("ColorPreview"); gDialog.NormalText = document.getElementById("NormalText"); gDialog.LinkText = document.getElementById("LinkText"); gDialog.ActiveLinkText = document.getElementById("ActiveLinkText"); gDialog.Vis...
var gDownloadManager = new XPInstallDownloadManager();
gDownloadManager = new XPInstallDownloadManager();
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("EditorShell found for Spell Checker dialog\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(); } // Cre...
dump("Not all dialog controls were found!!!\n");
return;
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(); } // Cre...
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(); } // Cre...
dump(ex);
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(); } // Cre...
doSetOKCancel(Save, Cancel);
function Startup() { /* fetch the input */ var list = walletpreview.GetPrefillValue(); var BREAK = list[0]; prefillList = list.split(BREAK); var menuPopup; var count; /* create the fill-in entries */ for (var i=1; i<prefillList.length-1; i+=3) { if(prefillList[i] != 0) { count = prefillList[i]; men...
gNameArc = RDF.GetResource(NC_NS+"Name");
function Startup(){ initServices(); initBMService(); gNameArc = RDF.GetResource(NC_NS+"Name"); gName = document.getElementById("name"); gGroup = document.getElementById("addgroup"); gList = document.getElementById("select-menu"); gName.value = window.arguments[0]; gName.select(); gName.focus(); onFieldInput...
gList = document.getElementById("select-menu");
gMenulist = document.getElementById("select-menu"); gBookmarkTree = document.getElementById("folder-tree");
function Startup(){ initServices(); initBMService(); gNameArc = RDF.GetResource(NC_NS+"Name"); gName = document.getElementById("name"); gGroup = document.getElementById("addgroup"); gList = document.getElementById("select-menu"); gName.value = window.arguments[0]; gName.select(); gName.focus(); onFieldInput...
gIndentation = Array(16); gIndentation[0] = ""; for (var i=1; i<16; ++i) gIndentation[i]=gIndentation[i-1]+" ";
function Startup(){ initServices(); initBMService(); gNameArc = RDF.GetResource(NC_NS+"Name"); gName = document.getElementById("name"); gGroup = document.getElementById("addgroup"); gList = document.getElementById("select-menu"); gName.value = window.arguments[0]; gName.select(); gName.focus(); onFieldInput...
gDialog.selectedTab = GENERAL_TAB;
gDialog.selectedTab = COMPATIBILITY_TAB;
function Startup(){ if (InitEditorShell) { if (!InitEditorShell()) return; } else if (GetCurrentEditor && !GetCurrentEditor()) { window.close(); return; } // gDialog is declared in EdDialogCommon.js // Set commonly-used widgets like this: gDialog.selectedTab = TEXT_TAB; gDialog.sheetsTreechildren ...
gDialog.opacityLabel = document.getElementById("opacityLabel");
function Startup(){ if (InitEditorShell) { if (!InitEditorShell()) return; } else if (GetCurrentEditor && !GetCurrentEditor()) { window.close(); return; } // gDialog is declared in EdDialogCommon.js // Set commonly-used widgets like this: gDialog.selectedTab = TEXT_TAB; gDialog.sheetsTreechildren ...
}
setTimeout(delayedStartup, 0, elt); }
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...
dump("Element not selected - calling createElementWithDefaults\n");
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; // This is the "combined" widget: dialog.srcInput = document.getElementById("image.srcInput"); dial...
gDialog.srcInput = document.getElementById( "srcInput" ); gDialog.altTextInput = document.getElementById( "altTextInput" ); gDialog.MoreFewerButton = document.getElementById( "MoreFewerButton" ); gDialog.MoreSection = document.getElementById( "MoreSection" ); gDialog.customSizeRadio = document.g...
ImageStartup();
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 tagName = "img" imageElement = editorShell.GetSelectedElement(tagName);
var tagName = "img"; if ("arguments" in window && window.arguments[0]) { imageElement = window.arguments[0]; } else { imageElement = editorShell.GetSelectedElement("input"); if (!imageElement || imageElement.getAttribute("type") != "image") imageElement = editorShell.GetSelectedElement(tagName); }
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...
gInsertNewImage = false; actualWidth = imageElement.naturalWidth; actualHeight = imageElement.naturalHeight;
if (imageElement.hasAttribute("src")) { gInsertNewImage = false; actualWidth = imageElement.naturalWidth; actualHeight = imageElement.naturalHeight; }
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...
SeeMore = (gDialog.MoreFewerButton.getAttribute("more") != "1"); 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 rowIndex = 0;
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var rowIndex = 0; var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var title; ...
if (!bookmarksView.treeBoxObject.view.isContainerEmpty(0)) rowIndex = 1;
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var rowIndex = 0; var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var title; ...
bookmarksView.treeBoxObject.selection.select(rowIndex);
bookmarksView.treeBoxObject.selection.select(0);
function Startup(){ const windowNode = document.getElementById("bookmark-window"); const bookmarksView = document.getElementById("bookmarks-view"); var rowIndex = 0; var titleString; // If we've been opened with a parameter, root the tree on it. if ("arguments" in window && window.arguments[0]) { var title; ...
if (doSeeAll) { dialog.MoreRow.style.visibility = "inherit"; } else { dialog.MoreRow.style.visibility = "collapse"; }
SeeMore = true; onMoreFewer();
function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, null); // Create dialog object to store controls for easy access dialog = new Object; // This is the "combined" widget: dialog.srcInput = document.getElementById("image.srcInput"); dial...
messageText = messageText.replace(/\\n/g,'\n').replace(/<br>/g,'\n');
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Message dialog\n"); window.opener.msgResult = 0; // Message is wrapped in a <div> // We will add child text node(s) var messageParent = (document.getElementById("message")); var messageText = ""; if(window.arguments[1]) messag...
breakIndex = messageText.indexOf('\n');
breakIndex = messageText.indexOf("\n");
function Startup(){ if (!InitEditorShell()) return; dump("EditorShell found for Message dialog\n"); window.opener.msgResult = 0; // Message is wrapped in a <div> // We will add child text node(s) var messageParent = (document.getElementById("message")); var messageText = ""; if(window.arguments[1]) messag...
var AccentLower = document.getElementById("AccentUpper");
var AccentLower = document.getElementById("AccentLower");
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
indexM_S = indexM;
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
AccentUpper.checked = true;
CategoryGroup.selectedItem = AccentUpper;
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
AccentLower.checked = true;
CategoryGroup.selectedItem = AccentLower;
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
Upper.checked = true;
CategoryGroup.selectedItem = Upper;
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
Lower.checked = true;
CategoryGroup.selectedItem = Lower;
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
Symbol.checked = true;
CategoryGroup.selectedItem = Symbol;
function StartupLatin(){ LatinL = document.getElementById("LatinL"); LatinM = document.getElementById("LatinM"); LatinL_Label = document.getElementById("LatinL_Label"); LatinM_Label = document.getElementById("LatinM_Label"); var Symbol = document.getElementById("Symbol"); var AccentUpper = document.getElemen...
function startUpProxy() { doSetOKCancel(onOK, null);
function startUpProxy() {
function startUpProxy() { doSetOKCancel(onOK, null);}
function StartupViewSource() { EdAppCoreName = "ViewSource." + ( new Date() ).getTime().toString(); EdAppCore = new BrowserAppCore(); EdAppCore.Init( EdAppCoreName ); EdAppCore.setContentWindow(window.frames[0]); EdAppCore.setWebShellWindow(window); EdAppCore.setToolbarWindow(window);
function StartupViewSource() { createBrowserInstance();
function StartupViewSource() { // Generate unique name (var appCoreName declared in navigator.js). EdAppCoreName = "ViewSource." + ( new Date() ).getTime().toString(); // Create and initialize the browser app core. EdAppCore = new BrowserAppCore(); EdAppCore.Init( EdAppCoreName ); EdAppCore.setC...
var url = document.getElementById("args").getAttribute("value");
if ( appCore ) { appCore.isViewSource = true; appCore.setContentWindow(window.frames[0]); appCore.setWebShellWindow(window); appCore.setToolbarWindow(window); }
function StartupViewSource() { // Generate unique name (var appCoreName declared in navigator.js). EdAppCoreName = "ViewSource." + ( new Date() ).getTime().toString(); // Create and initialize the browser app core. EdAppCore = new BrowserAppCore(); EdAppCore.Init( EdAppCoreName ); EdAppCore.setC...
EdAppCore.loadUrl(url); }
var url = window.arguments[0]; appCore.loadUrl( url ); }
function StartupViewSource() { // Generate unique name (var appCoreName declared in navigator.js). EdAppCoreName = "ViewSource." + ( new Date() ).getTime().toString(); // Create and initialize the browser app core. EdAppCore = new BrowserAppCore(); EdAppCore.Init( EdAppCoreName ); EdAppCore.setC...
var oldValue = gChangeTable[gServerURI,name];
var oldValue = gChangeTable[gServerURI][name];
function StateChanged(name,state){ //dump("StateChanged(" + name + "," + state + ")\n"); if (gChangeTable[gServerURI] == undefined) { gChangeTable[gServerURI] = {}; gChangeTable[gServerURI][name] = state; } else { if (gChangeTable[gServerURI][name] == undefined) { gChangeTable[gServerURI][name...
bestState = {capture: hide, prefill: hide};
function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = {capture: hide, prefill: hide}; if (!content || !content.document) { return {capture: false, prefill: false}; } var document = content.document; if (!("forms...
elementCount = 0;
function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = {capture: hide, prefill: hide}; if (!content || !content.document) { return {capture: false, prefill: false}; } var document = content.document; if (!("forms...
var frameDocument = framesArray[frame].document; if (frameDocument) { rv = stateFoundInFormsArray(frameDocument.forms, threshhold);
var frameContent = framesArray[frame]; if (frameContent.document) { rv = stateFoundInFormsArray(frameContent, threshhold);
function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = {capture: hide, prefill: hide}; if (!content || !content.document) { return {capture: false, prefill: false}; } var document = content.document; if (!("forms...
rv = stateFoundInFormsArray(document.forms, threshhold);
rv = stateFoundInFormsArray(content, threshhold);
function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; bestState = {capture: hide, prefill: hide}; if (!content || !content.document) { return {capture: false, prefill: false}; } var document = content.document; if (!("forms...
function stateFoundInFormsArray(formsArray, threshhold) {
function stateFoundInFormsArray(content, threshhold) {
function stateFoundInFormsArray(formsArray, threshhold) { var rv = {capture: false, prefill: false}; var state = getStateFromFormsArray(formsArray, threshhold); for (var i in state) { if (state[i] == enable) { bestState[i] = enable; if (elementCount > threshhold) { ...
var state = getStateFromFormsArray(formsArray, threshhold);
var state = getStateFromFormsArray(content, threshhold);
function stateFoundInFormsArray(formsArray, threshhold) { var rv = {capture: false, prefill: false}; var state = getStateFromFormsArray(formsArray, threshhold); for (var i in state) { if (state[i] == enable) { bestState[i] = enable; if (elementCount > threshhold) { ...
else if ("properNick" in view) name = view.properNick;
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...
gSubscribableServer.stopPopulating(msgWindow);
if (gSubscribableServer) { gSubscribableServer.stopPopulating(msgWindow); }
function Stop(){ //dump("Stop()\n") gSubscribableServer.stopPopulating(msgWindow);}
data.Stop();
if ( started ) { var now = ( new Date() ).getTime(); if ( now - startTime > warningLimit ) { if ( 0 && !window.confirm( getString( "confirmCancel" ) ) ) { return; } } }
function stop() { // Stop the transfer. data.Stop(); // Close the window. window.close();}
window.close();
data.Stop(); window.close();
function stop() { // Stop the transfer. data.Stop(); // Close the window. window.close();}
var msg = "Document: Done (" + elapsed + " secs)";
var msg = Bundle.GetStringFromName("documentDonePrefix") + elapsed + Bundle.GetStringFromName("documentDonePostfix");
StopMeteors : function() { dump("stopping meteors 1\n"); if (!gStatusBar) gStatusBar = document.getElementById("statusbar-icon"); if(!gThrobber) gThrobber = document.getElementById("navigator-throbber"); // Record page loading time. var elapsed = ( (new Date()).getTime() - startTime ) / 1000; var...
if (this.meteorsSpinning)
if (this.meteorsSpinning && window.MsgStatusFeedback)
stopMeteors : function() { if (this.pendingStartRequests > 0) this.pendingStartRequests--; // if we are going to be starting the meteors, cancel the start if (this.pendingStartRequests == 0 && this.startTimeoutID) { clearTimeout(this.startTimeoutID); this.startTimeoutID = ...
try { if (this.title) this.title = this.mUnicodeConverter.ConvertToUnicode(this.title); } catch (ex) {} try { if (this.description) this.description = this.mUnicodeConverter.ConvertToUnicode(this.description); } catch (ex) {}
store: function() { this.mUnicodeConverter.charset = this.characterSet; try { if (this.title) this.title = this.mUnicodeConverter.ConvertToUnicode(this.title); } catch (ex) {} try { if (this.description) this.description = this.mUnicodeConverter.ConvertToUnicode(this.des...
try { this.content = this.mUnicodeConverter.ConvertToUnicode(this.content); } catch (ex) {}
store: function() { this.mUnicodeConverter.charset = this.characterSet; try { if (this.title) this.title = this.mUnicodeConverter.ConvertToUnicode(this.title); } catch (ex) {} try { if (this.description) this.description = this.mUnicodeConverter.ConvertToUnicode(this.des...
aSettings.useServerFilter = document.getElementById("useServerFilter").checked; aSettings.serverFilterName = document.getElementById("useServerFilterList").value;
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...
if (!data || data == "") throw Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED;
if (!data || data == "") { throw new Components.Exception( "Login failed. Invalid session ID.", Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED ); }
function stringToIcal( data ){ if (!data || data == "") // assuming time-out throw Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED; var icalRootComp = getIcsService().parseICS( data ); checkWcapIcalErrno( icalRootComp ); return icalRootComp;}
if (!data || data == "") throw Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED;
if (!data || data == "") { throw new Components.Exception( "Login failed. Invalid session ID.", Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED ); }
function stringToXml( data ){ if (!data || data == "") // assuming time-out throw Components.interfaces.calIWcapErrors.WCAP_LOGIN_FAILED; var xml = getDomParser().parseFromString( data, "text/xml" ); checkWcapXmlErrno( xml ); return xml;}
s = s.replace (/^\s+/); return s.replace (/\s+$/);
s = s.replace (/^\s+/, ""); return s.replace (/\s+$/, "");
function stringTrim (s){ if (!s) return ""; s = s.replace (/^\s+/); return s.replace (/\s+$/); }
}
},
stripTags: function(someHTML) { return someHTML.replace(/<[^>]+>/g,""); }
do_transforms();
stuffLoaded : function(mask){ __docSet.mLoaded+=mask; if (this.mLoaded==7){ netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var txProc = new XSLTProcessor(),isGood; dump("\nTrying "+this.mName+" "); txProc.transformDocument(this.mSource,this.mStyle,this.mResult,nul...
if (aObject.hasAttribute("style")) this.mStyleAttribute = new XPCNativeWrapper(aObject, "style").style;
if (aObject.hasAttribute("style")) { try { this.mStyleAttribute = new XPCNativeWrapper(aObject, "style").style; } catch (ex) {} }
function StyleRuleView(aObject){ this.mDOMUtils = XPCU.getService("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils"); if (doesQI(aObject, "nsIDOMCSSStyleSheet")) { this.mSheetRules = aObject.cssRules; } else { this.mRules = this.mDOMUtils.getCSSStyleRules(aObject); if (aObject.hasAttribute("style")) ...
var styleSheets = getAllStyleSheets(window._content);
var styleSheets = getAllStyleSheets(window.content);
function stylesheetFillPopup(menuPopup){ var noStyle = menuPopup.firstChild; var persistentOnly = noStyle.nextSibling; var sep = persistentOnly.nextSibling; while (sep.nextSibling) menuPopup.removeChild(sep.nextSibling); var styleSheets = getAllStyleSheets(window._content); var currentStyleSheets = []; var st...
persistentOnly.hidden = (window._content.document.preferredStylesheetSet) ? true : false;
persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? true : false;
function stylesheetFillPopup(menuPopup){ var noStyle = menuPopup.firstChild; var persistentOnly = noStyle.nextSibling; var sep = persistentOnly.nextSibling; while (sep.nextSibling) menuPopup.removeChild(sep.nextSibling); var styleSheets = getAllStyleSheets(window._content); var currentStyleSheets = []; var st...
}
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; ...
window.content.focus();
SetMsgBodyFrameFocus();
function subjectKeyPress(event){ switch(event.keyCode) { case 9: if (!event.shiftKey) { window.content.focus(); event.preventDefault(); } break; case 13: window.content.focus(); break; }}
event.preventDefault;
event.preventDefault();
function subjectKeyPress(event) { switch(event.keyCode) { case 9: if (!event.shiftKey) { window._content.focus(); event.preventDefault; } break; case 13: window._content.focus(); break; }}
for (var name in changeTable[serverURI]) { if (changeTable[serverURI][name] == true) { try { subscribableServer.subscribe(name); } catch (ex) { dump("failed to subscribe to " + name + ": " + ex + "\n"); } } else if (changeTable[serverURI][name] == false) { try { subscribableServer.unsubscribe(name); } catch (ex) { dump...
for (var name in changeTable[serverURI]) { if (changeTable[serverURI][name] == true) {
function SubscribeOKCallback(changeTable){ for (var serverURI in changeTable) { var folder = GetMsgFolderFromUri(serverURI, true); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer); for (var name in changeTable[serverURI...
subscribableServer.commitSubscribeChanges();
subscribableServer.subscribe(name);
function SubscribeOKCallback(changeTable){ for (var serverURI in changeTable) { var folder = GetMsgFolderFromUri(serverURI, true); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer); for (var name in changeTable[serverURI...
dump("failed to commit the changes: " + ex + "\n");
dump("failed to subscribe to " + name + ": " + ex + "\n");
function SubscribeOKCallback(changeTable){ for (var serverURI in changeTable) { var folder = GetMsgFolderFromUri(serverURI, true); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer); for (var name in changeTable[serverURI...
try { subscribableServer.commitSubscribeChanges(); } catch (ex) { dump("failed to commit the changes: " + ex + "\n"); } }
function SubscribeOKCallback(changeTable){ for (var serverURI in changeTable) { var folder = GetMsgFolderFromUri(serverURI, true); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer); for (var name in changeTable[serverURI...
var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer);
function SubscribeOKCallback(changeTable){ for (var serverURI in changeTable) { //dump("serverURI = " + serverURI + "\n"); var folder = GetMsgFolderFromUri(serverURI); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer); ...
if (t.localName == "image") { ReverseStateFromNode(t.parentNode.parentNode.parentNode); return; }
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") { ...
msgWindow.domWindow = window;
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeBundle = document.getElementById("bundle_subscribe"); gMessengerBundle = document.getElementById("bundle_messenger"); gSubscribeTree = document.getElementById("subscribeTree"); gSearchTree = document.getElementById("searchTree"); gSearchTreeBox...
gNumPendingFeedDownloads++;
subscribeToFeed: function(aUrl, aFolder, aMsgWindow) { if (!gExternalScriptsLoaded) loadScripts(); var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var itemResource = rdf.GetResource(aUrl); var feed = new Feed(itemResou...
case "cmd_bm_sortfolderbyname": case "cmd_bm_sortfolder":
supportsCommand: function (aCommand) { var isCommandSupported; switch(aCommand) { case "cmd_undo": case "cmd_redo": case "cmd_bm_undo": case "cmd_bm_redo": case "cmd_bm_cut": case "cmd_bm_copy": case "cmd_bm_paste": case "cmd_bm_delete": case "cmd_bm_selectAll": case "cmd_bm_open"...