rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var resultsTree = document.getElementById('resultsTree');
function DirPaneSelectionChange(){ var dirTree = document.getElementById('dirTree'); if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) { ChangeDirectoryByDOMNode(dirTree.selectedItems[0]); } else { var resultsTree = document.getElementById('resultsTree'); if ( resultsTree ) { ClearRe...
ChangeDirectoryByDOMNode(abList.selectedItem);
ChangeDirectoryByURI(abList.selectedItem.id);
function DirPaneSelectionChangeMenulist(){ if (abList && abList.selectedItem) { if (gSearchInput.value && (gSearchInput.value != "")) onEnterInSearchBar(); else ChangeDirectoryByDOMNode(abList.selectedItem); }}
var tb = document.getElementById("cmd_stop"); tb.removeAttribute("disabled");
function disableDebugCommands(){ var cmds = document.getElementById("venkmanDebuggerCommands"); var sib = cmds.firstChild; while (sib) { sib.setAttribute ("disabled", "true"); sib = sib.nextSibling; }}
editorShell.editor.flags |= nsIPlaintextEditor.eEditorReadonlyMask;
editorShell.editor.flags |= nsIPlaintextEditorMail.eEditorReadonlyMask;
function disableEditableFields(){ editorShell.editor.flags |= nsIPlaintextEditor.eEditorReadonlyMask; var disableElements = document.getElementsByAttribute("disableonsend", "true"); for (i=0;i<disableElements.length;i++) { disableElements[i].setAttribute('disabled', 'true'); }}
editorShell.editor.flags |= nsIPlaintextEditorMail.eEditorReadonlyMask;
gMsgCompose.editor.flags |= nsIPlaintextEditorMail.eEditorReadonlyMask;
function disableEditableFields(){ editorShell.editor.flags |= nsIPlaintextEditorMail.eEditorReadonlyMask; var disableElements = document.getElementsByAttribute("disableonsend", "true"); for (i=0;i<disableElements.length;i++) { disableElements[i].setAttribute('disabled', 'true'); }}
for (i=0; i<prefstrArray.length; i++) {
for (var i=0; i<prefstrArray.length; i++) {
function disableIfLocked( prefstrArray ){ if (!gLockedPref) gLockedPref = new Array; for (i=0; i<prefstrArray.length; i++) { var id = prefstrArray[i].id; var element = document.getElementById(id); if (gPref.prefIsLocked(prefstrArray[i].prefstring)) { element.disabled = true; ...
{ if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); }
e = new Object();
function dispatch (text, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } if (!("inputData" in e)) e.inputData = ""; /* split command from arguments */ var ary = text.match (/(\S+) ?(.*)/); ...
display (getMsg(MSN_ERR_NO_COMMAND, e.commandText), MT_ERROR);
display (getMsg(MSN_NO_CMDMATCH, e.commandText), MT_ERROR);
function dispatch (text, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } if (!("inputData" in e)) e.inputData = ""; /* split command from arguments */ var ary = text.match (/(\S+) ?(.*)/); ...
var rv;
function dispatch (text, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } if (!("inputData" in e)) e.inputData = ""; /* split command from arguments */ var ary = text.match (/(\S+) ?(.*)/); ...
return null;
return rv;
function dispatch (text, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } if (!("inputData" in e)) e.inputData = ""; /* split command from arguments */ var ary = text.match (/(\S+) ?(.*)/); ...
dd ("dispatching command ``" + dumpObjectTree(e.command.name) + "''\n");
dd ("dispatching command ``" + e.command.name+ "''\n" + dumpObjectTree(e));
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
if (!e)
function callHooks (command, isBefore)
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
if (typeof CommandManager.cx == "object") e = CommandManager.cx;
var names, hooks; if (isBefore) { names = command.beforeHookNames; hooks = command.beforeHooks; }
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
e = new Object(); }
{ names = command.afterHookNames; hooks = command.afterHooks; }
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
display (getMsg(MSG_ERR_DISABLED, e.command.name),
display (getMsg(MSN_ERR_DISABLED, e.command.name),
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
}
} var h, i; if ("beforeHooks" in e.command) callHooks (e.command, true);
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
dd ("dispatching command ``" + e.command.name+ "''\n" + dumpObjectTree(e));
var str = ""; for (i = 0; i < e.command.argNames.length; ++i) { var name = e.command.argNames[i]; if (name in e) str += " " + name + ": " + e[name]; else if (name != ":") str += " ?" + name; } dd (">>> " + e.command.name + str + " <<<");
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
return e;
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
if (typeof e.command.func == "string")
else if (typeof e.command.func == "string")
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
for (var i = 0; i < commandList.length; ++i)
for (i = 0; i < commandList.length; ++i)
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
if (i == 1) dispatch (commandList[i] + " " + e.inputData, e, flags); else dispatch (commandList[i], null, flags);
dispatch (commandList[i], newEvent, flags);
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
return e;
} else { display (getMsg(MSN_ERR_NOTIMPLEMENTED, e.command.name), MT_ERROR); return null;
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
display (getMsg(MSN_ERR_NOTIMPLEMENTED, e.command.name), MT_ERROR);
if ("afterHooks" in e.command) callHooks (e.command, false);
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
return null;
return ("returnValue" in e) ? e.returnValue : null;
function dispatchCommand (command, e, flags){ if (!e) { if (typeof CommandManager.cx == "object") e = CommandManager.cx; else e = new Object(); } e.command = command; if ((e.command.flags & CMD_NEED_STACK) && (!("frames" in console))) { /* doc, it hurt...
throw new BadMojo(ERR_REQUIRED_PARAM, "message");
throw new RequiredParam ("message");
function display(message, msgtype){ if (typeof message == "undefined") throw new BadMojo(ERR_REQUIRED_PARAM, "message"); if (typeof message != "string" && !(message instanceof Components.interfaces.nsIDOMHTMLElement)) throw new BadMojo(ERR_INVALID_PARAM, ["message", String(message)]); if (...
throw new BadMojo(ERR_INVALID_PARAM, ["message", String(message)]);
throw new InvalidParam ("message", message);
function display(message, msgtype){ if (typeof message == "undefined") throw new BadMojo(ERR_REQUIRED_PARAM, "message"); if (typeof message != "string" && !(message instanceof Components.interfaces.nsIDOMHTMLElement)) throw new BadMojo(ERR_INVALID_PARAM, ["message", String(message)]); if (...
if (typeof msgtype == "undefined") msgtype = MT_INFO; function setAttribs (obj, c, attrs) { if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); } obj.setAttribute("class", c); obj.setAttribute("msg-type", msgtype); } var msgRow = htmlTR("msg"); setAttribs(msgRow, "msg"); var msgData = htmlTD(); setAttr...
if ("capturedMsgs" in console) console.capturedMsgs.push ([message, msgtype]); dispatchCommand(console.coDisplayHook, { message: message, msgtype: msgtype });
function display(message, msgtype){ if (typeof message == "undefined") throw new BadMojo(ERR_REQUIRED_PARAM, "message"); if (typeof message != "string" && !(message instanceof Components.interfaces.nsIDOMHTMLElement)) throw new BadMojo(ERR_INVALID_PARAM, ["message", String(message)]); if (...
if (numAttachments > 0) { attachmentNode.removeAttribute('hide'); } else { attachmentNode.setAttribute('hide', true); }
attachmentNode.collapsed = numAttachments <= 0;
function displayAttachmentsForCollapsedView(){ var numAttachments = currentAttachments.length; var attachmentNode = document.getElementById('collapsedAttachmentBox'); if (numAttachments > 0) // make sure the attachment button is visible { attachmentNode.removeAttribute('hide'); } else { attachmentNode.set...
item.setAttribute("attachmentUrl", attachment.url); item.setAttribute("attachmentContentType", attachment.contentType); item.setAttribute("attachmentUri", attachment.uri);
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentList'); for (index in currentAttachments) { var attachment = currentAttachments[index]; ...
var attachmentList = document.getElementById('attachmentsBody'); var row, cell, item;
var attachmentList = document.getElementById('attachmentList');
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentsBody'); var row, cell, item; for (index in currentAttachments) { var attachment = curren...
item = document.createElement("treeitem"); row = document.createElement("treerow"); cell = document.createElement("treecell");
var item = document.createElement("listitem");
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentsBody'); var row, cell, item; for (index in currentAttachments) { var attachment = curren...
cell.setAttribute('class', "treecell-iconic"); cell.setAttribute("label", attachment.displayName); cell.setAttribute("tooltip", "attachmentTreeTooltip"); item.setAttribute("commandSuffix", generateCommandSuffixForAttachment(attachment)); setApplicationIconForAttachment(attachment, cell); row.appendChild(cell); item.app...
item.setAttribute("class", "listitem-iconic"); item.setAttribute("label", attachment.displayName); item.setAttribute("tooltip", "attachmentListTooltip"); item.setAttribute("commandSuffix", generateCommandSuffixForAttachment(attachment)); setApplicationIconForAttachment(attachment, item); attachmentList.appendChild(item...
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentsBody'); var row, cell, item; for (index in currentAttachments) { var attachment = curren...
var attachmentNode = document.getElementById('attachmentTree'); var attachmentText = document.getElementById('attachmentText');
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentsBody'); var row, cell, item; for (index in currentAttachments) { var attachment = curren...
if (numAttachments > 0) { attachmentNode.removeAttribute('collapsed'); attachmentText.removeAttribute('collapsed'); expandedAttachmentBox.removeAttribute('collapsed'); } else { attachmentNode.setAttribute('collapsed', true); attachmentText.setAttribute('collapsed', true); }
expandedAttachmentBox.collapsed = numAttachments <= 0;
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentsBody'); var row, cell, item; for (index in currentAttachments) { var attachment = curren...
item.setAttribute("commandSuffix", generateCommandSuffixForAttachment(attachment));
item.attachment = cloneAttachment(attachment);
function displayAttachmentsForExpandedView(){ var numAttachments = currentAttachments.length; if (numAttachments > 0 && !gBuildAttachmentsForCurrentMsg) { var attachmentList = document.getElementById('attachmentList'); for (index in currentAttachments) { var attachment = currentAttachments[index]; ...
doc.load(aURL, "text/xml");
doc.load(aURL, "application/xml");
displayBinding: function(aURL) { if (aURL) { var doc = document.implementation.createDocument(null, "", null); doc.addEventListener("load", gDocLoadListener, true); doc.load(aURL, "text/xml"); this.mBindingDoc = doc; this.mBindingURL = aURL; } else { this.mBindingDoc = null; ...
window.openDialog('chrome:
window.openDialog("chrome:
function displayCalendarVersion(){ window.openDialog('chrome://calendar/content/about.xul', 'About','modal,centerscreen,chrome,width=500,resizable=yes');}
var addresses = GetAddressesFromURI(card.mailListURI); visible = cvSetNode(data.cvAddresses, addresses)
visible = cvAddAddressNodes(data.cvAddresses, card.mailListURI);
function DisplayCardViewPane(card){ var generatedName = gAddrbookSession.generateNameFromCard(card, gPrefs.getIntPref("mail.addr_book.lastnamefirst")); var data = top.cvData; var visible; var titleString; if (generatedName == "") titleString = card.primaryEmail; // if no generatedName, use email else tit...
cvSetVisible(data.cvbWork, visible);
function DisplayCardViewPane(abNode){ var uri = abNode.getAttribute('id'); var cardResource = top.rdf.GetResource(uri); var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard); // FIX ME - this should use a i18n name routine in JS var name = card.displayName; if ( card.firstName.length + card.lastName....
visible = cvSetNode(data.cvHomeWebPage, card.webPage2) || visible;
var homeWebPageVisible = cvSetNode(data.cvHomeWebPage, card.webPage2); visible = homeWebPageVisible || visible;
function DisplayCardViewPane(abNode){ var uri = abNode.getAttribute('id'); var cardResource = top.rdf.GetResource(uri); var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard); // name var name; var separator = ""; if ( card.lastName && card.firstName ) { if ( cvPrefs.displayLastNameFirst ) separat...
visible = cvSetNode(data.cvWorkWebPage, card.webPage1) || visible;
var workWebPageVisible = cvSetNode(data.cvWorkWebPage, card.webPage1); visible = workWebPageVisible || visible;
function DisplayCardViewPane(abNode){ var uri = abNode.getAttribute('id'); var cardResource = top.rdf.GetResource(uri); var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard); // name var name; var separator = ""; if ( card.lastName && card.firstName ) { if ( cvPrefs.displayLastNameFirst ) separat...
cvSetVisible(data.cvWorkWebPageBox, workWebPageVisible);
function DisplayCardViewPane(abNode){ var uri = abNode.getAttribute('id'); var cardResource = top.rdf.GetResource(uri); var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard); // name var name; var separator = ""; if ( card.lastName && card.firstName ) { if ( cvPrefs.displayLastNameFirst ) separat...
function displayFrame (f, idx, showSource)
function displayFrame (jsdFrame, idx, showHeader, sourceContext)
function displayFrame (f, idx, showSource){ if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f"); if (typeof idx == "undefined") { for (idx = 0; idx < console.frames.length; ++idx) if (f == console.frames[idx]) break; if (idx >= console.frames.length) ...
if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f");
function displayFrame (f, idx, showSource){ if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f"); if (typeof idx == "undefined") { for (idx = 0; idx < console.frames.length; ++idx) if (f == console.frames[idx]) break; if (idx >= console.frames.length) ...
if (f == console.frames[idx])
if (jsdFrame == console.frames[idx])
function displayFrame (f, idx, showSource){ if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f"); if (typeof idx == "undefined") { for (idx = 0; idx < console.frames.length; ++idx) if (f == console.frames[idx]) break; if (idx >= console.frames.length) ...
if (typeof idx == "number") idx = "#" + idx; display(idx + ": " + formatFrame (f)); if (!f.isNative && f.script.fileName && showSource) displaySource (f.script.fileName, f.line, 2);
if (typeof showHeader == "undefined") showHeader = true; if (typeof sourceContext == "undefined") sourceContext = null; display(getMsg(MSN_FMT_FRAME_LINE, [idx, formatFrame(jsdFrame)])); if (!jsdFrame.isNative && sourceContext != null) { var jsdScript = jsdFrame.script; var scriptWrapper = getScriptWrapper(jsdScript...
function displayFrame (f, idx, showSource){ if (!f) throw new BadMojo (ERR_REQUIRED_PARAM, "f"); if (typeof idx == "undefined") { for (idx = 0; idx < console.frames.length; ++idx) if (f == console.frames[idx]) break; if (idx >= console.frames.length) ...
for (var i=0; i<count; i++) { AddUsage(usageList[i]);
if (count > 0) { var verifyInfoBox = document.getElementById('verify_info_box'); for (var i=0; i<count; i++) { AddUsage(usageList[i],verifyInfoBox); }
function DisplayGeneralDataFromCert(cert){ // Verification and usage var verifystr = ""; var o1 = {}; var o2 = {}; var o3 = {}; cert.getUsages(o1, o2, o3); var verifystate = o1.value; var count = o2.value; var usageList = o3.value; if (verifystate == cert.VERIFIED_OK) { verifystr = bundle.GetStringFromNam...
addAttributeFromCert('subjectname',cert.subjectName); addAttributeFromCert('issuername',cert.issuerName);
function DisplayGeneralDataFromCert(cert){ // Verification and usage var verifystr = ""; var o1 = {}; var o2 = {}; var o3 = {}; cert.getUsages(o1, o2, o3); var verifystate = o1.value; var count = o2.value; var usageList = o3.value; if (verifystate == cert.VERIFIED_OK) { verifystr = bundle.GetStringFromNam...
addAttributeFromCert('rsapubmodulus',cert.rsaPubModulus);
function DisplayGeneralDataFromCert(cert){ // Verification and usage var verifystr = ""; var o1 = {}; var o2 = {}; var o3 = {}; cert.getUsages(o1, o2, o3); var verifystate = o1.value; var count = o2.value; var usageList = o3.value; if (verifystate == cert.VERIFIED_OK) { verifystr = bundle.GetStringFromNam...
addAttributeFromCert('validitystart', cert.issuedDate); addAttributeFromCert('validityend', cert.expiresDate); var issuer = cert.issuer; var issuerCommonname, issuerOrg, issuerOrgUnit; if (issuer) { issuerCommonname = issuer.commonName; issuerOrg = issuer.organization; issuerOrgUnit = issuer.organizational...
function DisplayGeneralDataFromCert(cert){ // Verification and usage var verifystr = ""; var o1 = {}; var o2 = {}; var o3 = {}; cert.getUsages(o1, o2, o3); var verifystate = o1.value; var count = o2.value; var usageList = o3.value; if (verifystate == cert.VERIFIED_OK) { verifystr = bundle.GetStringFromNam...
var bx = this.getBoxObject(this.mHandlerOutliner); bx.view = this.mBinding ? new HandlerOutlinerView(this.mBinding) : null;
var bx = this.getBoxObject(this.mHandlerTree); bx.view = this.mBinding ? new HandlerTreeView(this.mBinding) : null;
displayHandlers: function() { var bx = this.getBoxObject(this.mHandlerOutliner); bx.view = this.mBinding ? new HandlerOutlinerView(this.mBinding) : null; var active = this.mBinding && this.mBinding.getElementsByTagName("handler").length > 0; document.getElementById("bxHandlers").setAttribute("disabled", ...
showMiscellaneousSeparator();
document.getElementById("misc-separator").removeAttribute("collapsed");
this.displayLink = function(linkElement) { if(!this.__proto__.displayLink.apply(this, [linkElement])) return false; this.getXULElement().removeAttribute("collapsed"); showMiscellaneousSeparator(); return true; }
ClearPendingReadTimer();
displayMessageChanged : function(aFolder, aSubject, aKeywords) { setTitleFromFolder(aFolder, aSubject); gHaveLoadedMessage = true; SetKeywords(aKeywords); goUpdateCommand("button_junk"); },
goUpdateCommand("button_junk");
displayMessageChanged : function(aFolder, aSubject, aKeywords) { setTitleFromFolder(aFolder, aSubject); gHaveLoadedMessage = true; SetKeywords(aKeywords); },
goUpdateCommand("button_junk");
displayMessageChanged : function(aFolder, aSubject, aKeywords) { setTitleFromFolder(aFolder, aSubject); gCurrentMessageUri = gDBView.URIForFirstSelectedMessage; UpdateStandAloneMessageCounts(); SetKeywords(aKeywords); },
var bx = this.getBoxObject(this.mMethodOutliner); bx.view = this.mBinding ? new MethodOutlinerView(this.mBinding) : null;
var bx = this.getBoxObject(this.mMethodTree); bx.view = this.mBinding ? new MethodTreeView(this.mBinding) : null;
displayMethods: function() { var bx = this.getBoxObject(this.mMethodOutliner); bx.view = this.mBinding ? new MethodOutlinerView(this.mBinding) : null; var active = this.mBinding && this.mBinding.getElementsByTagName("method").length > 0; document.getElementById("bxMethods").setAttribute("disabled", !acti...
var tmpUrl = content.split(pagePostfix); var tag = tmpUrl[0]; wizardPageLoaded(tag);
function displayPage(content){ //dump(content + "\n"); //dump("********INSIDE DISPLAYPAGE\n\n"); if (content != "") { var contentFrame = document.getElementById("content"); if (contentFrame) { contentFrame.setAttribute("src", content); } //hack for onLoadHandler problem bug #15458 va...
if (securityUI) securityUI.displayPageInfoUI();
window.openDialog("chrome: "dialog=no", null, "securityTab");
function displayPageInfo(){ if (securityUI) securityUI.displayPageInfoUI();}
var bx = this.getBoxObject(this.mPropOutliner); bx.view = this.mBinding ? new PropOutlinerView(this.mBinding) : null;
var bx = this.getBoxObject(this.mPropTree); bx.view = this.mBinding ? new PropTreeView(this.mBinding) : null;
displayProperties: function() { var bx = this.getBoxObject(this.mPropOutliner); bx.view = this.mBinding ? new PropOutlinerView(this.mBinding) : null; var active = this.mBinding && this.mBinding.getElementsByTagName("property").length > 0; document.getElementById("bxProps").setAttribute("disabled", !activ...
if (!(v instanceof jsdIValue)) throw BadMojo (ERR_INVALID_PARAM, "v", String(v));
function displayProperties (v){ if (!v) throw BadMojo (ERR_REQUIRED_PARAM, "v"); var p = new Object(); v.getProperties (p, {}); for (var i in p.value) display(formatProperty (p.value[i]));}
var displayed = new Object; displayed.value = false;
function displayPropertiesDialog(){ var displayed = new Object; displayed.value = false; gPrintSettings.numCopies = dialog.numCopiesInput.value; printService.displayJobProperties(dialog.printerList.value, gPrintSettings, displayed); dialog.numCopiesInput.value = gPrintSettings.numCopies; if (doDebug) { if (...
printService.displayJobProperties(dialog.printerList.value, gPrintSettings, displayed); dialog.numCopiesInput.value = gPrintSettings.numCopies; if (doDebug) { if (displayed.value) dump("\nproperties dlg came up. displayed = "+displayed.value+"\n"); else dump("\nproperties dlg didn't come up. displayed = "+displayed.va...
try { var printingPromptService = Components.classes["@mozilla.org/embedcomp/printingprompt-service;1"] .getService(Components.interfaces.nsIPrintingPromptService); if (printingPromptService) { printingPromptService.showPrinterProperties(null, dialog.printerList.value, gPrintSettings); } } catch(e) { dump("problems get...
function displayPropertiesDialog(){ var displayed = new Object; displayed.value = false; gPrintSettings.numCopies = dialog.numCopiesInput.value; printService.displayJobProperties(dialog.printerList.value, gPrintSettings, displayed); dialog.numCopiesInput.value = gPrintSettings.numCopies; if (doDebug) { if (...
printService.displayJobProperties(dialog.printerList.value, displayed);
gPrintSettings.numCopies = dialog.numCopiesInput.value; printService.displayJobProperties(dialog.printerList.value, gPrintSettings, displayed); dialog.numCopiesInput.value = gPrintSettings.numCopies;
function displayPropertiesDialog( ){ var displayed = new Object; displayed.value = false; printService.displayJobProperties(dialog.printerList.value, displayed); if (doDebug) { if (displayed) dump("\nproperties dlg came up. displayed = "+displayed.value+"\n"); else dump("\nproperties dlg didn't come...
if (displayed)
if (displayed.value)
function displayPropertiesDialog( ){ var displayed = new Object; displayed.value = false; printService.displayJobProperties(dialog.printerList.value, displayed); if (doDebug) { if (displayed) dump("\nproperties dlg came up. displayed = "+displayed.value+"\n"); else dump("\nproperties dlg didn't come...
var bx = this.getBoxObject(this.mResourceOutliner); bx.view = this.mBinding ? new ResourceOutlinerView(this.mBinding) : null;
var bx = this.getBoxObject(this.mResourceTree); bx.view = this.mBinding ? new ResourceTreeView(this.mBinding) : null;
displayResources: function() { var bx = this.getBoxObject(this.mResourceOutliner); bx.view = this.mBinding ? new ResourceOutlinerView(this.mBinding) : null; var active = this.mBinding && this.mBinding.getElementsByTagName("resources").length > 0; document.getElementById("bxResources").setAttribute("disab...
if (iframe.getAttribute("src") != "about:blank") iframe.setAttribute("src", "about:blank");
iframe.setAttribute("src", "chrome:
function displayResult(){ var resultRange = Evaluator.document.createRange(); resultRange.selectNode(Evaluator.document.documentElement); var result = resultRange.toString(); if (result) gConsole.mCService.logStringMessage(result); // or could use appendMessage which doesn't persist var iframe = document.get...
var result = Evaluator.document.documentElement.lastChild.firstChild; if (result && result.data) gConsole.mCService.logStringMessage(result.data);
var resultRange = Evaluator.document.createRange(); resultRange.selectNode(Evaluator.document.documentElement); var result = resultRange.toString(); if (result) gConsole.mCService.logStringMessage(result);
function displayResult(){ var result = Evaluator.document.documentElement.lastChild.firstChild; if (result && result.data) gConsole.mCService.logStringMessage(result.data); // or could use appendMessage which doesn't persist}
var asn1Outliner = document.getElementById('prettyDumpOutliner'). outlinerBoxObject.view.QueryInterface(nsIASN1Outliner); var items = asn1Outliner.selection;
var asn1Tree = document.getElementById('prettyDumpTree'). treeBoxObject.view.QueryInterface(nsIASN1Tree); var items = asn1Tree.selection;
function displaySelected() { var asn1Outliner = document.getElementById('prettyDumpOutliner'). outlinerBoxObject.view.QueryInterface(nsIASN1Outliner); var items = asn1Outliner.selection; var certDumpVal = document.getElementById('certDumpVal'); if (items.currentIndex != -1) { var value = asn1...
var value = asn1Outliner.getDisplayData(items.currentIndex);
var value = asn1Tree.getDisplayData(items.currentIndex);
function displaySelected() { var asn1Outliner = document.getElementById('prettyDumpOutliner'). outlinerBoxObject.view.QueryInterface(nsIASN1Outliner); var items = asn1Outliner.selection; var certDumpVal = document.getElementById('certDumpVal'); if (items.currentIndex != -1) { var value = asn1...
DumpDOM(item.mSourceDoc); DumpDOM(item.mStyleDoc);
displayTest : function() { var current = this.boxObject.selection.currentIndex; var rowResource = this.builder.getResourceAtIndex(current); var item = itemCache.getItem(rowResource); DumpDOM(item.mSourceDoc); DumpDOM(item.mStyleDoc); },
display (details, MT_ERROR);
if (!("isInteractive" in e) || !e.isInteractive) { var caller = Components.stack.caller.caller; if (caller.name == "dispatch") caller = caller.caller; var error = new Error (details); error.fileName = caller.filename; error.lineNumber = caller.lineNumber; error.name = caller.name; display (formatException(error), MT_ER...
function displayUsageError (e, details){ display (details, MT_ERROR); display (getMsg(MSN_FMT_USAGE, [e.command.name, e.command.usage]), MT_USAGE);}
var server = getIncomingServer(); var feedProperties = { feedName: "", feedLocation: "", serverURI: server.serverURI, folderURI: "", result: userAddedFeed};
var feedProperties = { feedName: "", feedLocation: "", serverURI: gRSSServer.serverURI, folderURI: "", result: userAddedFeed};
function doAdd() { var userAddedFeed = false; var server = getIncomingServer(); var feedProperties = { feedName: "", feedLocation: "", serverURI: server.serverURI, folderURI: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anythi...
feed.server = gRSSServer;
function doAdd() { var userAddedFeed = false; var server = getIncomingServer(); var feedProperties = { feedName: "", feedLocation: "", serverURI: server.serverURI, folderURI: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anythi...
}
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) return; if (!feedProperties.feedLocatio...
feed = new Feed(feedProperties.feedLocation || DEFAULT_FEED_URL); feed.download(false, false);
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) return; if (!feedProperties.feedLocatio...
folder = server.rootMsgFolder.getChildNamed(feedProperties.feedName);
var folder = server.rootMsgFolder.getChildNamed(feed.name);
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) return; if (!feedProperties.feedLocatio...
debug("folder for new feed " + feedProperties.feedName + " doesn't exist; creating"); debug("creating " + feedProperties.feedName + "as child of " + server.rootMsgFolder + "\n"); server.rootMsgFolder.createSubfolder(feedProperties.feedName, getMessageWindow()); folder = server.rootMsgFolder.FindSubFolder(feedProperties...
debug("folder for new feed " + feed.name + " doesn't exist; creating"); debug("creating " + feed.name + "as child of " + server.rootMsgFolder + "\n"); server.rootMsgFolder.createSubfolder(feed.name, getMessageWindow()); folder = server.rootMsgFolder.FindSubFolder(feed.name);
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) return; if (!feedProperties.feedLocatio...
dump ("feed name = " + feedProperties.feedName + "\n"); addFeed(feedProperties.feedLocation, feedProperties.feedName, null, folder);
dump ("feed name = " + feed.name + "\n"); addFeed(feedProperties.feedLocation, feed.name, null, folder);
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) return; if (!feedProperties.feedLocatio...
var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed};
var server = getIncomingServer(); var feedProperties = { feedName: "", feedLocation: "", serverURI: server.serverURI, folderURI: "", result: userAddedFeed};
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) { debug("feedProperties.result empty\n"...
{ debug("feedProperties.result empty\n");
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) { debug("feedProperties.result empty\n"...
}
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) { debug("feedProperties.result empty\n"...
{ debug("feedProperties.feedLocation empty\n");
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) { debug("feedProperties.result empty\n"...
if (feedProperties.folderURI) { var folderResource = rdf.GetResource(feedProperties.folderURI); if (folderResource) feed.folder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder); }
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) { debug("feedProperties.result empty\n"...
if (aSourceURI) { sourcesArray.AppendElement (aSource);
if (aSource) { sourcesArray.AppendElement(aSource);
doBookmarksCommand: function (aSource, aCommand, aArgumentsArray) { var rCommand = RDF.GetResource(aCommand); var kSuppArrayContractID = "@mozilla.org/supports-array;1"; var kSuppArrayIID = Components.interfaces.nsISupportsArray; var sourcesArray = Components.classes[kSuppArrayContractID].createInstanc...
window.close();
return true;
function doCancel(){ // the user pressed cancel dialogParams.SetInt(1,0); window.close();}
var treeNode = document.getElementById("NC:SearchEngineRoot");
var treeNode = document.getElementById("searchengines");
function doCheckAll(activeFlag){ // get selected search engines var treeNode = document.getElementById("NC:SearchEngineRoot"); if (!treeNode) return(false); var treeChildrenNode = null; var numChildren = treeNode.childNodes.length; for (var x = 0; x<numChildren; x++) { if (treeNode.childNodes[x].tagName == "treechildr...
break; case "cmd_bm_newbookmark": var folder = aTarget.parent.Value; var rv = { newBookmark: null }; openDialog("chrome: "centerscreen,chrome,modal=yes,dialog=yes,resizable=no", null, null, folder, null, "newBookmark", rv);
doCommand: function (aCommand, aSelection, aTarget) { switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_bm_open": Book...
case "cmd_bm_refreshmicrosummary": BookmarksCommand.refreshMicrosummary(aSelection); break;
doCommand: function (aCommand, aSelection, aTarget, aDS) { var resource0, type0, realTarget; if (aSelection && aSelection.length == 1) { resource0 = aSelection.item[0]; type0 = aSelection.type[0]; } if (type0 == "PersonalToolbarFolder" && aTarget == null) realTarget = { parent: resource0, ...
gHistoryOutliner.builder.rebuild();
gHistoryTree.builder.rebuild();
doCommand: function(command) { switch(command) { case "cmd_deleteByHostname": if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); gGlobalHistory.removePagesFromHos...
case "cmd_recalculateJunkScore": analyzeMessagesForJunk(); return;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
case "cmd_bm_cut":
case "cmd_cut":
doCommand: function (aCommand, aSelection, aTarget) { switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_bm_open": Book...
case "cmd_bm_copy":
case "cmd_copy":
doCommand: function (aCommand, aSelection, aTarget) { switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_bm_open": Book...
case "cmd_bm_paste":
case "cmd_paste":
doCommand: function (aCommand, aSelection, aTarget) { switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_bm_open": Book...
case "cmd_bm_delete":
case "cmd_delete":
doCommand: function (aCommand, aSelection, aTarget) { switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_bm_open": Book...
BookmarksMenuDNDObserver.mCurrentDragOverTarget = null; BookmarksMenuDNDObserver.onDragCloseTarget();
doCommand: function (aCommand) { BookmarksMenuDNDObserver.onDragRemoveFeedBack(document.popupNode); var selection = BookmarksMenu._selection; var target = BookmarksMenu._target; switch (aCommand) { case "cmd_bm_expandfolder": BookmarksMenu.expandBTFolder(); break; default: Bookmar...
case "cmd_searchMsgs": MsgSearchMessages(); return;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
case "cmd_shiftdelete":
case "cmd_shiftDelete":
doCommand: function(command) { switch(command) { case "cmd_open": MsgOpenSelectedMessages(); return true; case "cmd_delete": case "button_delete": MsgDeleteSelectedMessages(nsMsgViewCommandType.deleteMsg); return true; case "cmd_shift...
BookmarksCommand.showProperties(aSelection);
BookmarksCommand.openBookmark(aSelection, "properties");
doCommand: function (aCommand, aSelection, aTarget) { dump(aCommand); switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_...
window.editorShell.SetBackgroundColor(); window._content.focus();
EditorSelectColor("TableOrCell");
doCommand: function(aCommand) { window.editorShell.SetBackgroundColor(); window._content.focus(); }
if(messageView.showThreads) ExpandOrCollapseThreads(true);
doCommand: function(command) { switch ( command ) { case "cmd_selectAll": var threadTree = GetThreadTree(); if ( threadTree ) { threadTree.selectAll(); if ( threadTree.selectedItems && threadTree.selectedItems.length != 1 ) ClearMessagePane(); } break; } },