rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
client.currentObject = null; setCurrentObject(oldView);
function cmdHideView(e){ if (!e.view) e.view = e.sourceObject; var tb = getTabForObject(e.view); if (tb) { var i = deleteTab (tb); if (i != -1) { client.deck.removeChild(e.view.frame); delete e.view.frame; if (client.currentObject == e.view) ...
e.mask = e.mask.toLowerCase();
e.mask = e.server.toLowerCase(e.mask);
function cmdIgnore(e){ if (("mask" in e) && e.mask) { // FIXME: This is incorrect if CASEMAPPING is not ASCII, see bug 190749. e.mask = e.mask.toLowerCase(); if (e.command.name == "ignore") { if (e.network.ignore(e.mask)) display(getMsg(MSG_IGNORE_ADD,...
var node = this.getSelectedNode();
var node = this.selectedNode;
cmdInspectBrowser: function() { var node = this.getSelectedNode(); var n = node.localName.toLowerCase(); if (node && n == "browser" && node.namespaceURI == kXULNSURI) { // xul browser this.subject = node.contentDocument; } else if (node && n == "tabbrowser" && node.namespaceURI == kXULNSURI) { ...
var node = viewer.getSelectedNode(); if (!node) return false;
var node = viewer.selectedNode; if (!node || node.nodeType != Node.ELEMENT_NODE) return false;
cmdInspectBrowserIsValid: function() { var node = viewer.getSelectedNode(); if (!node) return false; var n = node.localName.toLowerCase(); return n == "tabbrowser" || n == "browser" || n == "iframe" || n == "frame" || n == "editor"; },
var node = this.getSelectedNode(); inspectObject(node);
var node = this.selectedNode; if (node) inspectObject(node);
cmdInspectInNewWindow: function() { var node = this.getSelectedNode(); inspectObject(node); },
var encodeName = fromUnicode(e.channelName.toLowerCase(), e.network);
var encodeName = fromUnicode(e.server.toLowerCase(e.channelName), e.network);
function cmdInvite(e) { var channel; if (!e.channelName) { channel = e.channel; } else { var encodeName = fromUnicode(e.channelName.toLowerCase(), e.network); channel = e.server.channels[encodeName]; if (!channel) { display(getMsg(MSG_ERR...
var hostmask = e.user.host.replace(/^[^.]+/, "*");
var hostmask; if (e.user.host.match(/^[\d\.]*$/) != null) hostmask = e.user.host.replace(/[^.]+$/, "*"); else hostmask = e.user.host.replace(/^[^.]+/, "*");
function cmdKick(e){ if (!e.user) e.user = e.channel.getUser(e.nickname); if (!e.user) { display(getMsg(MSG_ERR_UNKNOWN_USER, e.nickname), MT_ERROR); return; } if (e.command.name == "kick-ban") { var hostmask = e.user.host.replace(/^[^.]+/, "*"); e.server.sendData("M...
var key = e.channelName.toLowerCase();
var key = e.server.toLowerCase(e.channelName);
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (e.channelName[0].search(/[#&+!]/) != 0) e.channelName = "#" + e.channelName; e.channelName = fromUnicode(e.channelName, e.network); var key = e...
console._loader = cls.createInstance(mozIJSSubScriptLoader);
console._loader = cls.getService(mozIJSSubScriptLoader);
function cmdLoadd (e){ var ex; if (!("_loader" in console)) { const LOADER_CTRID = "@mozilla.org/moz/jssubscript-loader;1"; const mozIJSSubScriptLoader = Components.interfaces.mozIJSSubScriptLoader; var cls; if ((cls = Components.classes[LOADER_CTRID])) co...
openHelp();
if (typeof openHelp == "undefined") toOpenWindowByType('mozilla:help', 'chrome: else openHelp();
function cmdMozillaHelp (){ openHelp();}
var nickname = e.nicknameList[i].toLowerCase();
var nickname = e.server.toLowerCase(e.nicknameList[i]);
function cmdNotify(e){ var net = e.network; if (!e.nickname) { if (net.prefs["notifyList"].length > 0) { /* delete the lists and force a ISON check, this will * print the current online/offline status when the server * responds */ delete net.onLis...
if (e.prefName[0] == "-") { console.prefs.prefBranch.clearUserPref(e.prefName.substr(1)); return true; }
function cmdPref (e){ if (e.prefValue) { if (e.prefName[0] == "-") { console.prefs.prefBranch.clearUserPref(e.prefName.substr(1)); return true; } var type = typeof console.prefs[e.prefName]; switch (type) { case "number": ...
if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"];
function cmdQuit(e){ if (!e.reason) e.reason = client.userAgent; client.quit(e.reason); window.close();}
sourceTab.iframe.addProgressListener (source2View.progressListener, WINDOW);
function cmdReloadTab (e){ if (console.views.source2.sourceTabList.length == 0) return var source2View = console.views.source2; function cb(status) { sourceTab.iframe.reload(); }; if (source2View.tabs && e.index == null) { e.index = source2View.tabs.selectedIndex; } e...
if (typeof console != "udefined" && ("_stopLevel" in console) && console._stopLevel != 0) return;
function cmdReloadUI(){ if (typeof console != "udefined" && ("_stopLevel" in console) && console._stopLevel != 0) return; var bs = Components.classes["@mozilla.org/intl/stringbundle;1"]; bs = bs.createInstance(Components.interfaces.nsIStringBundleService); bs.flushBundles(); window.loc...
console.commandManager.addPref(prefName, "");
console.prefManager.addPref(prefName, "");
function cmdSaveLayout (e){ if (!e.name) { var list = console.prefManager.listPrefs("layoutState."); for (var i = 0; i < list.length; ++i) list[i] = list[i].substr(12); list.push("factory"); display (getMsg(MSN_LAYOUT_LIST, list.sort().join(MSG_COMMASP))); return; ...
else if (e.password)
else
function cmdServer(e){ var ary = e.hostname.match(/^(.*):(\d+)$/); if (ary) { // Foolish user obviously hasn't read the instructions, but we're nice. e.password = e.port; e.port = ary[2]; e.hostname = ary[1]; } var name = e.hostname.toLowerCase(); if (!e.port) e.port...
client.networks[name].serverList[0].password = e.password;
if (client.networks[name].temporary) client.networks[name].serverList[0].isSecure = false; if (e.password) client.networks[name].serverList[0].password = e.password;
function cmdServer(e){ var ary = e.hostname.match(/^(.*):(\d+)$/); if (ary) { // Foolish user obviously hasn't read the instructions, but we're nice. e.password = e.port; e.port = ary[2]; e.hostname = ary[1]; } var name = e.hostname.toLowerCase(); if (!e.port) e.port...
password: e.password}]);
password: e.password}], true);
function cmdServer(e){ var ary = e.hostname.match(/^(.*):(\d+)$/); if (ary) { // Foolish user obviously hasn't read the instructions, but we're nice. e.password = e.port; e.port = ary[2]; e.hostname = ary[1]; } var name = e.hostname.toLowerCase(); if (!e.port) e.port...
var win = openDialog("chrome: "_blank", "chrome", node);
if (node) openDialog("chrome: "_blank", "chrome", node);
cmdShowPseudoClasses: function() { var idx = this.mDOMOutliner.currentIndex; var node = this.getNodeFromRowIndex(idx); var win = openDialog("chrome://inspector/content/viewers/dom/pseudoClassDialog.xul", "_blank", "chrome", node); },
else if (e.password)
else
function cmdSSLServer(e){ var ary = e.hostname.match(/^(.*):(\d+)$/); if (ary) { // Foolish user obviously hasn't read the instructions, but we're nice. e.password = e.port; e.port = ary[2]; e.hostname = ary[1]; } var name = e.hostname.toLowerCase(); if (!e.port) e.p...
client.networks[name].serverList[0].password = e.password;
if (client.networks[name].temporary) client.networks[name].serverList[0].isSecure = true; if (e.password) client.networks[name].serverList[0].password = e.password;
function cmdSSLServer(e){ var ary = e.hostname.match(/^(.*):(\d+)$/); if (ary) { // Foolish user obviously hasn't read the instructions, but we're nice. e.password = e.port; e.port = ary[2]; e.hostname = ary[1]; } var name = e.hostname.toLowerCase(); if (!e.port) e.p...
password: e.password, isSecure: true}]);
password: e.password, isSecure: true}], true);
function cmdSSLServer(e){ var ary = e.hostname.match(/^(.*):(\d+)$/); if (ary) { // Foolish user obviously hasn't read the instructions, but we're nice. e.password = e.port; e.port = ary[2]; e.hostname = ary[1]; } var name = e.hostname.toLowerCase(); if (!e.port) e.p...
client.prefs["stalkWords"].push(e.text); client.prefs["stalkWords"].update();
list.push(e.text); list.update();
function cmdStalk(e){ if (!e.text) { if (list.length == 0) display(MSG_NO_STALK_LIST); else display(getMsg(MSG_STALK_LIST, list.join(MSG_COMMASP))); return; } client.prefs["stalkWords"].push(e.text); client.prefs["stalkWords"].update(); display(getMsg(MSG_STA...
--console._stopLevel;
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...
for (i in list)
for (var i = 0; i < list.length; ++i)
function cmdUnstalk(e){ e.text = e.text.toLowerCase(); var list = client.prefs["stalkWords"]; for (i in list) { if (list[i].toLowerCase() == e.text) { list.splice(i, 1); list.update(); display(getMsg(MSG_STALK_DEL, e.text)); return; } } ...
e.network.whoisList[e.server.toLowerCase(e.nicknameList[i])] = null;
function cmdWhoIs(e){ for (var i = 0; i < e.nicknameList.length; i++) { if ((i < e.nicknameList.length - 1) && (e.server.toLowerCase(e.nicknameList[i]) == e.server.toLowerCase(e.nicknameList[i + 1]))) { e.server.whois(e.nicknameList[i] + " " + e.nicknameList[i]); ...
function cmgr_removes (commands)
function cmgr_removes (cmdary)
function cmgr_removes (commands){ for (var c in commands) this.removeCommand(commands[c]);}
for (var c in commands) this.removeCommand(commands[c]);
for (var i in cmdary) { var command = isinstance(cmdary[i], Array) ? {name: cmdary[i][0]} : cmdary[i]; this.removeCommand(command); }
function cmgr_removes (commands){ for (var c in commands) this.removeCommand(commands[c]);}
var cmp = function(l,r) { var lName = results.details[l].ShortName; var rName = results.details[r].ShortName; if (lName) lName = lName.toLowerCase(); if (rName) rName = rName.toLowerCase(); return lName < rName ? -1 : lName > rName ? 1 : 0; }
cmp: function(l,r) { var lName = this.result.details[l].ShortName; var rName = this.result.details[r].ShortName; if (lName) lName = lName.toLowerCase(); if (rName) rName = rName.toLowerCase(); return lName < rName ? -1 : lName > rName ? 1 : 0; }
var cmp = function(l,r) { var lName = results.details[l].ShortName; var rName = results.details[r].ShortName; if (lName) lName = lName.toLowerCase(); if (rName) rName = rName.toLowerCase(); return lName < rName ? -1 : lName > rName ? 1 : 0; }
var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); var pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer);
function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); var pop3Server = currentServer.QueryInterface(Components.interfaces.nsIP...
else dump("CollapseItem: item id="+id+" not found\n");
function CollapseItem(id, collapse){ var item = document.getElementById(id); if (item) { if(collapse != (item.getAttribute("collapsed") == "true")) item.setAttribute("collapsed", collapse ? "true" : ""); } else dump("CollapseItem: item id="+id+" not found\n");}
goUpdateCommand('button_delete');
goUpdateCommand('cmd_delete'); goUpdateCommand('button_delete');
function CommandUpdate_AddressBook(){ goUpdateCommand('button_delete');}
var oneAddressBookSelected = false; if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) oneAddressBookSelected = true; var selectedCards = GetSelectedAddresses(); var oneOrMoreCardsSelected = false; if ( selectedCards ) oneOrMoreCardsSelected = true; goSetCommandEnabled('cmd_SortByName',...
function CommandUpdate_AddressBook(){ goUpdateCommand('button_delete'); // get selection info from dir pane var oneAddressBookSelected = false; if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) oneAddressBookSelected = true; // get selection info from results pane var selectedCards = Ge...
debug("CommandUpdate_Bookmarks()");
function CommandUpdate_Bookmarks(){ debug("CommandUpdate_Bookmarks()"); //goUpdateCommand('button_delete'); // get selection info from dir pane /* var oneAddressBookSelected = false; if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) oneAddressBookSelected = true; ...
goUpdateCommand('cmd_setFolderCharset');
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_previousUnreadMsg...
goUpdateCommand("cmd_close");
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"); goUpdateCommand("cmd_quit");
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_sendButton");
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...
if (gSuppressCommandUpdating) { return; } var element = top.document.commandDispatcher.focusedElement;
var focusedWindow = top.document.commandDispatcher.focusedWindow;
function CommandUpdate_MsgCompose(){ if (gSuppressCommandUpdating) { //dump("XXX supressing\n"); return; } var element = top.document.commandDispatcher.focusedElement; // we're just setting focus to where it was before if (element == gLastElementToHaveFocus) { //dump("XXX skip\n"); return; } gLastEle...
if (element == gLastElementToHaveFocus) {
if (focusedWindow == gLastWindowToHaveFocus) {
function CommandUpdate_MsgCompose(){ if (gSuppressCommandUpdating) { //dump("XXX supressing\n"); return; } var element = top.document.commandDispatcher.focusedElement; // we're just setting focus to where it was before if (element == gLastElementToHaveFocus) { //dump("XXX skip\n"); return; } gLastEle...
gLastElementToHaveFocus = element;
gLastWindowToHaveFocus = focusedWindow;
function CommandUpdate_MsgCompose(){ if (gSuppressCommandUpdating) { //dump("XXX supressing\n"); return; } var element = top.document.commandDispatcher.focusedElement; // we're just setting focus to where it was before if (element == gLastElementToHaveFocus) { //dump("XXX skip\n"); return; } gLastEle...
if (startHourRange > endHourRange)
if (parseInt(startHourRange) > parseInt(endHourRange))
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 < Fields.length; ++i) { var field = document.getElementById(Fields[i]); // if the field was removed, just ski...
if (newValue) {
if (newValue)
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 the...
changed |= updateAttribute(gProperties[i], oldValue, newValue); }
changed |= updateAttribute(gProperties[i], oldValue, newValue);
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 the...
alert("Please enter a duration.");
alert( bundle.GetStringFromName("pleaseEnterADuration") );
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 < Fields.length; ++i) { var field = document.getElementById(Fields[i]); // Get the new value as a literal, us...
setLabelForNode(button, gCommonDialogParam.GetString(10));
setLabelForNode(newButton, 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;...
var nEditFields = gCommonDialogParam.GetInt(3); switch (nEditFields) { case 2: var password2Container = document.getElementById("password2EditField"); password2Container.removeAttribute("collapsed"); var password2Field = document.getElementById("dialog.password2"); password2Field.value = gCommonDialogParam.GetString(7)...
var nEditFields = gCommonDialogParam.GetInt(3); switch (nEditFields) { case 2: var password2Container = document.getElementById("password2EditField"); password2Container.removeAttribute("collapsed"); var password2Field = document.getElementById("dialog.password2"); password2Field.value = gCommonDialogParam.GetString(7...
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = gCommonDialogParam.GetString(0); var mes...
var password2Label = gCommonDialogParam.GetString(5); if (password2Label) setElementText("password2.text", password2Label); var containerID, fieldID, labelID; if (gCommonDialogParam.GetInt(4) == 1) { containerID = "password1EditField"; fieldID = "dialog.password1"; labelID = "password1.text"; } else { containerID = "...
var containerID, fieldID, labelID; if (gCommonDialogParam.GetInt(4) == 1) { containerID = "password1EditField"; fieldID = "dialog.password1"; labelID = "password1.text"; } else { containerID = "loginEditField"; fieldID = "dialog.loginname"; labelID = "login.text"; }
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = gCommonDialogParam.GetString(0); var mes...
var visibilityList = ["loginEditField", "password1EditField", "password2EditField", "ok", "cancel", "Button2", "Button3"] var focusList = ["dialog.loginname", "dialog.password1", "dialog.password2", "ok", "cancel", "Button2", "Button3"] for (var i = 0; i < visibilityList.length; i++) { if (isVisible(visibilityLis...
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = gCommonDialogParam.GetString(0); var mes...
var nButtons = gCommonDialogParam.GetInt(2);
nButtons = gCommonDialogParam.GetInt(2);
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;...
var textnode = document.createElement("text"); textnode.setAttribute("value", messageFragment); messageParent.appendChild(textnode);
var textnode = document.createTextNode(messageFragment); var htmlnode = document.createElement("html"); htmlnode.appendChild(textnode); messageParent.appendChild(htmlnode);
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
focus(); GetAttention();
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); focus(); GetAttention(); // display the main text var messageText = gCommonDialogP...
dump("There are " + numButtons + " buttons\n");
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("dialog.password"); element.value = param.GetString( 7 ); element = document.getElementById("dialog.loginname"); element.value = param.GetString( 6 );
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("dialog.loginname"); element.focus();
var element = document.getElementById("dialog.password2"); element.value = param.GetString( 7 ); var editMsg = param.GetString( 5 ); if (editMsg) { SetElementText("password2.text", editMsg ); } var editfield1Password = param.GetInt( 4 ); if ( editfield1Password == 1 ) { var element = document.getElementById("dialog.p...
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("dialog.password1"); element.value = param.GetString( 6 ); var element = document.getElementById("password1.text"); element.setAttribute("style", "display:none;" );
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("password.text"); element.setAttribute("style", "display:none;" ); var element = document.getElementById("dialog.password");
var element = document.getElementById("password2EditField"); element.setAttribute("style","display: none;" ); var element = document.getElementById("dialog.password1");
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("passwordEditfield"); element.setAttribute("style","display: none;" );
var element = document.getElementById("dialog.loginname"); element.value = param.GetString( 6 ); var editMsg1 = param.GetString( 4 ); if (editMsg1) { SetElementText("login.text", editMsg1 ); }
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
var element = document.getElementById("password1EditField"); element.setAttribute("style","display: none;" ); var element = document.getElementById("password2EditField"); element.setAttribute("style","display: none;" ); var element = document.getElementById("dialog.loginname"); element.focus();
function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3 ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); ...
for (var i = 0; i < messageParagraphs.length; i++) {
for (i = 0; i < messageParagraphs.length; i++) {
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = gCommonDialogParam.GetString(0); var me...
for (var i = 0; i < visibilityList.length; i++) {
for (i = 0; i < visibilityList.length; i++) {
function commonDialogOnLoad(){ doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); gCommonDialogParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); // display the main text var messageText = gCommonDialogParam.GetString(0); var me...
var element = document.getElementById("dialog.loginname"); param.SetString( 6, element.value ); element = document.getElementById("dialog.password"); param.SetString( 7, element.value );
var element1, element2; var numEditfields = param.GetInt( 3 ); if (numEditfields == 2) { var editfield1Password = param.GetInt( 4 ); if ( editfield1Password == 1 ) { element1 = document.getElementById("dialog.password1"); } else { element1 = document.getElementById("dialog.loginname"); } param.SetString( 6, element1.va...
function commonDialogOnOK(){// dump("commonDialogOnOK \n"); param.SetInt(0, 0 ); var element = document.getElementById("dialog.loginname"); param.SetString( 6, element.value );// dump(" login name - "+ element.value+ "\n"); element = document.getElementById("dialog.password"); param.SetString( 7, element.value );// du...
var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate;
var ad = a.startDate || a.dueDate || a.entryDate; var bd = b.startDate || b.dueDate || b.entryDate;
function compare(a, b) { var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate; return ad.compare(bd); }
a = now();
a = toDoTreeView.sortStartedTime;
function compareDate(a, b) { if (!a) a = now(); if (!b) b = now(); return (a.compare(b)); }
b = now();
b = toDoTreeView.sortStartedTime;
function compareDate(a, b) { if (!a) a = now(); if (!b) b = now(); return (a.compare(b)); }
return compareDate(eventA.start, eventB.start) * modifier;
var msNextStartA = msNextOrPreviousRecurrenceStart(eventA); var msNextStartB = msNextOrPreviousRecurrenceStart(eventB); return compareMSTime(msNextStartA, msNextStartB) * 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...
return compareDate(eventA.end, eventB.end) * modifier;
var msNextEndA = msNextOrPreviousRecurrenceEnd(eventA); var msNextEndB = msNextOrPreviousRecurrenceEnd(eventB); return compareMSTime(msNextEndA, msNextEndB) * 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...
sip2.data = aItem;
sip2.data = aOtherItem;
function compareItems(aItem, aOtherItem) { var sip1 = Cc["@mozilla.org/supports-interface-pointer;1"]. createInstance(Ci.nsISupportsInterfacePointer); sip1.data = aItem; sip1.dataIID = Ci.calIItemBase; var sip2 = Cc["@mozilla.org/supports-interface-pointer;1"]. createInstance(Ci....
"( " + string +".split(" + separator + ") ).length" , split_2.length, split_1.length ); var limit = split_1.length > split_2.length ? split_1.length : split_2.length; for ( var split_item = 0; split_item < limit; split_item++ ) { AddTestCase( string + ".split(" + separator + ")["+split_item+"]", split_2[split_item], ...
string + ".split(" + separator + ")["+split_item+"]", split_2[split_item], split_1[split_item] ); }
function CompareSplit( string, separator ) { split_1 = string.split( separator ); split_2 = string_split( string, separator ); AddTestCase( "( " + string +".split(" + separator + ") ).length" , split_2.length, split_1.length ); var limit = split_1.length > split_2.length ? ...
"( " + string +".split(" + separator + ", " + splitlimit+") ).length" , split_2.length, split_1.length ); var limit = split_1.length > split_2.length ? split_1.length : split_2.length; for ( var split_item = 0; split_item < limit; split_item++ ) { AddTestCase( string + ".split(" + separator + ", " + splitlimit+")["+...
string + ".split(" + separator + ", " + splitlimit+")["+split_item+"]", split_2[split_item], split_1[split_item] ); }
function CompareSplitWithLimit( string, separator, splitlimit ) { split_1 = string.split( separator, splitlimit ); split_2 = string_split( string, separator, splitlimit ); AddTestCase( "( " + string +".split(" + separator + ", " + splitlimit+") ).length" , split_2.length, split_1.length );...
return compareNumber(taskA.priority, taskB.priority) * modifier;
var aFix = taskA.priority == 0 ? 10 : taskA.priority; var bFix = taskB.priority == 0 ? 10 : taskB.priority; return compareNumber(aFix, bFix) * modifier;
function compareTasks( taskA, taskB ){ var modifier = 1; if (toDoTreeView.sortDirection == "descending") { modifier = -1; } switch(toDoTreeView.selectedColumn) { case "unifinder-todo-tree-col-priority": // 0-9 return compareNumber(taskA.priority, taskB.priority) * modifier; case "unifinde...
awDisableAutoComplete(top.MAX_RECIPIENTS); }
function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; awSetInputAndPopupFromArray(msgCompFi...
top.MAX_RECIPIENTS = 1; awDisableAutoComplete(top.MAX_RECIPIENTS);
top.MAX_RECIPIENTS = 1; awSetAutoComplete(top.MAX_RECIPIENTS);
function CompFields2Recipients(msgCompFields, msgType){ if (msgCompFields) { var treeChildren = document.getElementById('addressWidgetBody'); var newTreeChildrenNode = treeChildren.cloneNode(false); var templateNode = treeChildren.firstChild; top.MAX_RECIPIENTS = 0; awSetInputAndPopupFromArray(msgCompFi...
row = awSetInputAndPopup(row, msgCompFields.GetTo(), "addr_to"); row = awSetInputAndPopup(row, msgCompFields.GetCc(), "addr_cc"); row = awSetInputAndPopup(row, msgCompFields.GetBcc(), "addr_bcc"); row = awSetInputAndPopup(row, msgCompFields.GetReplyTo(), "addr_reply");
row = awSetInputAndPopupFromArray(row, msgCompFields.SplitRecipients(msgCompFields.GetTo()), "addr_to"); row = awSetInputAndPopupFromArray(row, msgCompFields.SplitRecipients(msgCompFields.GetCc()), "addr_cc"); row = awSetInputAndPopupFromArray(row, msgCompFields.SplitRecipients(msgCompFields.GetBcc()), "addr_bcc"); row...
function CompFields2Recipients(msgCompFields){ if (msgCompFields) { var row = 1; row = awSetInputAndPopup(row, msgCompFields.GetTo(), "addr_to"); row = awSetInputAndPopup(row, msgCompFields.GetCc(), "addr_cc"); row = awSetInputAndPopup(row, msgCompFields.GetBcc(), "addr_bcc"); row = awSetInputAndPopup(row, msgCo...
window.parent.MsgNewMessage();
window.parent.MsgNewMessage(null);
function ComposeAMessage(event){ window.parent.MsgNewMessage();}
var commonDialogsService = Components.classes["component: commonDialogsService = commonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs);
function ComposeCanClose(){ // Returns FALSE only if user cancels save action if (contentChanged || msgCompose.bodyModified) { var commonDialogsService = Components.classes["component://netscape/appshell/commonDialogs"].getService(); commonDialogsService = commonDialogsService.QueryInterface(Components.interfaces.nsI...
promptService.UniversalDialog(
promptService.universalDialog(
function ComposeCanClose(){ // Returns FALSE only if user cancels save action if (contentChanged || msgCompose.bodyModified) { // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); if (promptService) { var result = ...
Bundle.GetStringFromName("saveDlogTitle"), Bundle.GetStringFromName("saveDlogMessage"),
gComposeMsgsBundle.getString("saveDlogTitle"), gComposeMsgsBundle.getString("saveDlogMessage"),
function ComposeCanClose(){ // Returns FALSE only if user cancels save action if (contentChanged || msgCompose.bodyModified) { if (commonDialogsService) { var result = {value:0}; commonDialogsService.UniversalDialog( window, null, Bundle.GetStringFromName("saveDlogTitle"), Bundle.GetStringFro...
Bundle.GetStringFromName("saveDlogSaveBtn"), Bundle.GetStringFromName("saveDlogCancelBtn"), Bundle.GetStringFromName("saveDlogDontSaveBtn"),
gComposeMsgsBundle.getString("saveDlogSaveBtn"), gComposeMsgsBundle.getString("saveDlogCancelBtn"), gComposeMsgsBundle.getString("saveDlogDontSaveBtn"),
function ComposeCanClose(){ // Returns FALSE only if user cancels save action if (contentChanged || msgCompose.bodyModified) { if (commonDialogsService) { var result = {value:0}; commonDialogsService.UniversalDialog( window, null, Bundle.GetStringFromName("saveDlogTitle"), Bundle.GetStringFro...
dump("\nPage Unloaded from XUL\n"); if (editorAppCore) { dump("\nClosing editor app core\n"); editorAppCore.exit(); } if (composeAppCore) { dump("\nClosing compose app core\n"); dump("composeAppCore.exit() not yet implemented!\n"); }
function ComposeExit(){}
editorAppCore.exit();
function ComposeExit(){ dump("\nPage Unloaded from XUL\n"); if (editorAppCore) { dump("\nClosing editor app core\n"); editorAppCore.exit(); } if (composeAppCore) { dump("\nClosing compose app core\n");// composeAppCore.exit();dump("composeAppCore.exit() not yet implemented!\n"); }}
if (msgComposeService) msgComposeService.TimeStamp("Done with the initialization (ComposeLoad). Waiting on editor to load about::blank", false);
function ComposeLoad(){ gComposeMsgsBundle = document.getElementById("bundle_composeMsgs"); try { SetupCommandUpdateHandlers(); var wizardcallback = true; var state = verifyAccounts(wizardcallback); // this will do migration, or create a new account if we need to. if (other_header != "") { var selectNode = ...
promptService.Alert(window, errorTitle, errorMsg);
promptService.alert(window, errorTitle, errorMsg);
function ComposeLoad(){ if (msgComposeService) msgComposeService.TimeStamp("Start Initializing the compose window (ComposeLoad)", false); gComposeMsgsBundle = document.getElementById("bundle_composeMsgs"); try { SetupCommandUpdateHandlers(); var wizardcallback = true; var state = verifyAccounts(wizardcallb...
dump("\nComposeLoad from XUL\n");
gComposeMsgsBundle = document.getElementById("bundle_composeMsgs");
function ComposeLoad(){ dump("\nComposeLoad from XUL\n"); try { SetupCommandUpdateHandlers(); var wizardcallback = true; var state = verifyAccounts(wizardcallback); // this will do migration, or create a new account if we need to. if (other_header != "") { var selectNode = document.getElementById('msgRecipie...
var errorTitle = Bundle.GetStringFromName("initErrorDlogTitle"); var errorMsg = Bundle.GetStringFromName("initErrorDlogMessage");
var errorTitle = gComposeMsgsBundle.getString("initErrorDlogTitle"); var errorMsg = gComposeMsgsBundle.getString("initErrorDlogMessage");
function ComposeLoad(){ dump("\nComposeLoad from XUL\n"); try { SetupCommandUpdateHandlers(); var wizardcallback = true; var state = verifyAccounts(wizardcallback); // this will do migration, or create a new account if we need to. if (other_header != "") { var selectNode = document.getElementById('msgRecipie...
function ComposeMessage(tree, nodeList, msgAppCore, type)
function ComposeMessage(tree, nodeList, messenger, type)
function ComposeMessage(tree, nodeList, msgAppCore, type){ dump("\nComposeMessage from XUL\n"); // Generate a unique number, do we have a better way? var date = new Date(); sessionID = date.getTime() + Math.random(); var composeAppCoreName = "ComposeAppCore:" + sessionID; var composeAppCore = XPAppCoresManager.Find(co...
var hintForIdentity = hdr.recipients + hdr.ccList;
var hintForIdentity = (type == msgComposeType.Template) ? hdr.author : hdr.recipients + hdr.ccList;
function ComposeMessage(type, format, folder, messageArray) { var msgComposeType = Components.interfaces.nsIMsgCompType; var identity = null; var newsgroup = null; var server; //dump("ComposeMessage folder="+folder+"\n"); try { if(folder) { // get the incoming server associated with this uri server = folder.serv...
var hdr = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri);
var hdr = messenger.msgHdrFromURI(messageUri);
function ComposeMessage(type, format, folder, messageArray) { var msgComposeType = Components.interfaces.nsIMsgCompType; var identity = null; var newsgroup = null; var server; //dump("ComposeMessage folder="+folder+"\n"); try { if(folder) { // get the incoming server associated with this uri server = folder.serv...
if (type == msgComposeType.Reply || type == msgComposeType.ReplyAll || type == msgComposeType.ForwardInline ||
var messageID = hdr.messageId; var messageIDScheme = messageID.split(":")[0]; if ((messageIDScheme == 'http' || messageIDScheme == 'https') && "openComposeWindowForRSSArticle" in this) openComposeWindowForRSSArticle(messageID, hdr, type); else if (type == msgComposeType.Reply || type == msgComposeType.ReplyAll || type...
function ComposeMessage(type, format, folder, messageArray) { var msgComposeType = Components.interfaces.nsIMsgCompType; var identity = null; var newsgroup = null; var server; //dump("ComposeMessage folder="+folder+"\n"); try { if(folder) { // get the incoming server associated with this uri server = folder.serv...
if (type == msgComposeType.ForwardAsAttachment)
if (type == msgComposeType.ForwardAsAttachment && uri)
function ComposeMessage(type, format, folder, messageArray) { var msgComposeType = Components.interfaces.nsIMsgCompType; var identity = null; var newsgroup = null; var server; //dump("ComposeMessage folder="+folder+"\n"); try { if(folder) { // get the incoming server associated with this uri server = folder.serv...
var appCore = FindMsgAppCore();
var appCore = FindMessenger();
function ComposeMessageWithType(type){ dump("\nMsgReplyMessage from XUL\n"); var tree = frames[0].frames[1].document.getElementById('threadTree'); if(tree) { dump("tree is valid\n"); var nodeList = tree.getElementsByAttribute("selected", "true"); var appCore = FindMsgAppCore(); dump("message type "); ...
CommandUpdate_MsgCompose();
ComposeProcessDone: function(aResult) { gWindowLocked = false; CommandUpdate_MsgCompose(); enableEditableFields(); if (aResult== Components.results.NS_OK) { SetContentAndBodyAsUnmodified(); if (gCloseWindowAfterSave) { // Notify the SendListener that Send has been aborted and...
updateComposeItems();
ComposeProcessDone: function(aResult) { gWindowLocked = false; CommandUpdate_MsgCompose(); enableEditableFields(); if (aResult== Components.results.NS_OK) { SetContentAndBodyAsUnmodified(); if (gCloseWindowAfterSave) { // Notify the SendListener that Send has been aborted and...
var charset = window._content.document.characterSet;
var charset = window.content.document.characterSet;
function composercharsetLoadListener (event){ var charset = window._content.document.characterSet; if (charset.length > 0 ) { gCharsetMenu.SetCurrentComposerCharset(charset); } }
var str = Components.classes["@mozilla.org/supports-wstring;1"] .createInstance(Components.interfaces.nsISupportsWString);
var str = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISupportsString);
function ComposerSelectDetector(event){ //dump("Charset Detector menu item pressed: " + event.target.getAttribute('id') + "\n"); var uri = event.target.getAttribute("id"); var prefvalue = uri.substring('chardet.'.length, uri.length); if ("off" == prefvalue) { // "off" is special value to turn off the detec...
Components.interfaces.nsISupportsWString, str);
Components.interfaces.nsISupportsString, str);
function ComposerSelectDetector(event){ //dump("Charset Detector menu item pressed: " + event.target.getAttribute('id') + "\n"); var uri = event.target.getAttribute("id"); var prefvalue = uri.substring('chardet.'.length, uri.length); if ("off" == prefvalue) { // "off" is special value to turn off the detec...
msgCompose.editor = window.editorShell;
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } // fill in Recipient type combobox FillR...
msgCompose.LoadFields();
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } // fill in Recipient type combobox FillR...
msgCompose.editor = window.editorShell;
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } // fill in Recipient type combobox FillR...