rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
return false; | function Click() { id = this.id.replace("menu_",""); ShowMenu(id);} | |
id = this.id.replace("menu_","") | id = this.id.replace("menu_",""); | function Click() { id = this.id.replace("menu_","") ShowMenu(id);} |
if (elt.className == 'x') | var strEltClass = elt.className; if (strEltClass.charAt (strEltClass.length - 1) == '_') strEltClass = strEltClass.slice (0, strEltClass.length - 1); if (strEltClass == 'x') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... |
if (elt.className == 'm' || elt.className == 'p' || elt.className == 'e' || elt.className == 'f') | if (strEltClass == 'm' || strEltClass == 'p' || strEltClass == 'e' || strEltClass == 'f') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... |
if (elt.className == 'c' || elt.className == 's' || elt.className == 'i' || elt.className == 'd' || elt.className == 'en') | var strEltClass = elt.className; if (strEltClass.charAt (strEltClass.length - 1) == '_') strEltClass = strEltClass.slice (0, strEltClass.length - 1); if (strEltClass == 'c' || strEltClass == 's' || strEltClass == 'i' || strEltClass == 'd' || strEltClass == 'en') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... |
if (elt.className == 'en') | if (strEltClass == 'en') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... |
if (elt.className == 'n') | var strEltClass = elt.className; if (strEltClass.charAt (strEltClass.length - 1) == '_') strEltClass = strEltClass.slice (0, strEltClass.length - 1); if (strEltClass == 'n') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... |
if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { hour24 = hourNumber; } else { hour24 = hourNumber + 12; } | hour24 = hourNumber; | oeTimePicker.clickHour = function( hourItem, hourNumber ){ // select the item oeTimePicker.selectHourItem( hourItem ); // Change the hour in the selected time, add 12 if PM. var hour24 = null; if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { hour24 = hourNumber; } else { ... |
current_panels.treeBoxObject.selection.clearSelection(); | current_panels.view.selection.clearSelection(); | function ClickOnOtherPanels(event){ var tree = document.getElementById("other-panels"); var rowIndex = -1; if (event.type == "click" && event.button == 0) { var row = {}, col = {}, obj = {}; var b = tree.treeBoxObject; b.getCellAt(event.clientX, event.clientY, row, col, obj); if (obj.value == "twisty" ... |
span.appendChild (newInlineText("Available networks are [")); | span.appendChild (newInlineText(getMsg("cli_listNetworks.a"))); | function clie_ilistnets (e){ var span = document.createElementNS("http://www.w3.org/1999/xhtml", "html:span"); span.appendChild (newInlineText("Available networks are [")); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; ... |
span.appendChild (newInlineText (", ")); | span.appendChild (newInlineText (MSG_CSP)); | function clie_ilistnets (e){ var span = document.createElementNS("http://www.w3.org/1999/xhtml", "html:span"); span.appendChild (newInlineText("Available networks are [")); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; ... |
span.appendChild (newInlineText("].")); | span.appendChild (newInlineText(getMsg("cli_listNetworks.b"))); | function clie_ilistnets (e){ var span = document.createElementNS("http://www.w3.org/1999/xhtml", "html:span"); span.appendChild (newInlineText("Available networks are [")); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; ... |
}), arguments ); | })); | clone: function(deep) { return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments ); }, |
obj.isExternalAttachment = aAttachment.isExternalAttachment; | function cloneAttachment(aAttachment){ var obj = new Object(); obj.contentType = aAttachment.contentType; obj.url = aAttachment.url; obj.displayName = aAttachment.displayName; obj.messageUri = aAttachment.uri; return obj;} | |
gActiveEditor.removeAttribute(destElement, attr); | gActiveEditor.removeAttributeOrEquivalent(destElement, attr, false); | function CloneAttribute(destElement, srcElement, attr){ var value = srcElement.getAttribute(attr); // Use editor methods since we are always // modifying a table in the document and // we need transaction system for undo try { if (!value || value.length == 0) gActiveEditor.removeAttribute(destElement, at... |
gActiveEditor.setAttribute(destElement, attr, value); | gActiveEditor.setAttributeOrEquivalent(destElement, attr, value, false); | function CloneAttribute(destElement, srcElement, attr){ var value = srcElement.getAttribute(attr); // Use editor methods since we are always // modifying a table in the document and // we need transaction system for undo try { if (!value || value.length == 0) gActiveEditor.removeAttribute(destElement, at... |
DWRUtil.cloneNode = function(ele) { | DWRUtil.cloneNode = function(ele, options) { if (options == null) options = {}; | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return null; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} |
DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); | DWRUtil.debug("cloneNode2() can't find an element with id: " + orig + "."); | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return null; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} |
DWRUtil._removeIds(clone); | if (options.idPrefix || options.idSuffix) { DWRUtil._updateIds(clone, options); } else { DWRUtil._removeIds(clone); } | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return null; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} |
return; | return null; | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} |
var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } function chooserModeChanged() { var radioPanel = document.getElementById("viewchoiceRadioPa... | var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } } | function closeAll() { var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } function choose... |
var panels = document.getElementsByName("category_panel"); | var panels = document.getElementsByClassName("category_panel"); | function closeAll() { var panels = document.getElementsByName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } } |
dump("*** running closeBranches\n"); | closeBranches: function ( aComponentName ) { dump("*** running closeBranches\n"); var panelChildren = document.getElementById( "panelChildren" ); var panelTree = document.getElementById( "prefsTree" ); for( var i = 0; i < panelChildren.childNodes.length; i++ ) ... | |
window.close(); | function closeDialog(){ removeToolboxListeners(); unwrapToolbarItems(); persistCurrentSets(); notifyParentComplete(); window.close();} | |
var findField = document.getElementById("find-field"); var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); if (window == ww.activeWindow && document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.parentNode.parentNode... | setTimeout(delayedCloseFindBar, 0); | function closeFindBar(){ var findField = document.getElementById("find-field"); var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); if (window == ww.activeWindow && document.commandDispatcher.focusedElement && document.c... |
if (gRunFiltersButton.getAttribute("label") == gRunFiltersButton.getAttribute("stoplabel")) { gFilterListMsgWindow.StopUrls(); } | closeWindow: function() { // if we are running, and the user closes the window, stop. // XXX todo, prompt first, though. if (gRunFiltersButton.getAttribute("label") == gRunFiltersButton.getAttribute("stoplabel")) { gFilterListMsgWindow.StopUrls(); } } | |
var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; | var ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); if (ary[1] == commandName) return [i, ary[2]]; | function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; ... |
arrayRemoveAt(aliasDefs, ary[1]); | arrayRemoveAt(aliasDefs, ary[0]); | function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; ... |
ary = aliasDefs[i].split(/\s*=\s*/); display(getMsg(MSG_FMT_ALIAS, [ary[0], ary[1]])); | ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); display(getMsg(MSG_FMT_ALIAS, [ary[1], ary[2]])); | function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; ... |
mask = e.user.getBanMask(); | mask = fromUnicode(e.user.getBanMask(), e.server); | function cmdBanOrExcept(e){ /* If we're unbanning, or banning in odd cases, we may actually be talking * about a user who is not in the channel, so we need to check the server * for information as well. */ if (!e.user && e.nickname) e.user = e.channel.getUser(e.nickname); if (!e.user && e.ni... |
var bpr = bplist[i]; display (getMsg(MSN_BP_LINE, [i, bpr.fileName, bpr.line, bpr.scriptMatches])); | bpr = bplist[i]; feedback (e, getMsg(MSN_BP_LINE, [i, bpr.fileName, bpr.line, bpr.scriptMatches])); | function cmdBreak (e){ var i; if (!e.fileName) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN... |
display (getMsg(MSN_ERR_BP_NOSCRIPT, e.fileName), MT_ERROR); | feedback (e, getMsg(MSN_ERR_BP_NOSCRIPT, e.fileName), MT_ERROR); | function cmdBreak (e){ var i; if (!e.fileName) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN... |
setBreakpoint (matchingFiles[i], e.lineNumber); | { bpr = setBreakpoint (matchingFiles[i], e.lineNumber); if (bpr) feedback (getMsg(MSN_BP_CREATED, [bpr.fileName, bpr.lineNumber, bpr.scriptMatches])); } | function cmdBreak (e){ var i; if (!e.fileName) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN... |
if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) | if ((network.state == NET_ONLINE) && network.isRunningList()) { display(MSG_CANCELLING_LIST); network.abortList(); } else if ((network.state == NET_CONNECTING) || (network.state == NET_WAITING)) { display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel(); } else | function cmdCancel(e){ var network = e.network; if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel();} |
return; | function cmdCancel(e){ var network = e.network; if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel();} | |
display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel(); | function cmdCancel(e){ var network = e.network; if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel();} | |
} else dd ("record already seems to be in the tree"); | function cmdChromeFilter (e){ var currentState = console.prefs["enableChromeFilter"]; if (e.toggle != null) { if (e.toggle == "toggle") e.toggle = !currentState; if (e.toggle != currentState) { if (e.toggle) console.jsds.insertFilter (console.chrome... | |
return clearBreakpointByNumber (e.breakpointIndex); | var bpr = clearBreakpointByNumber (e.breakpointIndex); if (bpr) feedback (getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches])); | function cmdClear (e){ return clearBreakpointByNumber (e.breakpointIndex);} |
feedback (getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches])); | feedback (e, getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches])); | function cmdClear (e){ var bpr = clearBreakpointByNumber (e.breakpointIndex); if (bpr) feedback (getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches]));} |
helper.copyStringToClipboard(val, kGlobalClipboard); | helper.copyString(val); | cmdCopyValue: function() { var sel = getSelectedItem(); if (sel) { var val = sel.__JSValue__; if (val) { var helper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper"); helper.copyStringToClipboard(val, kGlobalClipboard); } } }, |
if (pickerRv.reason == PICK_CANCEL) | if (!pickerRv.ok) | function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") { if (!c.accept()) return false; ... |
if (pickerRv.reason == PICK_CANCEL) | if (!pickerRv.ok) | function cmdDCCSend(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); const DIRSVC_CID = "@mozilla.org/file/directory_service;1"; const nsIProperties = Components.interfaces.nsIProperties; if (!e.n... |
var msg = filterOutput(e.action, "ACTION", "ME!"); | var msg = filterOutput(e.action, "ACTION", target); | function cmdDescribe(e){ var target = e.server.addTarget(e.target); var msg = filterOutput(e.action, "ACTION", "ME!"); e.sourceObject.display(msg, "ACTION", "ME!", target); target.act(msg);} |
if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) { | if (!gPromptService.prompt(window, title, msg, propValue, null, dummy)) { | cmdEditSelectedProperty: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styl... |
propval = prompt("Enter the property value:", propval); if (!propval) return; | var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyValue.message"); var title = bundle.getString("styleRuleEditProperty.title"); var propValue = { value: propval }; var dummy = { value: false }; if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) { return... | cmdEditSelectedProperty: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); propval = prompt("Enter the property value:", propval); if (!propval) return; ... |
style.setProperty(propname, propval, priority); | style.setProperty(propname, propValue.value, priority); | cmdEditSelectedProperty: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); propval = prompt("Enter the property value:", propval); if (!propval) return; ... |
var scriptRec = console.scripts[e.breakpointRec.fileName]; if (!scriptRec) | var containerRec = console.scripts[e.breakpointRec.fileName]; if (!containerRec) | function cmdFindBp (e){ var scriptRec = console.scripts[e.breakpointRec.fileName]; if (!scriptRec) { dd ("breakpoint in unknown source"); return false; } var sourceView = console.sourceView; cmdFindURL ({url: scriptRec.script.fileName, rangeStart: e.breakpointRec.line, ... |
cmdFindURL ({url: scriptRec.script.fileName, | cmdFindURL ({url: containerRec.fileName, | function cmdFindBp (e){ var scriptRec = console.scripts[e.breakpointRec.fileName]; if (!scriptRec) { dd ("breakpoint in unknown source"); return false; } var sourceView = console.sourceView; cmdFindURL ({url: scriptRec.script.fileName, rangeStart: e.breakpointRec.line, ... |
if (typeof nsFindData != "undefined") | if (typeof nsFindInstData != "undefined") | function cmdFindString (e){ var source2View = console.views.source2; if (!source2View.tabs) return; var index = source2View.tabs.selectedIndex; if (!(index in source2View.sourceTabList)) return; var browser = source2View.sourceTabList[index].iframe; if (typeof nsFindData != "undefined") ... |
return; | function cmdGotoURL(e){ if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.match(/^x-cz-command:(.*)$/i); e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" + ... | |
window.openNewTabWith(e.url); | window.openNewTabWith(e.url, null, null, null, null, false); | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... |
e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))"; | e.sourceObject.frame.contentWindow.location.href = "javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))"; | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... |
var cuser = e.channel.getUser(e.nickname); if (!cuser) | if (!e.user) e.user = e.channel.getUser(e.nickname); if (!e.user) | function cmdKick(e) { var cuser = e.channel.getUser(e.nickname); if (!cuser) { 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("MODE " + e.channel... |
cuser.kick(e.reason); | e.user.kick(e.reason); | function cmdKick(e) { var cuser = e.channel.getUser(e.nickname); if (!cuser) { 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("MODE " + e.channel... |
if (!e.channelName) | if (!e.channelName || !e.inputData) | function cmdList(e){ e.network.list = new Array(); e.network.list.regexp = null; if (!e.channelName) e.channelName = ""; e.server.sendData("LIST " + e.channelName + "\n");} |
var msg = filterOutput(e.action, "ACTION", "ME!"); | var msg = filterOutput(e.action, "ACTION", e.sourceObject); | function cmdMe(e){ if (!("act" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "me"), MT_ERROR); return; } var msg = filterOutput(e.action, "ACTION", "ME!"); e.sourceObject.display(msg, "ACTION", "ME!", e.sourceObject); e.sourceObject.act(msg);} |
e.sourceObject.act (fromUnicode(e.action, e.sourceObject)); | e.sourceObject.act (e.action); | function cmdMe(e){ if (!("act" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "me"), MT_ERROR); return; } e.action = filterOutput (e.action, "ACTION", "ME!"); display (e.action, "ACTION", "ME!", e.sourceObject); e.sourceObject.act (fromUnicode(e.action, e.sourceObject));} |
var msg = filterOutput(e.message, "PRIVMSG", "ME!"); | var msg = filterOutput(e.message, "PRIVMSG", target); | function cmdMsg(e){ var target = e.server.addTarget(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", "ME!"); e.sourceObject.display(msg, "PRIVMSG", "ME!", target); target.say(msg);} |
usr.say(fromUnicode(e.message, e.sourceObject)); | usr.say(e.message, e.sourceObject); | function cmdMsg(e){ var usr = e.server.addUser(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", "ME!"); usr.display(e.message, "PRIVMSG", "ME!", usr); usr.say(fromUnicode(e.message, e.sourceObject));} |
if (!gPromptService.prompt(window, title, msg, propName, false, dummy)) { | if (!gPromptService.prompt(window, title, msg, propName, null, dummy)) { | cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP... |
if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) { | if (!gPromptService.prompt(window, title, msg, propValue, null, dummy)) { | cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP... |
var propname = prompt("Enter the property name:", ""); if (!propname) return; var propval = prompt("Enter the property value:", ""); if (!propval) return; | var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gPromptService.prompt(window, title, msg, propName, f... | cmdNewProperty: function() { var propname = prompt("Enter the property name:", ""); if (!propname) return; var propval = prompt("Enter the property value:", ""); if (!propval) return; var style = this.getSelectedRule().style; style.setProperty(propname, propval, ""); this.mPropsBoxObject.inv... |
style.setProperty(propname, propval, ""); | style.setProperty(propName.value, propValue.value, ""); | cmdNewProperty: function() { var propname = prompt("Enter the property name:", ""); if (!propname) return; var propval = prompt("Enter the property value:", ""); if (!propval) return; var style = this.getSelectedRule().style; style.setProperty(propname, propval, ""); this.mPropsBoxObject.inv... |
var msg = filterOutput(e.message, "NOTICE", "ME!"); | var msg = filterOutput(e.message, "NOTICE", target); | function cmdNotice(e){ var target = e.server.addTarget(e.nickname); var msg = filterOutput(e.message, "NOTICE", "ME!"); e.sourceObject.display(msg, "NOTICE", "ME!", target); target.notice(msg);} |
e.network.dispatch("ctcp", { target: e.target, code: "PING" }); | e.network.dispatch("ctcp", { target: e.nickname, code: "PING" }); | function cmdPing (e){ e.network.dispatch("ctcp", { target: e.target, code: "PING" });} |
e.message = filterOutput(e.message, "PRIVMSG", "ME!"); | e.message = filterOutput(e.message, "PRIVMSG", user); | function cmdQuery(e){ // We'd rather *not* trigger the user.start event this time. blockEventSounds("user", "start"); var user = openQueryTab(e.server, e.nickname); dispatch("set-current-view", { view: user }); if (e.message) { e.message = filterOutput(e.message, "PRIVMSG", "ME!"); user.... |
user.say(fromUnicode(e.message, e.sourceObject)); | user.say(e.message, e.sourceObject); | function cmdQuery(e){ var user = openQueryTab(e.server, e.nickname); setCurrentObject(user); if (e.message) { e.message = filterOutput(e.message, "PRIVMSG", "ME!"); user.display(e.message, "PRIVMSG", "ME!", user); user.say(fromUnicode(e.message, e.sourceObject)); } return user;} |
return | return; | function cmdReloadTab (e){ const WINDOW = Components.interfaces.nsIWebProgress.NOTIFY_STATE_WINDOW; if (console.views.source2.sourceTabList.length == 0) return var source2View = console.views.source2; function cb(status) { sourceTab.iframe.addProgressListener (source2View.progressLi... |
var templateName; | function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e... | |
templateName = templatePfx + ext; var templateFile; if (templateName in console.prefs) templateFile = console.prefs[templateName]; else templateFile = console.prefs[templatePfx + "txt"]; var reportTemplate = console.profiler.loadTemplate(templateFile); | var rv = writeProfile(e, file, ext, onComplete); | function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e... |
var scriptInstanceList = new Array(); var j; if (!("urlList" in e) || e.urlList.length == 0) { if ("url" in e && e.url) e.urlList = [e.url]; else e.urlList = keys(console.scriptManagers); } e.urlList = e.urlList.sort(); for (i = 0; i < e.urlList.length; ++i) { var url = e.urlList[i]; if (!ASSERT (url in console.scr... | return rv.localFile; | function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e... |
return; | return null; | function cmdSaveTab (e){ var source2View = console.views.source2; if (source2View.tabs && e.index == null) { e.index = source2View.tabs.selectedIndex; if (!(e.index in source2View.sourceTabList)) return; } else if (!source2View.tabs || e.index < 0 || e.index > source2... |
var msg = filterOutput(e.message, "PRIVMSG", "ME!"); | var msg = filterOutput(e.message, "PRIVMSG", e.sourceObject); | 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);} |
priority = priority == "!important" ? "!blah" : "!important"; | priority = priority == "important" ? "" : "important"; | cmdToggleSelectedImportant: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); priority = priority == "!important" ? "!blah" : "!important"; style.removePro... |
e.channel.setTopic(fromUnicode(e.newTopic, e.channel)); | e.channel.setTopic(e.newTopic); | function cmdTopic(e){ if (!e.newTopic) e.server.sendData ("TOPIC " + e.channel.name + "\n"); else e.channel.setTopic(fromUnicode(e.newTopic, e.channel));} |
labelDefault = getMsgFrom (bundle, "cmd." + aliasFor + ".label", null, name); | if (aliasFor) labelDefault = getMsgFrom (bundle, "cmd." + aliasFor + ".label", null, name); | 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]... |
if (partialName.length == this.commands[i].name.length) return [this.commands[i]]; else | 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... | |
return cmdNames.sort(); | return (cmdNames.length > 0) ? cmdNames.sort() : []; | 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.sort();} |
this.description = getMsg("rule_" + name); | if (name[0] != ".") this.description = getMsg("rule_" + name); | function CMungerEntry (name, regex, className, enable, tagName){ this.name = name; this.description = getMsg("rule_" + name); this.enabled = (typeof enable == "undefined" ? true : enable); this.tagName = (tagName) ? tagName : "html:span"; if (regex instanceof RegExp) this.regex = regex; els... |
if (inboxFolder.hasNewMessages) inboxFolder.clearNewMessages(); | inboxFolder.clearNewMessages(); | function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3... |
img = FetchElement('img_admin_menu'+i) | img = FetchElement('img_admin_menu'+i); | function Collapse_all() { for (var i=0; i<=20; i++) { img = FetchElement('img_admin_menu'+i) if (img) { KillCookie('admin_menu'+i) Switch(img) } } } |
KillCookie('admin_menu'+i) Switch(img) | KillCookie('admin_menu'+i); Switch(img); | function Collapse_all() { for (var i=0; i<=20; i++) { img = FetchElement('img_admin_menu'+i) if (img) { KillCookie('admin_menu'+i) Switch(img) } } } |
var endDate = getElementValue("end-datetime"); if (getElementValue("all-day-event-checkbox", "checked") ) endDate.setDate(endDate.getDate() + 1); else endDate.setDate(endDate.getDate() - 1); updateStartEndItemEnabled(); updateOKButton(); | updateDuration(); updateStartEndItemEnabled(); updateOKButton(); | function commandAllDay(){ var endDate = getElementValue("end-datetime"); //user enddate == ical enddate - 1 (for allday events) if (getElementValue("all-day-event-checkbox", "checked") ) endDate.setDate(endDate.getDate() + 1); else endDate.setDate(endDate.getDate() - 1); updateStartEndItemE... |
AbUpdateCommandDelete(); | function CommandUpdate_AddressBook(){ dump("CommandUpdate_AddressBook\n"); // get selection info from dir pane var tree = document.getElementById('dirTree'); var oneAddressBookSelected = false; if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) oneAddressBookSelected = true; dump("oneAddressBookSel... | |
goUpdateCommand('cmd_getNewMessages'); goUpdateCommand('cmd_find'); goUpdateCommand('cmd_findAgain'); goUpdateCommand('cmd_markAsRead'); goUpdateCommand('cmd_markThreadAsRead'); goUpdateCommand('cmd_markAllRead'); goUpdateCommand('cmd_markAsFlagged'); goUpdateCommand('cmd_file'); | function CommandUpdate_Mail(){ goUpdateCommand('cmd_delete'); goUpdateCommand('button_delete'); goUpdateCommand('cmd_shiftDelete'); goUpdateCommand('cmd_print'); goUpdateCommand('cmd_saveAsFile'); goUpdateCommand('cmd_saveAsTemplate'); goUpdateCommand('cmd_viewPageSource'); goUpdateCommand('cmd_reload');} | |
goUpdateCommand('cmd_delete'); | 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_getMsgsForAuthAccounts'); | function CommandUpdate_Mail(){ goUpdateCommand('button_delete'); goUpdateCommand('cmd_delete'); goUpdateCommand('cmd_editDraft'); goUpdateCommand('cmd_nextMsg'); goUpdateCommand('cmd_nextUnreadMsg'); goUpdateCommand('cmd_nextUnreadThread'); goUpdateCommand('cmd_nextFlaggedMsg'); goUpdateCommand('cmd_previousMsg'); goUp... | |
goUpdateCommand('button_delete'); goUpdateCommand('button_reply'); goUpdateCommand('button_replyall'); goUpdateCommand('button_forward'); goUpdateCommand('cmd_shiftDelete'); | 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_sortBySubject'); goUpdateCommand('cmd_sortByDate'); goUpdateCommand('cmd_sortByFlag'); goUpdateCommand('cmd_sortByPriority'); goUpdateCommand('cmd_sortBySender'); goUpdateCommand('cmd_sortBySize'); goUpdateCommand('cmd_sortByStatus'); goUpdateCommand('cmd_sortByRead'); goUpdateCommand('cmd_sortByOr... | 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_openMessage'); goUpdateCommand('cmd_print'); goUpdateCommand('cmd_saveAsFile'); goUpdateCommand('cmd_saveAsTemplate'); goUpdateCommand('cmd_viewPageSource'); goUpdateCommand('cmd_reload'); | goUpdateCommand('cmd_getNewMessages'); goUpdateCommand('cmd_find'); goUpdateCommand('cmd_findAgain'); goUpdateCommand('cmd_markAllRead'); goUpdateCommand('cmd_emptyTrash'); goUpdateCommand('cmd_compactFolder'); | 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_getMsgsForAuthAccounts'); | function CommandUpdate_Mail(){ goUpdateCommand('cmd_reply'); goUpdateCommand('cmd_replySender'); goUpdateCommand('cmd_replyGroup'); goUpdateCommand('cmd_replyall'); goUpdateCommand('cmd_forward'); goUpdateCommand('cmd_forwardInline'); goUpdateCommand('cmd_forwardAttachment'); goUpdateCommand('button_reply'); goUpdateCo... | |
goUpdateCommand("cmd_insert"); goUpdateCommand("cmd_link"); goUpdateCommand("cmd_anchor"); goUpdateCommand("cmd_image"); goUpdateCommand("cmd_hline"); goUpdateCommand("cmd_table"); goUpdateCommand("cmd_insertHTML"); goUpdateCommand("cmd_insertChars"); goUpdateCommand("cmd_insertBreak"); goUpdateCommand("cmd_insertBreak... | if (msgCompose.composeHTML) { goUpdateCommand("cmd_insert"); goUpdateCommand("cmd_link"); goUpdateCommand("cmd_anchor"); goUpdateCommand("cmd_image"); goUpdateCommand("cmd_hline"); goUpdateCommand("cmd_table"); goUpdateCommand("cmd_insertHTML"); goUpdateCommand("cmd_insertChars"); goUpdateCommand("cmd_insertBreak"); go... | 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... |
goUpdateCommand("cmd_format"); goUpdateCommand("cmd_decreaseFont"); goUpdateCommand("cmd_increaseFont"); goUpdateCommand("cmd_bold"); goUpdateCommand("cmd_italic"); goUpdateCommand("cmd_underline"); goUpdateCommand("cmd_strikethrough"); goUpdateCommand("cmd_superscript"); goUpdateCommand("cmd_subscript"); goUpdateComma... | if (msgCompose.composeHTML) { goUpdateCommand("cmd_format"); goUpdateCommand("cmd_decreaseFont"); goUpdateCommand("cmd_increaseFont"); goUpdateCommand("cmd_bold"); goUpdateCommand("cmd_italic"); goUpdateCommand("cmd_underline"); goUpdateCommand("cmd_strikethrough"); goUpdateCommand("cmd_superscript"); goUpdateCommand("... | 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... |
} catch(e) {} | 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... | |
if (field) { var newvalue = field.value; if (gFields[i] == "webpanel") newvalue = field.checked ? "true" : undefined; var oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkID), RDF.GetResource(gProperties[i]), true); | if (! field) 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) { // Get the new val... |
if (oldvalue) oldvalue = oldvalue.QueryInterface(Components.interfaces.nsIRDFLiteral); | var newValue = field.value; if (gFields[i] == "webpanel") newValue = field.checked ? "true" : undefined; var oldValue = BMDS.GetTarget(gResource, gProperties[i], true); | 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) { // Get the new val... |
if (newvalue && gProperties[i] == (NC_NS + "ShortcutURL")) { newvalue = newvalue.toLowerCase(); } else if (newvalue && gProperties[i] == (NC_NS + "URL")) { if (newvalue.indexOf(":") < 0) newvalue = "http: } | if (oldValue) oldValue = oldValue.QueryInterface(Components.interfaces.nsIRDFLiteral); | 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) { // Get the new val... |
if (newvalue) newvalue = RDF.GetLiteral(newvalue); | if (newValue && gFields[i] == "shortcut") newValue = newValue.toLowerCase(); else if (newValue && gFields[i] == "url") { if (newValue.indexOf(":") < 0) newValue = "http: } | 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) { // Get the new val... |
if (updateAttribute(gProperties[i], oldvalue, newvalue)) { changed = true; } | if (newValue) { newValue = RDF.GetLiteral(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) { // Get the new val... |
var scheduleRes = "http: oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkID), RDF.GetResource(scheduleRes), true); newvalue = ""; | var scheduleArc = RDF.GetResource(WEB_NS+"Schedule"); oldValue = BMDS.GetTarget(gResource, scheduleArc, true); newValue = null; | 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) { // Get the new val... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.