rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
goUpdateGlobalEditMenuItems();
initClipboardItems : function () { // Select All is always OK. // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", this.isNoTextSelected...
#ifndef XP_UNIX this.showItem( "context-copyimage-contents", this.onImage ); #endif
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
this.showItem( "context-copy", true );
this.showItem( "context-copy", this.isTextSelected || this.onTextInput);
initClipboardItems : function () { // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updating system // this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() ); goUpdateGlobalEditMenuItems...
gResultsTree = document.getElementById("abResultsTree");
gAbResultsTree = document.getElementById('abResultsTree');
function InitCommonJS(){ dirTree = document.getElementById("dirTree"); abList = document.getElementById("addressbookList"); gResultsTree = document.getElementById("abResultsTree");}
gAbResultsTree = document.getElementById('abResultsTree');
gAbResultsTree = document.getElementById("abResultsTree");
function InitCommonJS(){ dirTree = document.getElementById("dirTree"); abList = document.getElementById("addressbookList"); gAbResultsTree = document.getElementById('abResultsTree');}
var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService);
function initConsoleListener(){ var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); /** * XXX - console launch hookup requires some work that I'm not sure how to * do. * * 1) ideally, the not...
**/
* var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); if (consoleService) consoleService.registerListener(consoleListener); */
function initConsoleListener(){ var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); /** * XXX - console launch hookup requires some work that I'm not sure how to * do. * * 1) ideally, the not...
var consoleService = nsJSComponentManager.getService("mozilla.consoleservice.1", "nsIConsoleService");
var consoleService = nsJSComponentManager.getService("@mozilla.org/consoleservice;1", "nsIConsoleService");
function initConsoleListener(){ var consoleService = nsJSComponentManager.getService("mozilla.consoleservice.1", "nsIConsoleService"); /** * XXX - console launch hookup requires some work that I'm not sure how to * do. * * 1) ideally, the notification would disappear when the document that had the...
document.getElementById('identity.fccReplyFollowsParent').checked = copiesAndFoldersIdentity.fccReplyFollowsParent;
function initCopiesAndFolder(identity){ // if we are editing an existing identity, use it...otherwise copy our values from the default identity var copiesAndFoldersIdentity = identity ? identity : gAccount.defaultIdentity; document.getElementById('identity.fccFolder').value = copiesAndFoldersIdentity.fccFolder; do...
data.contentDisp = window.arguments[2];
function initData() { // Create data object and initialize. data = new Object; data.channel = window.arguments[0]; data.contentType = window.arguments[1]; // Get location from channel. data.location = data.channel.URI.spec;}
var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING"
var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTEGER, name STRING, value STRING"
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContrac...
"SELECT id FROM cal_calendars WHERE name = :name AND type = :type AND uri = :uri");
"SELECT id FROM cal_calendars WHERE type = :type AND uri = :uri");
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContrac...
"INSERT INTO cal_calendars (name, type, uri) " + "VALUES (:name, :type, :uri)"
"INSERT INTO cal_calendars (type, uri) " + "VALUES (:type, :uri)"
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContrac...
glob: null,
globalObject: null,
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
var venkmanFilter1 = { glob: this,
var venkmanFilter1 = { globalObject: this,
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
var venkmanFilter2 = { glob: null,
var venkmanFilter2 = { globalObject: null,
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
throw BadMojo (ERR_NO_DEBUGGER);
throw new BadMojo (ERR_NO_DEBUGGER);
function initDebugger(){ console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console._breakpoints = new Array(); /* breakpoints ...
console.addPref ("dbgContexts", false); console.addPref ("dbgDispatch", false); console.addPref ("dbgRealize", false);
if (!("devState" in console.pluginState)) { console.addPref ("dbgContexts", false); console.addPref ("dbgDispatch", false); console.addPref ("dbgRealize", false); } console.pluginState.devState = true;
function initDev(){ var cmdary = [["dumpcontexts", cmdDumpContexts, CMD_CONSOLE | CMD_NO_HELP], ["dumpfilters", cmdDumpFilters, CMD_CONSOLE | CMD_NO_HELP], ["dumptree", cmdDumpTree, CMD_CONSOLE | CMD_NO_HELP], ["dumpscripts", cmdDumpScripts, CMD_CONSOLE | CMD_NO_HEL...
this.mDialog.document.documentElement.getButton("accept").disabled = true; const nsITimer = Components.interfaces.nsITimer; this._timer = Components.classes["@mozilla.org/timer;1"] .createInstance(nsITimer); this._timer.initWithCallback(this, 250, nsITimer.TYPE_ONE_SHOT);
initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ...
win.setAttribute( "title", this.mTitle );
win.document.title = this.mTitle;
initDialog : function() { // Put file name in window title. var win = this.dialogElement( "unknownContentType" ); var suggestedFileName = this.mLauncher.suggestedFileName; // Some URIs do not implement nsIURL, so we can't just QI. var url = this.mLauncher.source; ...
if (this.mForced ||
if (this.mReason != REASON_CANTHANDLE ||
initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ...
case "top": case "center": case "right": case "left": dialog.alignTypeSelect.data = align;
case "top": case "center": case "right": case "left": dialog.alignTypeSelect.value = align;
function InitDialog(){ // Set the controls to the image's attributes var str = globalElement.getAttribute("src"); if (str) { dialog.srcInput.value = str; GetImageFromURL(); } str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // setup the height and width widgets va...
default: dialog.alignTypeSelect.data = "bottom";
default: dialog.alignTypeSelect.value = "bottom";
function InitDialog(){ // Set the controls to the image's attributes var str = globalElement.getAttribute("src"); if (str) { dialog.srcInput.value = str; GetImageFromURL(); } str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // setup the height and width widgets va...
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "widthInput","widthPixelOrPercentMenulist"); dialog.heightInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "heightInput","heightPixelOrPercentMenulist");
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "widthInput","widthPixelOrPercentMenulist", gPercent); dialog.heightInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "heightInput","heightPixelOrPercentMenulist", gPixel);
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of select combobox list dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "widthInput","widthPixelOrPercentMenulist"); dial...
dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement, "width", "widthUnitsSelect"); dialog.heightInput.value = InitPixelOrPercentCombobox(globalElement, "height", "heightUnitsSelect");
dialog.widthInput.value = InitPixelOrPercentPopup(globalElement, imageElement, "width", "widthUnitsMenulist"); dialog.heightInput.value = InitPixelOrPercentPopup(globalElement, imageElement, "height", "heightUnitsMenulist");
function InitDialog(){ // Set the controls to the image's attributes str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; if ( SeeMore ) { // setup the height and width widgets dialog.widthI...
var RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); var index = gDialog.charsetTree.builderView.getIndexOfResource(RDF.GetResource(charset)); if (index >= 0) { var treeBox = gDialog.charsetTree.treeBoxObject; treeBox.selection.select(index); treeBox.ensureRowI...
function InitDialog() { gDialog.TitleInput.value = editorShell.GetDocumentTitle(); charset = editorShell.GetDocumentCharacterSet();}
ListStyle = "ul";
if (ListElement) ListType = ListElement.nodeName.toLowerCase(); else ListType = "";
function InitDialog(){ //TODO: Get the current list style and set in ListStyle variable ListStyle = "ul"; BuildBulletStyleList();/* if(!element) { dump("Failed to get selected element or create a new one!\n"); window.close(); }*/}
dialog.HeadSrcInput.value = editorShell.GetHeadContentsAsHTML();
function InitDialog(){ dialog.TitleInput.value = editorShell.GetDocumentTitle(); dialog.AuthorInput.value = authorElement.getAttribute("content"); dialog.DescriptionInput.value = descriptionElement.getAttribute("content"); // Get the entire contents of the "head" region. dialog.HeadSrcInput.value = editorShell.Get...
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, imageElement, "width", "widthUnitsMenulist"); dialog.heightInput.value = InitPixelOrPercentMenulist(globalElement, imageElement, "height", "heightUnitsMenulist");
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, imageElement, "width", "widthUnitsMenulist", gPixel); dialog.heightInput.value = InitPixelOrPercentMenulist(globalElement, imageElement, "height", "heightUnitsMenulist", gPixel);
function InitDialog(){ // Set the controls to the image's attributes str = globalElement.getAttribute("src"); if (str) dialog.srcInput.value = str; str = globalElement.getAttribute("alt"); if (str) dialog.altTextInput.value = str; // Check for image map if ( SeeMore ) { // setup the height and wid...
dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement,"width","pixelOrPercentSelect");
dump("AFTER Calling InitPixelOrPercentMenulist\n");
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height; // Get the width attribute...
dump("Done with INIT\n");
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height; // Get the width attribute...
gDialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "width", "widthPixelOrPercentMenulist", gPercent);
gDialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, null, "width", "widthPixelOrPercentMenulist", gPercent);
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of menu combobox list gDialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "width", "widthPixelOrPercentMenulist", gPercent); ...
pickApp.setAttribute( "value", bundle.GetStringFromName("pick") );
pickApp.setAttribute( "label", bundle.GetStringFromName("pick") );
function initDialog() { // Create dialog object and initialize. dialog = new Object; dialog.contentType = document.getElementById("dialog.contentType"); dialog.more = document.getElementById("dialog.more"); bundle = srGetStrBundle("chrome://global/locale/unknownContent.properties"); var pickApp...
saveButton.setAttribute( "value", bundle.GetStringFromName("save") );
saveButton.setAttribute( "label", bundle.GetStringFromName("save") );
function initDialog() { // Create dialog object and initialize. dialog = new Object; dialog.contentType = document.getElementById("dialog.contentType"); dialog.more = document.getElementById("dialog.more"); bundle = srGetStrBundle("chrome://global/locale/unknownContent.properties"); var pickApp...
dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits", gPercent);
function InitDialog(){ // Get Table attributes dialog.TableRowsInput.value = rowCount; dialog.TableColumnsInput.value = colCount; dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits", gPercent); dialog.TableWidthInput.value = InitPixelOrPercentMe...
dialog.widthInput.value = InitPixelOrPercentPopupButton(globalElement, "width", "pixelOrPercentButton");
dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement,"width","pixelOrPercentSelect");
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of button text and "percentChar" variable dialog.widthInput.value = InitPixelOrPercentPopupButton(globalElement, "width", "pixelOrPercentButton"); dialog.b...
window.sizeToContent();
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of button text and "percentChar" variable dialog.widthInput.value = InitPixelOrPercentPopupButton(globalElement, "width", "pixelOrPercentButton"); dialog.b...
author = prefs.CopyCharPref("editor.author");
author = prefs.getCharPref("editor.author");
function InitDialog(){ gDialog.TitleInput.value = editorShell.GetDocumentTitle(); var author = TrimString(authorElement.getAttribute("content")); if (author.length == 0) { // Fill in with value from editor prefs var prefs = GetPrefs(); if (prefs) author = prefs.CopyCharPref("editor.author"); } gDia...
dialog.heightInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "heightInput","heightPixelOrPercentMenulist", gPixel);
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of menu combobox list dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "widthInput","widthPixelOrPercentMenulist", gPercent...
dump("Calling InitPixelOrPercentMenulist\n");
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height;dump("Calling InitPixelOrPer...
dump("AFTER Calling InitPixelOrPercentMenulist\n");
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height;dump("Calling InitPixelOrPer...
dump("Table Editing:InitDialog()\n");
try { rowCount = editorShell.GetTableRowCount(globalTableElement); dialog.TableRowsInput.value = rowCount; colCount = editorShell.GetTableColumnCount(tableGlobatlElement); dialog.TableColumnsInput.value = colCount; } catch (ex) { dump("Failed to get table rows and/or columns count\n"); dialog.TableRowsInput.value = ""...
function InitDialog(){ dump("Table Editing:InitDialog()\n");}
dialog.widthInput.value = InitPixelOrPercentPopupButton(globalElement, "width", "pixelOrPercentButton");
dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement,"width","pixelOrPercentSelect"); window.sizeToContent();
function InitDialog(){ // Just to be confusing, "size" is used instead of height // We will use "height" here and in UI dialog.heightInput.value = globalElement.getAttribute("size"); // Get the width attribute of the element, stripping out "%" // This sets contents of button text and "percentChar" variable dialog...
dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement,"width","pixelOrPercentSelect");
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "width","pixelOrPercentMenulist");
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of select combobox list dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement,"width","pixelOrPercentSelect"); dialog.borderInput.value = glob...
applyButton.setAttribute("accesskey", GetString("ApplyAccessKey"));
function InitDialog(){// turn on Button3 to be "apply" var applyButton = document.getElementById("Button3"); if (applyButton) { applyButton.label = GetString("Apply"); applyButton.removeAttribute("collapsed"); } // Get Table attributes gDialog.TableRowsInput.value = rowCount; gDialog.TableColumnsInput.va...
dialog.plexList = document.getElementById("plexList"); dialog.plexGroup = document.getElementById("plexGroup");
function initDialog(){ dialog = new Object; dialog.paperList = document.getElementById("paperList"); dialog.paperGroup = document.getElementById("paperGroup"); dialog.cmdLabel = document.getElementById("cmdLabel"); dialog.cmdInput = document.getElementById("cmdInput"); dialog.colorGroup...
dialog.cmdGroup = document.getElementById("cmdGroup");
function initDialog(){ dialog = new Object; dialog.paperList = document.getElementById("paperList"); dialog.paperGroup = document.getElementById("paperGroup"); dialog.cmdLabel = document.getElementById("cmdLabel"); dialog.cmdInput = document.getElementById("cmdInput"); dialog.colorGroup...
dialog.hrefInput.value = globalElement.href;
dialog.hrefInput.value = globalElement.getAttribute("href");
function InitDialog(){ dialog.hrefInput.value = globalElement.href;}
dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits"); dialog.TableWidthInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "width", "TableWidthUnits");
dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits", gPercent); dialog.TableWidthInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "width", "TableWidthUnits", gPercent);
function InitDialog(){ // Get Table attributes dialog.TableRowsInput.value = rowCount; dialog.TableColumnsInput.value = colCount; dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits"); dialog.TableWidthInput.value = InitPixelOrPercentMenulist(glo...
if (globalTableElement.background) dialog.TableImageInput.value = globalTableElement.background;
function InitDialog(){ // Get Table attributes dialog.TableRowsInput.value = rowCount; dialog.TableColumnsInput.value = colCount; dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits"); dialog.TableWidthInput.value = InitPixelOrPercentMenulist(glo...
wasEnableAll = !(dialog.srcInput.value.length > 0);
function initDialog() { // Get a single selected anchor element imageElement = editorShell.GetSelectedElement(tagName); if (imageElement) { // We found an element and don't need to insert one insertNew = false; } else { insertNew = true; // We don't have an element selected, // so create one w...
gReplaceDialog.findKey = document.getElementById("dialog.findKey"); gReplaceDialog.replaceKey = document.getElementById("dialog.replaceKey");
gReplaceDialog.findInput = document.getElementById("dialog.findInput"); gReplaceDialog.replaceInput = document.getElementById("dialog.replaceInput");
function initDialogObject(){ // Create gReplaceDialog object and initialize. gReplaceDialog = new Object(); gReplaceDialog.findKey = document.getElementById("dialog.findKey"); gReplaceDialog.replaceKey = document.getElementById("dialog.replaceKey"); gReplaceDialog.caseSensitive = document.getElement...
gReplaceDialog.bundle = null; gReplaceDialog.editor = null;
gEditor = null;
function initDialogObject(){ // Create gReplaceDialog object and initialize. gReplaceDialog = new Object(); gReplaceDialog.findKey = document.getElementById("dialog.findKey"); gReplaceDialog.replaceKey = document.getElementById("dialog.replaceKey"); gReplaceDialog.caseSensitive = document.getElement...
document.getElementById('virtualFolderPropertiesDialog').setAttribute('title',messengerBundle.getFormattedString('editVirtualFolderPropertiesTitle', [msgFolder.prettyName]));
document.title = messengerBundle.getFormattedString('editVirtualFolderPropertiesTitle', [msgFolder.prettyName]);
function InitDialogWithVirtualFolder(aVirtualFolderURI){ // when editing an existing folder, hide the folder picker that stores the parent location of the folder document.getElementById("chooseFolderLocationRow").collapsed = true; var folderNameField = document.getElementById("name"); folderNameField.disabled = tru...
document.getElementById("nntp.downloadUnread").checked = downloadSettings.downloadUnreadOnly;
document.getElementById("nntp.notDownloadRead").checked = downloadSettings.downloadUnreadOnly;
function initDownloadSettings(){ var downloadSettings = gIncomingServer.downloadSettings; document.getElementById("nntp.downloadMsg").checked = downloadSettings.downloadByDate; document.getElementById("nntp.downloadUnread").checked = downloadSettings.downloadUnreadOnly; if(downloadSettings.ageLimitOfMsgsTo...
gAddressBookBundle = document.getElementById("bundle_addressBook");
function InitEditCard(){ // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Components....
gEditCard = new Object;
gEditCard = new Object();
function InitEditCard(){ InitPhoneticFields(); gAddressBookBundle = document.getElementById("bundle_addressBook"); // Create gEditCard object that contains global variables for the current js // file. gEditCard = new Object; gEditCard.prefs = gPrefs; // get specific prefs that gEditCard will need try { var...
var prefs = Components.classes["@mozilla.org/preferences;1"];
var prefs = Components.classes["@mozilla.org/preferences-service;1"];
function InitEditCard(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = pre...
prefs = prefs.QueryInterface(Components.interfaces.nsIPref);
prefs = prefs.QueryInterface(Components.interfaces.nsIPrefBranch);
function InitEditCard(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = pre...
editCard.displayLastNameFirst = prefs.GetBoolPref("mail.addr_book.displayName.lastnamefirst"); editCard.generateDisplayName = prefs.GetBoolPref("mail.addr_book.displayName.autoGeneration");
editCard.displayLastNameFirst = prefs.getBoolPref("mail.addr_book.displayName.lastnamefirst"); editCard.generateDisplayName = prefs.getBoolPref("mail.addr_book.displayName.autoGeneration");
function InitEditCard(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["@mozilla.org/preferences;1"]; if ( prefs ) { prefs = pre...
gEditor = editorShell.editor.QueryInterface(Components.interfaces.nsIHTMLEditor);
function InitEditorShell(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; if (editorShell) { editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); } if (!editorShell) { dump("EditorShell not found!!!\n"); window.close(); return false...
aFI.fileExt = url.fileExtension;
function initFileInfo(aFI, aURL, aDocument, aContentType){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it will // populate ...
var fastFind = getBrowser().fastFind; fastFind.focusLinks = true;
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
var faceType = menuItem.getAttribute("data");
var faceType = menuItem.getAttribute("value");
function initFontFaceMenu(menuPopup){ if (menuPopup) { var children = menuPopup.childNodes; if (!children) return; var firstHas = new Object; var anyHas = new Object; var allHas = new Object; allHas.value = false; // we need to set or clear the checkmark for each menu item since the selection ...
var url = getCharPref("privacyURL", "http: var privacyLink = document.getElementById("privacyPolicy"); privacyLink.setAttribute("href", url);
function initForm() { var strbundle=document.getElementById("strings"); var reportWizard = document.getElementById('reportWizard'); reportWizard.canRewind = false; document.getElementById('url').value = gURL; // Change next button to "submit report" reportWizard.getButton('next').label = strbundle.getString("subm...
window.isFocused = false; window.addEventListener("focus", onWindowFocus, true); window.addEventListener("blur", onWindowBlue, true);
function initHandlers(){ var node; node = document.getElementById("input"); node.addEventListener("keypress", onInputKeyPress, false); node = document.getElementById("multiline-input"); node.addEventListener("keypress", onMultilineInputKeyPress, false); node.active = false; window.onkeypress = onWi...
console.windows.hookedWindows = new Array(); var enumerator = console.windowWatcher.getWindowEnumerator(); while (enumerator.hasMoreElements()) { var win = enumerator.getNext(); if (win.location.href != "chrome: { console.onWindowOpen(win); console.onWindowLoad(); } }
function initHandlers(){ function wwObserve (subject, topic, data) { //dd ("wwObserver::Observe " + subject + ", " + topic); if (topic == "domwindowopened") console.onWindowOpen (subject); else console.onWindowClose (subject); }; console.wwObserver = {observe: wwOb...
obj.munger.enabled = false;
obj.munger.enabled = true;
function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (10); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.magic.ca", port: 6667}, {name: "irc.freei...
("link", /((\w+)\:\/\/[^\<\>\(\)\'\"\s]*|www\.[^\<\>\(\)\'\"\s]+\.[^\<\>\(\)\'\"\s]*)/,
("link", /((\w+):\/\/[^<>()\'\"\s]+|www(\.[^.<>()\'\"\s]+){2,})/,
function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (200); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.mcs.net", port: 6667}, {name: "ir...
obj.munger.addRule ("rheet", /(rhee+t\!*)/i, "rheet");
obj.munger.addRule ("ear", /(\(\*)/, insertEar); obj.munger.addRule ("rheet", /(rhee+t\!*)/i, insertRheet);
function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (200); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.mcs.net", port: 6667}, {name: "ir...
obj.munger.addRule ("italic", /[^sS](\/[^\/]*\/)/, "italic");
obj.munger.addRule ("italic", /[^sS\<](\/[^\/][^\>]*\/)/, "italic");
function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (200); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.mcs.net", port: 6667}, {name: "ir...
("face", /([\<\>]?[\;\=\:\8]\~?[\-\^\v]?[\)\|\(pP\<\>oO0\[\]\/\\])/,
("face", /((^|\s)[\<\>]?[\;\=\:\8]\~?[\-\^\v]?[\)\|\(pP\<\>oO0\[\]\/\\](\s|$))/,
function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (10); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.freei.net", port: 6667}, {name: "irc.prim...
gHtmlDocument.write("<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>");
gHtmlString += "<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>";
function initHTMLView(){ //printwindow.document.open(); gHtmlDocument.write("<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>"); if (gMyTitle.length > 0) {// gHtmlDocument.write("<tr><td colspan=3 align=center style='font-size:26px;font-weight:bold;'>>");// gHtmlDocument.write("<tr>...
gHtmlDocument.write("<table border=0 width=100% style='font-size:26px;font-weight:bold;'><tr><td valign=bottom align=center>"); gHtmlDocument.write(gMyTitle); gHtmlDocument.write("</td></tr></table>");
gHtmlString += "<table border=0 width=100% style='font-size:26px;font-weight:bold;'><tr><td valign=bottom align=center>"; gHtmlString += gMyTitle; gHtmlString += "</td></tr></table>";
function initHTMLView(){ //printwindow.document.open(); gHtmlDocument.write("<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>"); if (gMyTitle.length > 0) {// gHtmlDocument.write("<tr><td colspan=3 align=center style='font-size:26px;font-weight:bold;'>>");// gHtmlDocument.write("<tr>...
return gHtmlDocument;
return;
function initHTMLView(){ //printwindow.document.open(); gHtmlDocument.write("<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>"); if (gMyTitle.length > 0) {// gHtmlDocument.write("<tr><td colspan=3 align=center style='font-size:26px;font-weight:bold;'>>");// gHtmlDocument.write("<tr>...
gHtmlString += "<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>";
gHtmlString += "<html><head><link rel=stylesheet type=text/css href=chrome: gHtmlString += "<title>"+windowTitle+"</title></head><body>";
function initHTMLView(){ gHtmlString += "<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>"; if (gMyTitle.length > 0) {// gHtmlString += "<tr><td colspan=3 align=center style='font-size:26px;font-weight:bold;'>>";// gHtmlString += "<tr><td colspan=2 align=center style='font-size:26px;...
gHtmlString += "<table border=0 width=100% style='font-size:26px;font-weight:bold;'><tr><td valign=bottom align=center>";
gHtmlString += "<table><tr><td valign=bottom align=center>";
function initHTMLView(){ gHtmlString += "<html><head><title>"+windowTitle+"</title></head><body style='font-size:11px;'>"; if (gMyTitle.length > 0) {// gHtmlString += "<tr><td colspan=3 align=center style='font-size:26px;font-weight:bold;'>>";// gHtmlString += "<tr><td colspan=2 align=center style='font-size:26px;...
targetElement = gSearchBooleanRadiogroup.getElementsByAttribute("data", targetValue)[0];
targetElement = gSearchBooleanRadiogroup.getElementsByAttribute("value", targetValue)[0];
function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0]; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have data="and" or data="or" targetValue = "or"; if (booleanAnd) targetValue = "a...
for (var i=1; i<gSearchTerms.length; i++) { document.getElementById('boolOp' + i).setAttribute('value', booleanAnd ? gBooleanAndText : gBooleanOrText); }
function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0].searchTerm; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" gSearchBooleanRadiogroup.value = booleanAn...
gSearchBooleanRadiogroup.value = booleanAnd ? "and" : "or";
matchAll = firstTerm.matchAll; } gSearchBooleanRadiogroup.value = matchAll ? "matchAll" : (booleanAnd ? "and" : "or") var searchTerms = document.getElementById("searchTermList"); if (searchTerms) searchTerms.hidden = matchAll;
function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0].searchTerm; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" gSearchBooleanRadiogroup.value = booleanAn...
gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0];
gActionElement.selectedItem=gActionElement.getElementsByAttribute("value", filter.action)[0];
function initializeDialog(filter){ var selectedPriority; gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { ...
var targets = gActionTargetElement.getElementsByAttribute("data", filter.actionTargetFolderUri);
var targets = gActionTargetElement.getElementsByAttribute("value", filter.actionTargetFolderUri);
function initializeDialog(filter){ var selectedPriority; gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { ...
selectedPriority = gActionPriority.getElementsByAttribute("data", filter.actionPriority);
selectedPriority = gActionPriority.getElementsByAttribute("value", filter.actionPriority);
function initializeDialog(filter){ var selectedPriority; gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { ...
if (filter.searchTerms.Count() > 1) gSearchLessButton.removeAttribute("disabled", "false");
if (filter.searchTerms.Count() == 1) document.getElementById("less0").setAttribute("disabled", "true");
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf...
if (target.tagName == "menuitem")
if (target.localName == "menuitem")
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { // there are multiple...
if (filterAction.type == nsMsgFilterAction.MoveToFolder) { gMoveToFolderCheckbox.checked = true; var target = filterAction.targetFolderUri; if (target) SetFolderPicker(target, gActionTargetMoveElement.id); } else if (filterAction.type == nsMsgFilterAction.CopyToFolder) { gCopyToFolderCheckbox.checked = true; var targ...
var newActionRow = document.createElement('listitem'); newActionRow.setAttribute('initialActionIndex', actionIndex); newActionRow.className = 'ruleaction'; gFilterActionList.appendChild(newActionRow); newActionRow.setAttribute('value', gFilterActionStrings[filterAction.type]); }
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf...
if (selectedPriority) gActionPriority.selectedItem = selectedPriority; } else if (filterAction.type == nsMsgFilterAction.Label) { gLabelCheckbox.checked = true; var selectedLabel = gActionLabel.getElementsByAttribute("value", filterAction.label).item(0); if (selectedLabel) gActionLabel.selectedItem = selectedLabel; } ...
var scope = getScope(filter); setSearchScope(scope); initializeSearchRows(scope, filter.searchTerms);
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf...
gFilterNameElement = document.getElementById("filterName"); gActionTargetMoveElement = document.getElementById("actionTargetFolder"); gActionTargetCopyElement = document.getElementById("actionTargetFolder2"); gActionValueDeck = document.getElementById("actionValueDeck"); gActionPriority = document.getElementById("actio...
gFilterNameElement = document.getElementById("filterName"); gFilterActionList = document.getElementById("filterActionList");
function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetMoveElement = document.getElementById("actionTargetFolder"); gActionTargetCopyElement = document.getElementById("actionTargetFolder2"); gActionValueDeck = document.getElementById("actionValueDeck"); ...
parent.UpdateWizardMap();
function initializeIspData(){ if (!document.getElementById("mailaccount").selected) { parent.SetCurrentAccountData(null); } // now reflect the datasource up into the parent var accountSelection = document.getElementById("acctyperadio"); var ispName = accountSelection.selectedItem.id; dump("...
hideMatchAllItem();
function initializeMailViewOverrides(){ // replace some text with something we want. Need to add some ids to searchOverlay.js //var orButton = document.getElementById('or'); //orButton.setAttribute('label', 'Any of the following'); //var andButton = document.getElementById('and'); //andButton.setAttribute('label',...
getLocaleShortDateFormat();
initLocaleShortDateFormat();
function initializeSearchDateFormat(){ if (gSearchDateFormat) return; // get a search date format option and a seprator try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gSearchDateFormat = ...
gSearchDateSeparator = pref.getComplexValue("mailnews.search_date_separator", Components.interfaces.nsIPrefLocalizedString);
gSearchDateSeparator = pref.getComplexValue("mailnews.search_date_separator", Components.interfaces.nsIPrefLocalizedString); gSearchDateLeadingZeros = (pref.getComplexValue("mailnews.search_date_leading_zeros", Components.interfaces.nsIPrefLocalizedString).data == "true");
function initializeSearchDateFormat(){ if (gSearchDateFormat) return; // get a search date format option and a seprator try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gSearchDateFormat = ...
} catch (ex) {
} catch (e) { dump("initializeSearchDateFormat: caught an exception: "+e+"\n");
function initializeSearchDateFormat(){ if (gSearchDateFormat) return; // get a search date format option and a seprator try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gSearchDateFormat = ...
gSearchDateLeadingZeros = true;
function initializeSearchDateFormat(){ if (gSearchDateFormat) return; // get a search date format option and a seprator try { var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); gSearchDateFormat = ...
gSearchLessButton = document.getElementById("less"); if (!gSearchLessButton) dump("I couldn't find less button!");
function initializeSearchWidgets() { gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup"); gSearchTermList = document.getElementById("searchTermList"); gSearchLessButton = document.getElementById("less"); if (!gSearchLessButton) dump("I couldn't find less button!"); // initial...
gBooleanOrText = bundle.getString('orSearchText'); gBooleanAndText = bundle.getString('andSearchText'); gBooleanInitialText = bundle.getString('initialSearchText');
gMoreButtonTooltipText = bundle.getString('moreButtonTooltipText'); gLessButtonTooltipText = bundle.getString('lessButtonTooltipText');
function initializeSearchWidgets() { gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup"); gSearchTermList = document.getElementById("searchTermList"); gSearchLessButton = document.getElementById("less"); if (!gSearchLessButton) dump("I couldn't find less button!"); // initial...
hideMatchAllItem();
function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gSearchStopButton = document.getElementById("search-button"); gStatusBar = document.getElementById('statusbar-icon'); msgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow); m...
todoList.showCompleted = document.getElementById("completed-tasks-checkbox").checked; return;
function initializeTodoList(){ var todoList = document.getElementById("calendar-todo-list"); todoList.calendar = getCompositeCalendar(); todoList.addEventListener("todo-item-open", editTodoItem, false); todoList.addEventListener("todo-item-delete", deleteTodoItem, false); todoList.addEventListener("todo-...
if ( this.mForced && desc ) { modified = this.replaceInsert( this.getString( "intro.attachment.label" ), 1, desc ); } else if ( this.mForced && !desc ) { modified = this.getString( "intro.attachment.noDesc.label" ); } else if ( desc ) { modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, desc ); }
if (desc) modified = this.replaceInsert( this.getString( text + "label" ), 1, desc );
initIntro: function(url, filename) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.description; var modified; if ( this.mForced && desc ) { modified = this.replaceInsert( this.getString( "intro.attachment.label" ), 1, desc ); } ...
{ modified = this.getString( "intro.noDesc" ); }
modified = this.getString( text + "noDesc.label" );
initIntro: function(url, filename) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.description; var modified; if ( this.mForced && desc ) { modified = this.replaceInsert( this.getString( "intro.attachment.label" ), 1, desc ); } ...