rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
e.sourceObject.say(msg, e.sourceObject);
e.sourceObject.say(msg);
function cmdSay(e){ if (!("say" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "say"), MT_ERROR); return; } var msg = filterOutput(e.message, "PRIVMSG", "ME!"); e.sourceObject.display(msg, "PRIVMSG", "ME!", e.sourceObject); e.sourceObject.say(msg, e.sourceObject);}
display (getMsg (MSN_NO_PROPERTIES, MSG_WORD_SCOPE));
display (getMsg (MSN_NO_PROPERTIES, MSG_VAL_SCOPE));
function cmdScope (){ if (getCurrentFrame().scope.propertyCount == 0) display (getMsg (MSN_NO_PROPERTIES, MSG_WORD_SCOPE)); else displayProperties (getCurrentFrame().scope); return true;}
if ("lockView" in e.view) delete e.view.lockView;
function cmdSetCurrentView(e){ setCurrentObject(e.view);}
var idx = this.mDOMOutliner.currentIndex;
var idx = this.mDOMTree.currentIndex;
cmdShowPseudoClasses: function() { var idx = this.mDOMOutliner.currentIndex; var node = this.getNodeFromRowIndex(idx); if (node) openDialog("chrome://inspector/content/viewers/dom/pseudoClassDialog.xul", "_blank", "chrome", node); },
list.push(e.text); list.update();
var notStalkingWord = true; var loweredText = e.text.toLowerCase();
function cmdStalk(e){ var list = client.prefs["stalkWords"]; if (!e.text) { if (list.length == 0) display(MSG_NO_STALK_LIST); else display(getMsg(MSG_STALK_LIST, list.join(MSG_COMMASP))); return; } list.push(e.text); list.update(); display(getMsg(MSG_STALK...
display(getMsg(MSG_STALK_ADD, e.text));
for (var i = 0; i < list.length; ++i) if (list[i].toLowerCase() == loweredText) notStalkingWord = false; if (notStalkingWord) { list.push(e.text); list.update(); display(getMsg(MSG_STALK_ADD, e.text)); } else { display(getMsg(MSG_STALKING_ALREADY, e.text)); }
function cmdStalk(e){ var list = client.prefs["stalkWords"]; if (!e.text) { if (list.length == 0) display(MSG_NO_STALK_LIST); else display(getMsg(MSG_STALK_LIST, list.join(MSG_COMMASP))); return; } list.push(e.text); list.update(); display(getMsg(MSG_STALK...
if (e.toggle == "toggle") console.jsds.initAtStartup = !console.jsds.initAtStartup; else console.jsds.initAtStartup = e.toggle;
e.toggle = getToggle (e.toggle, console.jsds.initAtStartup); console.jsds.initAtStartup = e.toggle;
function cmdStartupInit (e){ if (e.toggle != null) { if (e.toggle == "toggle") console.jsds.initAtStartup = !console.jsds.initAtStartup; else console.jsds.initAtStartup = e.toggle; } display (getMsg(MSN_IASMODE, console.jsds.initAtStartup ? MSG_VAL_ON :...
if (console.sourceView.prettyPrint)
if (console.prefs["prettyprint"])
function cmdStep(){ setStopState(true); var topFrame = console.frames[0]; console._stepPast = topFrame.script.fileName; if (console.sourceView.prettyPrint) { console._stepPast += topFrame.script.pcToLine(topFrame.pc, PCMAP_PRETTYPRINT); } else { console._stepPast += topF...
console.stackView.saveState();
function cmdStep(){ setStopState(true); var topFrame = console.frames[0]; console._stepPast = topFrame.script.fileName; if (console.sourceView.prettyPrint) { console._stepPast += topFrame.script.pcToLine(topFrame.pc, PCMAP_PRETTYPRINT); } else { console._stepPast += topF...
case "sync-fonts": fun = function () { if (view.prefs["displayHeader"]) view.setHeaderState(false); view.changeCSS(view.getFontCSS("data"), "cz-fonts"); if (view.prefs["displayHeader"]) view.setHeaderState(true); }; break;
function cmdSync(e){ var fun; switch (e.command.name) { case "sync-headers": fun = function () { view.setHeaderState(view.prefs["displayHeader"]); }; break; case "sync-motifs": fun = function () ...
console.jsds.throwHook = console._executionHook;
console.jsds.throwHook = console.executionHook;
function cmdTMode (e){ if (e.mode != null) { e.mode = e.mode.toLowerCase(); if (e.mode == "cycle") { switch (console.throwMode) { case TMODE_IGNORE: e.mode = "trace"; break; case TMODE_TRACE: ...
var testsFilter = { globalObject: w, flags: jsdIFilter.FLAG_ENABLED | jsdIFilter.FLAG_PASS, urlPattern: null, startLine: 0, endLine: 0 }; console.jsds.insertFilter (testsFilter, null);
function cmdTreeTest(){ var w = openDialog("chrome://venkman/content/tests/tree.xul", "", ""); var testsFilter = { globalObject: w, flags: jsdIFilter.FLAG_ENABLED | jsdIFilter.FLAG_PASS, urlPattern: null, startLine: 0, endLine: 0 }; /* make sure this filter goes at the top...
display(getMsg(MSN_VERSION, console.version), MT_HELLO);
display(getMsg(MSN_VERSION, __vnk_version + __vnk_versionSuffix), MT_HELLO);
function cmdVersion (){ display(MSG_HELLO, MT_HELLO); display(getMsg(MSN_VERSION, console.version), MT_HELLO);}
var watches = console.views.watches.childData; var len = watches.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i)
if (e.isInteractive)
function cmdWatchExpr (e){ if (!e.expression) { var watches = console.views.watches.childData; var len = watches.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i) { display (getMsg(MSN_FMT_WATCH_ITEM, [i, watches[i].displayName, ...
display (getMsg(MSN_FMT_WATCH_ITEM, [i, watches[i].displayName, watches[i].displayValue]));
var watchData = console.views.watches.childData; var len = watchData.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i) { display (getMsg(MSN_FMT_WATCH_ITEM, [i, watchData[i].displayName, watchData[i].displayValue])); } return null;
function cmdWatchExpr (e){ if (!e.expression) { var watches = console.views.watches.childData; var len = watches.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i) { display (getMsg(MSN_FMT_WATCH_ITEM, [i, watches[i].displayName, ...
return null;
var parent; if (watches.currentContent) parent = watches.currentContent.ownerWindow; else parent = window; e.expression = prompt(MSG_ENTER_WATCH, "", parent); if (!e.expression) return null;
function cmdWatchExpr (e){ if (!e.expression) { var watches = console.views.watches.childData; var len = watches.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i) { display (getMsg(MSN_FMT_WATCH_ITEM, [i, watches[i].displayName, ...
console.views.watches.childData.appendChild(rec); console.views.watches.refresh();
watches.childData.appendChild(rec); watches.refresh();
function cmdWatchExpr (e){ if (!e.expression) { var watches = console.views.watches.childData; var len = watches.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len; ++i) { display (getMsg(MSN_FMT_WATCH_ITEM, [i, watches[i].displayName, ...
function cmgr_add (name, func, usage, help)
function cmgr_add (command)
function cmgr_add (name, func, usage, help){ function compare (a, b) { if (a.name == b.name) return 0; else if (a.name > b.name) return 1; else return -1; } this.commands.push ({name: name, func: func, usage: usage, help: help}...
function compare (a, b) { if (a.name == b.name) return 0; else if (a.name > b.name) return 1; else return -1; } this.commands.push ({name: name, func: func, usage: usage, help: help}); this.commands = this.commands.sort(compare);
this.commands[command.name] = command;
function cmgr_add (name, func, usage, help){ function compare (a, b) { if (a.name == b.name) return 0; else if (a.name > b.name) return 1; else return -1; } this.commands.push ({name: name, func: func, usage: usage, help: help}...
function cmgr_add (parent, command, keystr)
function cmgr_add (command)
function cmgr_add (parent, command, keystr){ var parentElem = document.getElementById(parent); if (!ASSERT(parentElem, "setKey: couldn't get parent '" + parent + "' for " + command.name)) return; var ary = keystr.match (/(.*\s)?([\S]+)$/); var key = document.createElement ("key"); k...
var parentElem = document.getElementById(parent); if (!ASSERT(parentElem, "setKey: couldn't get parent '" + parent + "' for " + command.name)) return; var ary = keystr.match (/(.*\s)?([\S]+)$/); var key = document.createElement ("key"); key.setAttribute ("id", "key:" + command.name); key.setAttribute ("oncommand", "di...
this.commands[command.name] = command;
function cmgr_add (parent, command, keystr){ var parentElem = document.getElementById(parent); if (!ASSERT(parentElem, "setKey: couldn't get parent '" + parent + "' for " + command.name)) return; var ary = keystr.match (/(.*\s)?([\S]+)$/); var key = document.createElement ("key"); k...
keystr);
keystr, tip);
function cmgr_defcmds (cmdary){ var len = cmdary.length; var commands = new Object(); var bundle = ("stringBundle" in cmdary ? cmdary.stringBundle : this.defaultBundle); for (var i = 0; i < len; ++i) { var name = cmdary[i][0]; var func = cmdary[i]...
function cmgr_list (partialName)
function cmgr_list (partialName, flags)
function cmgr_list (partialName){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ if ((typeof partialName == "undefined") || (String(partialName) == "")) return this.commands; var ary = new Array(); for (var i in thi...
if ((typeof partialName == "undefined") || (String(partialName) == "")) return this.commands;
if (a == b) return 0; if (a > b) return 1; return -1; }
function cmgr_list (partialName){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ if ((typeof partialName == "undefined") || (String(partialName) == "")) return this.commands; var ary = new Array(); for (var i in thi...
for (var i in this.commands)
if ("eval" in this.commands && typeof this.commands.eval == "object") commandNames.push ("eval"); for (var i in commandNames)
function cmgr_list (partialName){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ if ((typeof partialName == "undefined") || (String(partialName) == "")) return this.commands; var ary = new Array(); for (var i in thi...
if (this.commands[i].name.indexOf(partialName) == 0) ary.push (this.commands[i]);
var name = commandNames[i]; if (!flags || (this.commands[name].flags & flags)) { if (!partialName || this.commands[name].name.indexOf(partialName) == 0) { if (partialName && partialName.length == this.commands[name].name.length) { return [this.commands[name]]; } else { ary.push (this.commands[name]); } } }
function cmgr_list (partialName){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ if ((typeof partialName == "undefined") || (String(partialName) == "")) return this.commands; var ary = new Array(); for (var i in thi...
a = a.label.toLowerCase().replace("&", ""); b = b.label.toLowerCase().replace("&", "");
a = a.labelstr.toLowerCase(); b = b.labelstr.toLowerCase();
function cmgr_list (partialName, flags){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ function compare (a, b) { a = a.label.toLowerCase().replace("&", ""); b = b.label.toLowerCase().replace("&", ""); if (a == ...
function cmgr_listnames (partialName)
function cmgr_listnames (partialName, flags)
function cmgr_listnames (partialName){ var cmds = this.list(partialName); var cmdNames = new Array(); for (var c in cmds) cmdNames.push (cmds[c].name); return (cmdNames.length > 0) ? cmdNames.sort() : [];}
var cmds = this.list(partialName);
var cmds = this.list(partialName, flags);
function cmgr_listnames (partialName){ var cmds = this.list(partialName); var cmdNames = new Array(); for (var c in cmds) cmdNames.push (cmds[c].name); return (cmdNames.length > 0) ? cmdNames.sort() : [];}
return (cmdNames.length > 0) ? cmdNames.sort() : [];
cmdNames.sort(); return cmdNames;
function cmgr_listnames (partialName){ var cmds = this.list(partialName); var cmdNames = new Array(); for (var c in cmds) cmdNames.push (cmds[c].name); return (cmdNames.length > 0) ? cmdNames.sort() : [];}
this.tagName = "html:span"; this.enabled = true;
function CMunger () { this.entries = new Object(); }
this.description = getMsg("rule_" + name);
this.description = getMsg("munger." + name, null, null);
function CMungerEntry (name, regex, className, enable, tagName){ this.name = name; if (name[0] != ".") this.description = getMsg("rule_" + name); this.enabled = (typeof enable == "undefined" ? true : enable); this.enabledDefault = this.enabled; this.tagName = (tagName) ? tagName : "html:span";...
var currentIndex = gHistoryOutliner.currentIndex; gHistoryOutliner.outlinerBoxObject.view.toggleOpenState(currentIndex);
var currentIndex = gHistoryTree.currentIndex; gHistoryTree.treeBoxObject.view.toggleOpenState(currentIndex);
function collapseExpand(){ var currentIndex = gHistoryOutliner.currentIndex; gHistoryOutliner.outlinerBoxObject.view.toggleOpenState(currentIndex);}
return "rgba("
if (col[3] < 1) { return "rgba(" + Math.floor(col[0]*255) + "," + Math.floor(col[1]*255) + "," + Math.floor(col[2]*255) + "," + col[3] + ")"; } return "rgb("
function colorToRgbString(col) { return "rgba(" + Math.floor(col[0]*255) + "," + Math.floor(col[1]*255) + "," + Math.floor(col[2]*255) + "," + col[3] + ")";}
+ Math.floor(col[2]*255) + "," + col[3] + ")";
+ Math.floor(col[2]*255) + ")";
function colorToRgbString(col) { return "rgba(" + Math.floor(col[0]*255) + "," + Math.floor(col[1]*255) + "," + Math.floor(col[2]*255) + "," + col[3] + ")";}
document.getElementById( "alarm-email-checkbox" ).removeAttribute( "checked" );
function commandAlarm(){ document.getElementById( "alarm-email-checkbox" ).removeAttribute( "checked" ); updateAlarmItemEnabled();}
function CommandManager ()
function CommandManager (defaultBundle)
function CommandManager (){ this.commands = new Object();}
this.defaultBundle = defaultBundle;
function CommandManager (){ this.commands = new Object();}
function CommandRecord (name, func, usage, help, label, flags)
function CommandRecord (name, func, usage, help, label, flags, keystr)
function CommandRecord (name, func, usage, help, label, flags){ this.name = name; this.func = func; this._usage = usage; this.scanUsage(); this.help = help; this.label = label ? label : name; this.flags = flags; this._enabled = true; this.key = null; this.keystr = MSG_VAL_NA; this.uiEle...
this.key = null; this.keystr = MSG_VAL_NA; this.uiElements = new Object();
this.keyNodes = new Array(); this.keystr = keystr; this.uiElements = new Array();
function CommandRecord (name, func, usage, help, label, flags){ this.name = name; this.func = func; this._usage = usage; this.scanUsage(); this.help = help; this.label = label ? label : name; this.flags = flags; this._enabled = true; this.key = null; this.keystr = MSG_VAL_NA; this.uiEle...
function CommandRecord (name, func, usage, help, label, flags, keystr)
function CommandRecord (name, func, usage, help, label, flags, keystr, tip)
function CommandRecord (name, func, usage, help, label, flags, keystr){ this.name = name; this.func = func; this._usage = usage; this.scanUsage(); this.help = help; this.label = label ? label : name; this.labelstr = label.replace ("&", ""); this.flags = flags; this._enabled = true; this.ke...
this.tip = tip;
function CommandRecord (name, func, usage, help, label, flags, keystr){ this.name = name; this.func = func; this._usage = usage; this.scanUsage(); this.help = help; this.label = label ? label : name; this.labelstr = label.replace ("&", ""); this.flags = flags; this._enabled = true; this.ke...
updateOKButton();
function commandUntil(){ updateUntilItemEnabled();}
var tree = document.getElementById('dirTree');
function CommandUpdate_AddressBook(){ goUpdateCommand('button_delete'); // get selection info from dir pane var tree = document.getElementById('dirTree'); var oneAddressBookSelected = false; if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) oneAddressBookSelected = true; // get selection info fr...
if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) )
if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) )
function CommandUpdate_AddressBook(){ goUpdateCommand('button_delete'); // get selection info from dir pane var tree = document.getElementById('dirTree'); var oneAddressBookSelected = false; if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) oneAddressBookSelected = true; // get selection info fr...
goSetCommandEnabled('cmd_PrintCard', oneOrMoreCardsSelected);
function CommandUpdate_AddressBook(){ goUpdateCommand('button_delete'); // get selection info from dir pane var tree = document.getElementById('dirTree'); var oneAddressBookSelected = false; if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) oneAddressBookSelected = true; // get selection info fr...
goSetCommandEnabled('cmd_SortByPhone', oneAddressBookSelected);
goSetCommandEnabled('cmd_SortByWorkPhone', oneAddressBookSelected); goSetCommandEnabled('cmd_SortByOrganization', oneAddressBookSelected);
function CommandUpdate_AddressBook(){ goUpdateCommand('button_delete'); // get selection info from dir pane var tree = document.getElementById('dirTree'); var oneAddressBookSelected = false; if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) oneAddressBookSelected = true; // get selection info fr...
goUpdateCommand('button_delete');
function CommandUpdate_Mail(){ //goUpdateCommand('button_delete'); goUpdateCommand('cmd_delete'); goUpdateCommand('cmd_nextMsg'); goUpdateCommand('cmd_nextUnreadMsg'); goUpdateCommand('cmd_nextUnreadThread'); goUpdateCommand('cmd_nextFlaggedMsg'); goUpdateCommand('cmd_previousMsg'); goUpdateCommand('cmd_previousUnreadM...
goUpdateCommand('cmd_sortAscending'); goUpdateCommand('cmd_sortDescending');
function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message...
goUpdateCommand('cmd_expandAllThreads'); goUpdateCommand('cmd_collapseAllThreads');
function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message...
goUpdateCommand("cmd_replace");
function CommandUpdate_MsgCompose(){// dump("\nCommandUpdate_MsgCompose\n"); try { //File Menu// goUpdateCommand("cmd_attachFile");// goUpdateCommand("cmd_attachPage"); goUpdateCommand("cmd_close");// goUpdateCommand("cmd_saveDefault");// goUpdateCommand("cmd_saveAsFile");// goUpdateCommand("cmd_saveAsDraft"...
goUpdateCommand("cmd_print");
function CommandUpdate_MsgCompose(){// dump("\nCommandUpdate_MsgCompose\n"); try { //File Menu goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_attachPage"); goUpdateCommand("cmd_close"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsFile"); goUpdateCommand("cmd_saveAsDraft"); goUpda...
goUpdateCommand("cmd_spelling");
function CommandUpdate_MsgCompose(){// dump("\nCommandUpdate_MsgCompose\n"); //File Menu goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_attachPage"); goUpdateCommand("cmd_close"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsDraft"); goUpdateCommand("cmd_saveAsTemplate"); goUpdateCom...
window.setTimeout("updateComposeItems()", 0);
if (gSuppressCommandUpdating) { return; } var element = top.document.commandDispatcher.focusedElement; if (element == gLastElementToHaveFocus) { return; } gLastElementToHaveFocus = element; updateComposeItems();
function CommandUpdate_MsgCompose(){ window.setTimeout("updateComposeItems()", 0);}
retun true;
return true;
function Commit(){ // flush if (catDS) { var flushableDS = catDS.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); if (flushableDS) { flushableDS.Flush(); } } retun true;}
if (gFields[i] == "microsummaryMenuList") { if (MicrosummaryPicker.enabled) { changed |= MicrosummaryPicker.commit(); MicrosummaryPicker.destroy(); } continue; }
function Commit(){ var changed = false; // Grovel through the fields to see if any of the values have // changed. If so, update the RDF graph and force them to be saved // to disk. for (var i=0; i<gFields.length; ++i) { var field = document.getElementById(gFields[i]); if (! field) continue; // Get th...
param.SetInt(0, 2);
gCommonDialogParam.SetInt(0, 2);
function commonDialogOnButton2(){ param.SetInt(0, 2); return true;}
param.SetInt(0, 3);
gCommonDialogParam.SetInt(0, 3);
function commonDialogOnButton3(){ param.SetInt(0, 3); return true;}
param.SetInt(0, 1);
gCommonDialogParam.SetInt(0, 1);
function commonDialogOnCancel(){ param.SetInt(0, 1); return true;}
field.focus();
field.focusTextField();
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
password2Container.removeAttribute("hidden");
password2Container.removeAttribute("collapsed");
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
break; case 1: hideElementById("cancel"); break;
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
case 1:
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
focus();
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var messageText = param.GetString(0);
var messageText = gCommonDialogParam.GetString(0);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
setElementText("info.header", param.GetString(3), true);
setElementText("info.header", gCommonDialogParam.GetString(3), true);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
window.title = param.GetString(12);
window.title = gCommonDialogParam.GetString(12);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var iconURL = param.GetString(2);
var iconURL = gCommonDialogParam.GetString(2);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var nButtons = param.GetInt(2);
var nButtons = gCommonDialogParam.GetInt(2);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
setElementText("Button3", param.GetString(11));
setElementText("Button3", gCommonDialogParam.GetString(11));
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
setElementText("Button2", param.GetString(10));
setElementText("Button2", gCommonDialogParam.GetString(10));
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var string = param.GetString(8);
var string = gCommonDialogParam.GetString(8);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
string = param.GetString(9);
string = gCommonDialogParam.GetString(9);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
setCheckbox(param.GetString(1), param.GetInt(1));
setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1));
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var nEditFields = param.GetInt(3);
var nEditFields = gCommonDialogParam.GetInt(3);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
password2Field.value = param.GetString(7);
password2Field.value = gCommonDialogParam.GetString(7);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var password2Label = param.GetString(5);
var password2Label = gCommonDialogParam.GetString(5);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
if (param.GetInt(4) == 1)
if (gCommonDialogParam.GetInt(4) == 1)
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
field.value = param.GetString(6);
field.value = gCommonDialogParam.GetString(6);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var label = param.GetString(4);
var label = gCommonDialogParam.GetString(4);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var editFieldIsPassword = param.GetInt(4); var containerID, fieldID;
var editFieldIsPassword = gCommonDialogParam.GetInt(4);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
setElementText("login.text", param.GetString(4));
setElementText("login.text", gCommonDialogParam.GetString(4));
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
var field = document.getElementById(fieldID); field.value = param.GetString(6);
field = document.getElementById(fieldID); field.value = gCommonDialogParam.GetString(6);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
param.SetInt(0, 1);
gCommonDialogParam.SetInt(0, 1);
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = param.GetString(0); var messageParent = document.getE...
nButtons = gCommonDialogParam.GetInt(2);
var firstButton = null; var newButton;
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
document.documentElement.getButton("extra2").label = gCommonDialogParam.GetString(11);
setLabelForNode(firstButton = document.documentElement.getButton("extra2"), gCommonDialogParam.GetString(11));
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
document.documentElement.getButton("extra1").label = gCommonDialogParam.GetString(10);
newButton = document.documentElement.getButton("extra1"); firstButton = firstButton || newButton; setLabelForNode(button, gCommonDialogParam.GetString(10));
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
document.documentElement.getButton("accept").label = string;
setLabelForNode(newButton, string);
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
document.documentElement.getButton("cancel").label = string;
setLabelForNode(newButton, string);
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1));
if (setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1))) firstButton.focus();
function commonDialogOnLoad(){ // set the window title window.title = gCommonDialogParam.GetString(12); // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.documentElement; switch (nButtons) { case 1: dialog.getButton("cancel").hidden = true; break;...
param.SetInt(0, 0 ); var numEditfields = param.GetInt( 3 );
gCommonDialogParam.SetInt(0, 0 ); var numEditfields = gCommonDialogParam.GetInt( 3 );
function commonDialogOnOK(){ param.SetInt(0, 0 ); var numEditfields = param.GetInt( 3 ); if (numEditfields == 2) { var editField2 = document.getElementById("dialog.password2"); param.SetString(7, editField2.value); } var editfield1Password = param.GetInt(4); var editField1 = editfield1Password == 1 ?...
param.SetString(7, editField2.value);
gCommonDialogParam.SetString(7, editField2.value);
function commonDialogOnOK(){ param.SetInt(0, 0 ); var numEditfields = param.GetInt( 3 ); if (numEditfields == 2) { var editField2 = document.getElementById("dialog.password2"); param.SetString(7, editField2.value); } var editfield1Password = param.GetInt(4); var editField1 = editfield1Password == 1 ?...
var editfield1Password = param.GetInt(4);
var editfield1Password = gCommonDialogParam.GetInt(4);
function commonDialogOnOK(){ param.SetInt(0, 0 ); var numEditfields = param.GetInt( 3 ); if (numEditfields == 2) { var editField2 = document.getElementById("dialog.password2"); param.SetString(7, editField2.value); } var editfield1Password = param.GetInt(4); var editField1 = editfield1Password == 1 ?...
param.SetString(6, editField1.value);
gCommonDialogParam.SetString(6, editField1.value);
function commonDialogOnOK(){ param.SetInt(0, 0 ); var numEditfields = param.GetInt( 3 ); if (numEditfields == 2) { var editField2 = document.getElementById("dialog.password2"); param.SetString(7, editField2.value); } var editfield1Password = param.GetInt(4); var editField1 = editfield1Password == 1 ?...
var compareFunc = function compare(first, second) { return first[column].toLowerCase().localeCompare(second[column].toLowerCase()); }
compareFunc = function compare(first, second) { return first[column].toLowerCase().localeCompare(second[column].toLowerCase()); }
var compareFunc = function compare(first, second) { return first[column].toLowerCase().localeCompare(second[column].toLowerCase()); }
if (a.name == b.name)
a = a.labelstr.toLowerCase(); b = b.labelstr.toLowerCase(); if (a == b)
function compare (a, b) { if (a.name == b.name) return 0; else if (a.name > b.name) return 1; else return -1; }
debugger;
function compare(a, b) { debugger; if (a > b) return 1; if (a < b) return -1; return 0; };
a = a.label.toLowerCase().replace("&", ""); b = b.label.toLowerCase().replace("&", "");
a = a.labelstr.toLowerCase(); b = b.labelstr.toLowerCase();
function compare (a, b) { a = a.label.toLowerCase().replace("&", ""); b = b.label.toLowerCase().replace("&", ""); if (a == b) return 0; if (a > b) return 1; return -1; }
return compareString(eventA.location, eventB.location) * modifier;
return compareString(eventA.getProperty("LOCATION"), eventB.getProperty("LOCATION")) * modifier;
function compareEvents( eventA, eventB ){ var modifier = 1; if (treeView.sortDirection == "descending") { modifier = -1; } switch(treeView.selectedColumn) { case "unifinder-search-results-tree-col-title": return compareString(eventA.title, eventB.title) * modifier; case "unifinder-s...