rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var sampleUser = {TYPE: "IRCUser", nick: "ircmonkey", name: "IRCMonkey", properNick: "IRCMonkey", displayName: "IRCMonkey", host: ""}; var sampleChannel = {TYPE: "IRCChannel", name: "#mojo", displayName: "#mojo"}; | var sampleUser = {TYPE: "IRCUser", encodedName: "ircmonkey", canonicalName: "ircmonkey", unicodeName: "IRCMonkey", viewName: "IRCMonkey", host: "", name: "chatzilla"}; var sampleChannel = {TYPE: "IRCChannel", encodedName: "#mojo", canonicalName: "#mojo", unicodeName: "#Mojo", viewName: "#Mojo"}; | function cmdTestDisplay(e){ display(MSG_TEST_HELLO, MT_HELLO); display(MSG_TEST_INFO, MT_INFO); display(MSG_TEST_ERROR, MT_ERROR); display(MSG_TEST_HELP, MT_HELP); display(MSG_TEST_USAGE, MT_USAGE); display(MSG_TEST_STATUS, MT_STATUS); if (e.server && e.server.me) { var me = e.server.me; ... |
display(getMsg(MSG_TEST_STALK, me.nick), | display(getMsg(MSG_TEST_STALK, me.unicodeName), | function cmdTestDisplay(e){ display(MSG_TEST_HELLO, MT_HELLO); display(MSG_TEST_INFO, MT_INFO); display(MSG_TEST_ERROR, MT_ERROR); display(MSG_TEST_HELP, MT_HELP); display(MSG_TEST_USAGE, MT_USAGE); display(MSG_TEST_STATUS, MT_STATUS); if (e.server && e.server.me) { var me = e.server.me; ... |
var sourceObject = e.sourceObject.frame.contentDocument.body; | function cmdTextDirection(e){ var direction; switch (e.dir) { case "toggle": sourceObject = e.sourceObject.frame.contentDocument.body; if (window.getComputedStyle(sourceObject, null).direction == "ltr") direction = 'rtl'; else direction ... | |
sourceObject = e.sourceObject.frame.contentDocument.body; if (window.getComputedStyle(sourceObject, null).direction == "ltr") | if (sourceObject.getAttribute("dir") == "rtl") direction = 'ltr'; else | function cmdTextDirection(e){ var direction; switch (e.dir) { case "toggle": sourceObject = e.sourceObject.frame.contentDocument.body; if (window.getComputedStyle(sourceObject, null).direction == "ltr") direction = 'rtl'; else direction ... |
else direction = 'ltr'; | function cmdTextDirection(e){ var direction; switch (e.dir) { case "toggle": sourceObject = e.sourceObject.frame.contentDocument.body; if (window.getComputedStyle(sourceObject, null).direction == "ltr") direction = 'rtl'; else direction ... | |
} client.input.style.direction = direction; e.sourceObject.frame.contentDocument.body.style.direction = direction; | } client.input.setAttribute("dir", direction); sourceObject.setAttribute("dir", direction); | function cmdTextDirection(e){ var direction; switch (e.dir) { case "toggle": sourceObject = e.sourceObject.frame.contentDocument.body; if (window.getComputedStyle(sourceObject, null).direction == "ltr") direction = 'rtl'; else direction ... |
if (e.mode.search(/ignore/i) != -1) | if (e.mode != null) | function cmdTMode (e){ if (e.mode.search(/ignore/i) != -1) { setThrowMode(TMODE_IGNORE); return true; } else if (e.mode.search(/trace/i) != -1) { setThrowMode(TMODE_TRACE); return true; } else if (e.mode.search(/breaK/i) != -1) { setThrowMode(TMODE_BREAK); ... |
setThrowMode(TMODE_IGNORE); return true; | e.mode = e.mode.toLowerCase(); if (e.mode == "cycle") { switch (console.throwMode) { case TMODE_IGNORE: e.mode = "trace"; break; case TMODE_TRACE: e.mode = "break"; break; case TMODE_BREAK: e.mode = "ignore"; break; } } switch (e.mode.toLowerCase()) { case "ignore": console.jsds.throwHook = null; console.throwMode = ... | function cmdTMode (e){ if (e.mode.search(/ignore/i) != -1) { setThrowMode(TMODE_IGNORE); return true; } else if (e.mode.search(/trace/i) != -1) { setThrowMode(TMODE_TRACE); return true; } else if (e.mode.search(/breaK/i) != -1) { setThrowMode(TMODE_BREAK); ... |
else if (e.mode.search(/trace/i) != -1) | switch (console.throwMode) | function cmdTMode (e){ if (e.mode.search(/ignore/i) != -1) { setThrowMode(TMODE_IGNORE); return true; } else if (e.mode.search(/trace/i) != -1) { setThrowMode(TMODE_TRACE); return true; } else if (e.mode.search(/breaK/i) != -1) { setThrowMode(TMODE_BREAK); ... |
setThrowMode(TMODE_TRACE); return true; } else if (e.mode.search(/breaK/i) != -1) { setThrowMode(TMODE_BREAK); return true; } else if (e.mode.search(/cycle/i) != -1) { cycleThrowMode(); return true; } else if (e.mode) { display (getMsg(MSN_ERR_INVALID_PARAM, ["mode", e.mode]), MT_ERROR); return false; | case EMODE_IGNORE: display (MSG_TMODE_IGNORE); break; case EMODE_TRACE: display (MSG_TMODE_TRACE); break; case EMODE_BREAK: display (MSG_TMODE_BREAK); break; | function cmdTMode (e){ if (e.mode.search(/ignore/i) != -1) { setThrowMode(TMODE_IGNORE); return true; } else if (e.mode.search(/trace/i) != -1) { setThrowMode(TMODE_TRACE); return true; } else if (e.mode.search(/breaK/i) != -1) { setThrowMode(TMODE_BREAK); ... |
setThrowMode(getThrowMode()); | function cmdTMode (e){ if (e.mode.search(/ignore/i) != -1) { setThrowMode(TMODE_IGNORE); return true; } else if (e.mode.search(/trace/i) != -1) { setThrowMode(TMODE_TRACE); return true; } else if (e.mode.search(/breaK/i) != -1) { setThrowMode(TMODE_BREAK); ... | |
e.server.sendData ("TOPIC " + e.channel.name + "\n"); | e.server.sendData("TOPIC " + e.channel.encodedName + "\n"); | function cmdTopic(e){ if (!e.newTopic) e.server.sendData ("TOPIC " + e.channel.name + "\n"); else e.channel.setTopic(e.newTopic);} |
e.server.sendData("mode " + e.server.me.properNick + "\n"); | e.server.sendData("mode " + e.server.me.encodedName + "\n"); | function cmdUsermode(e){ if (e.newMode) { if (e.sourceObject.network) e.sourceObject.network.prefs["usermode"] = e.newMode; else client.prefs["usermode"] = e.newMode; } else { if (e.server && e.server.isConnected) { e.server.sendData("mode " + ... |
e.network.dispatch("ctcp", { target: e.nickname, code: "VERSION"}); | if (e.nickname) e.network.dispatch("ctcp", { target: e.nickname, code: "VERSION"}); else e.server.sendData(fromUnicode("VERSION") + "\n", e.sourceObject); | function cmdVersion(e){ e.network.dispatch("ctcp", { target: e.nickname, code: "VERSION"});} |
if (e.isInteractive) | if ("isInteractive" in e && e.isInteractive) | function cmdWatchExpr (e){ var watches = console.views.watches; if (!e.expression) { if (e.isInteractive) { var watchData = console.views.watches.childData; var len = watchData.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len... |
var watchData = console.views.watches.childData; | var watchData = console.views.watches.childData.childData; | function cmdWatchExpr (e){ var watches = console.views.watches; if (!e.expression) { if (e.isInteractive) { var watchData = console.views.watches.childData; var len = watchData.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len... |
if (console.currentEvalObject instanceof jsdIStackFrame) { refresher = function () { if ("frames" in console) { this.value = evalInTargetScope(e.expression, true); } }; } else { var evalObject = console.currentEvalObject; refresher = function () { rv = console.doEval.apply(evalObject, [e.expression, parent]); this.valu... | refresher = function () { if ("frames" in console) this.value = evalInTargetScope(e.expression, true); else throw MSG_VAL_NA; }; | function cmdWatchExpr (e){ var watches = console.views.watches; if (!e.expression) { if (e.isInteractive) { var watchData = console.views.watches.childData; var len = watchData.length; display (getMsg(MSN_WATCH_HEADER, len)); for (var i = 0; i < len... |
function cmgr_add (name, func, usage, help) | function cmgr_add (parent, command, keystr) | 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; } | 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... | 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}... |
this.commands.push ({name: name, func: func, usage: usage, help: help}); this.commands = this.commands.sort(compare); | parentElem.appendChild(key); command.key = key; command.keystr = keystr; | 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}... |
var key = document.createElement ("key"); | var key = parentElem.ownerDocument.createElement ("key"); | function cmgr_instkey (parentElem, command){ if (!command.keystr) return; var ary = command.keystr.match (/(.*\s)?([\S]+)$/); if (!ASSERT(ary, "couldn't parse key string ``" + command.keystr + "'' for command ``" + command.name + "''")) { return; } var key = document.c... |
parentElem.setAttribute ("id", "dynamic-keys"); document.firstChild.appendChild (parentElem); | parentElem.setAttribute("id", "dynamic-keys"); document.documentElement.appendChild(parentElem); | function cmgr_instkeys (document, commands){ var parentElem = document.getElementById("dynamic-keys"); if (!parentElem) { parentElem = document.createElement("keyset"); parentElem.setAttribute ("id", "dynamic-keys"); document.firstChild.appendChild (parentElem); } if (!commands) ... |
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) if (partialName.length == this.commands[i].name.length) return [this.commands[i]]; else 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... |
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.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.sort();} |
if (regex instanceof RegExp) | if (isinstance(regex, RegExp)) | function CMungerEntry (name, regex, className, enable, tagName){ this.name = name; if (name[0] != ".") this.description = getMsg("munger." + name, null, null); this.enabled = (typeof enable == "undefined" ? true : enable); this.enabledDefault = this.enabled; this.tagName = (tagName) ? tagName : "h... |
this.enabledDefault = this.enabled; | 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.tagName = (tagName) ? tagName : "html:span"; if (regex instanceof RegExp) ... | |
pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3IncomingServer); | function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3... | |
pop3DownloadServersArray[index].AppendElement(currentServer); | function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3... | |
else { pop3DownloadServersArray[index].AppendElement(currentServer); } | pop3DownloadServersArray[index].AppendElement(currentServer); | function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3... |
this._inner.push(RDF.GetResource(NC_NS_CMD + aCommandArray[i])); | this._inner.push(RDF.GetResource(gNC_NS_CMD + aCommandArray[i])); | function CommandArrayEnumerator (aCommandArray){ this._inner = []; for (var i = 0; i < aCommandArray.length; ++i) this._inner.push(RDF.GetResource(NC_NS_CMD + aCommandArray[i])); this._index = 0;} |
/*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); | 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... | |
if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); | document.getElementById("messagepanebox").setAttribute("focusring","true"); document.getElementById("threadTree").setAttribute("focusring","false") document.getElementById("folderTree").setAttribute("focusring","false") | 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... |
if ( drawFocusBorder ) messagePane.removeAttribute('draw-focus-border'); }*/ | document.getElementById("messagepanebox").setAttribute("focusring","false"); | 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('button_delete'); | if( WhichPaneHasFocus() == "threadTree"){ document.getElementById("threadTree").setAttribute("focusring","true") document.getElementById("folderTree").setAttribute("focusring","false") } else{ document.getElementById("threadTree").setAttribute("focusring","false") document.getElementById("folderTree").setAttribute("f... | 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('button_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_getNextNMessages'); | 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_shiftDelete'); goUpdateCommand('cmd_nextUnreadMsg'); goUpdateCommand('cmd_nextUnreadThread'); | 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_editDraft'); | 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_getNextNMessages'); | 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... | |
dump("CommandUpdate_MsgCompose\n"); | function CommandUpdate_MsgCompose(){ dump("CommandUpdate_MsgCompose\n"); goUpdateCommand("cmd_sendNow"); goUpdateCommand("cmd_sendLater"); goUpdateCommand("cmd_saveDefault"); goUpdateCommand("cmd_saveAsDraft"); goUpdateCommand("cmd_saveAsTemplate"); goUpdateCommand("cmd_attachFile"); goUpdateCommand("cmd_select... | |
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"); goUpda... | |
goUpdateCommand("cmd_rewrap"); | 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... | |
nodewrite(l,comments[commentid]); | l.innerHTML = comments[commentid]; | function comment(d,commentid,logfile) { if (noDHTML) { document.location = log_url(logfile); return false; } if (typeof document.layers != 'undefined') { var l = document.layers['popup']; l.document.write("<table border=1 cellspacing=1><tr><td>" + comments[commentid] + "</tr></table>"... |
var oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkURL), | var oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkID), | 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_NAMESPACE_URI + "ShortcutURL")) { | if (newvalue && gProperties[i] == (NC_NS + "ShortcutURL")) { | 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... |
else if (newvalue && gProperties[i] == (NC_NAMESPACE_URI + "URL")) { | else if (newvalue && gProperties[i] == (NC_NS + "URL")) { | 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_NAMESPACE_URI + "URL") gBookmarkURL = newvalue.Value; | 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... | |
oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkURL), | oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkID), | 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 oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkID), | var oldvalue = gBookmarks.GetTarget(RDF.GetResource(gBookmarkID), | 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 scheduleTab = document.getElementById("ScheduleTab"); if (scheduleTab) { | var scheduling = document.getElementById("scheduling"); var schedulingHidden = scheduling.getAttribute("hidden"); if (schedulingHidden != "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... |
oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkID), | oldvalue = gBookmarks.GetTarget(RDF.GetResource(gBookmarkID), | 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 remote = Bookmarks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); | var remote = gBookmarks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); | 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... |
for (var i = 0; i < Fields.length; ++i) { var field = document.getElementById(Fields[i]); if (!field) continue; | for (var i = 0; i < gFields.length; ++i) { var field = document.getElementById(gFields[i]); | 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... |
var newvalue = field.value; dump("field value = " + newvalue + "\n"); | if (field) { var newvalue = field.value; | 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 (!Properties[i]) continue; | var oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkURL), RDF.GetResource(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 < Fields.length; ++i) { var field = document.getElementById(Fields[i]); // if the field was removed, just ski... |
var oldvalue = Bookmarks.GetTarget(RDF.GetResource(bookmark_url), RDF.GetResource(Properties[i]), true); | 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 < Fields.length; ++i) { var field = document.getElementById(Fields[i]); // if the field was removed, just ski... |
if (oldvalue) oldvalue = oldvalue.QueryInterface(Components.interfaces.nsIRDFLiteral); | if (newvalue && gProperties[i] == (NC_NAMESPACE_URI + "ShortcutURL")) { newvalue = newvalue.toLowerCase(); } else if (newvalue && gProperties[i] == (NC_NAMESPACE_URI + "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 < Fields.length; ++i) { var field = document.getElementById(Fields[i]); // if the field was removed, just ski... |
if ((newvalue) && (Properties[i] == (NC_NAMESPACE_URI + "ShortcutURL"))) { newvalue = newvalue.toLowerCase(); } else if ((newvalue) && (Properties[i] == (NC_NAMESPACE_URI + "URL"))) { if (newvalue.indexOf(":") < 0) { dump("Setting default URL scheme to HTTP.\n"); newvalue = "http: } } if (updateAttribute(Properties... | if (newvalue) newvalue = RDF.GetLiteral(newvalue); if (updateAttribute(gProperties[i], oldvalue, newvalue)) { if (newvalue && gProperties[i] == NC_NAMESPACE_URI + "URL") gBookmarkURL = newvalue.Value; changed = 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 < Fields.length; ++i) { var field = document.getElementById(Fields[i]); // if the field was removed, just ski... |
var scheduleTab = document.getElementById("ScheduleTab"); if (scheduleTab) { var scheduleRes = "http: var oldvalue = Bookmarks.GetTarget(RDF.GetResource(bookmark_url), RDF.GetResource(scheduleRes), true); var newvalue = ""; | var scheduleTab = document.getElementById("ScheduleTab"); if (scheduleTab) { var scheduleRes = "http: oldvalue = Bookmarks.GetTarget(RDF.GetResource(gBookmarkURL), RDF.GetResource(scheduleRes), true); newvalue = ""; var dayRangeNode = document.getElementById("dayRange"); var dayRange = dayRangeNode.selectedItem.getAttr... | 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... |
var dayRange = ""; var dayRangeNode = document.getElementById("dayRange"); if (dayRangeNode) { dayRange = dayRangeNode.selectedItem.getAttribute("data"); } if (dayRange != "") { var startHourRange = ""; var startHourRangeNode = document.getElementById("startHourRange"); if (startHourRangeNode) { startHourRange = startH... | if (dayRange) { var startHourRangeNode = document.getElementById("startHourRange"); var startHourRange = startHourRangeNode.selectedItem.getAttribute("data"); | 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 (parseInt(startHourRange) > parseInt(endHourRange)) { var temp = startHourRange; startHourRange = endHourRange; endHourRange = temp; } | var endHourRangeNode = document.getElementById("endHourRange"); var endHourRange = endHourRangeNode.selectedItem.getAttribute("data"); | 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... |
var duration = document.getElementById("duration").value; if (duration == "") { var bundle = srGetStrBundle("chrome: alert( bundle.GetStringFromName("pleaseEnterADuration") ); return(false); } | if (parseInt(startHourRange) > parseInt(endHourRange)) { var temp = startHourRange; startHourRange = endHourRange; endHourRange = temp; } | 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... |
var method = ""; if (document.getElementById("bookmarkIcon").checked) method += ",icon"; if (document.getElementById("playSound").checked) method += ",sound"; if (document.getElementById("showAlert").checked) method += ",alert"; if (document.getElementById("openWindow").checked) method += ",open"; if (method.length < 1... | var bookmarkBundle; var duration = document.getElementById("duration").value; if (!duration) { bookmarkBundle = document.getElementById("bundle_bookmark"); alert (bookmarkBundle.getString("pleaseEnterADuration")); return false; } | 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... |
dump("dayRange: " + dayRange + "\n"); dump("startHourRange: " + startHourRange + "\n"); dump("endHourRange: " + endHourRange + "\n"); dump("duration: " + duration + "\n"); dump("method: " + method + "\n"); newvalue = dayRange + "|" + startHourRange + "-" + endHourRange + "|" + duration + "|" + method; } } | var methods = []; if (document.getElementById("bookmarkIcon").checked) methods.push("icon"); if (document.getElementById("playSound").checked) methods.push("sound"); if (document.getElementById("showAlert").checked) methods.push("alert"); if (document.getElementById("openWindow").checked) methods.push("open"); | 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 (updateAttribute(scheduleRes, oldvalue, newvalue) == true) { changed = true; } | if (methods.length == 0) { bookmarkBundle = document.getElementById("bundle_bookmark"); alert (bookmarkBundle.getString("pleaseSelectANotification")); return false; } | 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 (changed == true) { dump("re-writing bookmarks.html\n"); var remote = Bookmarks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource); if (remote) { remote.Flush(); } } | var method = methods.join(); | 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... |
window.close(); | newvalue = dayRange + "|" + startHourRange + "-" + endHourRange + "|" + duration + "|" + method; } if (newvalue) newvalue = RDF.GetLiteral(newvalue); if (updateAttribute(scheduleRes, oldvalue, newvalue)) changed = true; } if (changed) { var remote = Bookmarks.QueryInterface(Components.interfaces.nsIRDFRemoteDataSour... | 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... |
var scheduleTab = document.getElementById("ScheduleTab"); if (scheduleTab) { var scheduleArc = RDF.GetResource(gWEB_NS+"Schedule"); oldValue = BMDS.GetTarget(gResource, scheduleArc, true); newValue = null; var dayRangeNode = document.getElementById("dayRange"); var dayRange = dayRangeNode.selectedItem.getAttribute("val... | 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... | |
var icon = BMDS.GetTarget(gResource, RDF.GetResource(NC_NS+"Icon"), true); if (icon) BMDS.Unassert(gResource, RDF.GetResource(NC_NS+"Icon"), icon); | var icon = BMDS.GetTarget(gResource, RDF.GetResource(gNC_NS+"Icon"), true); if (icon) BMDS.Unassert(gResource, RDF.GetResource(gNC_NS+"Icon"), icon); | 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... |
var scheduleArc = RDF.GetResource(WEB_NS+"Schedule"); | var scheduleArc = RDF.GetResource(gWEB_NS+"Schedule"); | 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... |
if (newValue && gFields[i] == "shortcut") | if (newValue && gFields[i] == "shortcut") { | 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; if (gFiel... |
newValue = newValue.replace(/(^\s+|\s+$)/g, ''); } | 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; if (gFiel... | |
var oldvalue = Bookmarks.GetTarget(RDF.GetResource(BookmarkURL), | var oldvalue = Bookmarks.GetTarget(RDF.GetResource(bookmark_url), | 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... |
#endif | function commonDialogOnLoad(){ // set the document title#ifdef XP_MACOSX setElementText("info.title", gCommonDialogParam.GetString(12), true);#else document.title = gCommonDialogParam.GetString(12);#endif // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.docum... | |
var firstButton = null; var newButton; | var firstButton = document.documentElement.getButton("accept"); | 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;... |
setLabelForNode(firstButton = document.documentElement.getButton("extra2"), gCommonDialogParam.GetString(11)); | setLabelForNode(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;... |
newButton = document.documentElement.getButton("extra1"); firstButton = firstButton || newButton; setLabelForNode(newButton, gCommonDialogParam.GetString(10)); | setLabelForNode(document.documentElement.getButton("extra1"), 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;... |
newButton = document.documentElement.getButton("accept"); firstButton = firstButton || newButton; var string = gCommonDialogParam.GetString(8); | var string = gCommonDialogParam.GetString(9); | 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;... |
setLabelForNode(newButton, string); | setLabelForNode(document.documentElement.getButton("cancel"), 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;... |
newButton = document.documentElement.getButton("cancel"); firstButton = firstButton || newButton; string = gCommonDialogParam.GetString(9); | string = gCommonDialogParam.GetString(8); | 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;... |
setLabelForNode(newButton, string); | setLabelForNode(firstButton, 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;... |
if (setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1)) && gCommonDialogParam.GetInt(3) == 0) | setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1)); if (gCommonDialogParam.GetInt(3) == 0) | 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;... |
doSetOKCancel(commonDialogOnOK, commonDialogOnCancel, commonDialogOnButton2, commonDialogOnButton3); | 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... | |
if (nButtons == 1) hideElementById("cancel"); | var string; | 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... |
unHideElementByID("Button3"); document.getElementById("Button3").label = gCommonDialogParam.GetString(11); | string = gCommonDialogParam.GetString(11); if (string) document.getElementById("Button3").label = string; | 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... |
unHideElementByID("Button2"); document.getElementById("Button2").label = gCommonDialogParam.GetString(10); | string = gCommonDialogParam.GetString(10); if (string) document.getElementById("Button2").label = string; | 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 string = gCommonDialogParam.GetString(8); if (string) document.getElementById("ok").label = string; case 1: | 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... | |
switch (nButtons) { case 1: hideElementById("cancel"); default: case 2: hideElementById("Button2"); case 3: hideElementById("Button3"); case 4: break; } | 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 messageText = gCommonDialogParam.GetString(0); var messageParent = document.getElementById("info.box"); var messageParagraphs = messageText.split("\n"); for (var i = 0; i < messageParagraphs.length; i++) { var descriptionNode = document.createElement("description"); var text = document.createTextNode(messageParagr... | var messageParent = document.getElementById("info.box").getElementsByTagName('description')[0]; messageParent.textContent = gCommonDialogParam.GetString(0).substr(0, 10000); | function commonDialogOnLoad(){ // set the document title#ifdef XP_MACOSX setElementText("info.title", gCommonDialogParam.GetString(12), true);#else document.title = gCommonDialogParam.GetString(12);#endif // set the number of command buttons var nButtons = gCommonDialogParam.GetInt(2); var dialog = document.docum... |
document.documentElement.getButton(dButton).focus(); | if (!/Mac/.test(navigator.platform)) document.documentElement.getButton(dButton).focus(); | function commonDialogOnLoad(){ // Set the document title. On Mac, we only care about URI's. if (/Mac/.test(navigator.platform)) { var titleString = gCommonDialogParam.GetString(12); if (/^\w+:\/\/\w/.test(titleString)) { setElementText("info.title", titleString, true); unHideElementById("info.title");... |
if (setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1))) | if (setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1)) && gCommonDialogParam.GetInt(3) == 0) | 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;... |
field.focusTextField(); | field.focus(); | 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 ); | function commonDialogOnLoad(){ dump("commonDialogOnLoad \n"); doSetOKCancel( commonDialogOnOK, commonDialogOnCancel ); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if( !param ) dump( " error getting param block interface\n" ); var msg = param.GetString( 0 );// dump("messa... | |
var ad = a.startDate || a.entryDate; var bd = b.startDate || b.entryDate; | var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate; | function compare(a, b) { var ad = a.startDate || a.entryDate; var bd = b.startDate || b.entryDate; return ad.compare(bd); } |
if (a.name == b.name) | a = a.label.toLowerCase().replace("&", ""); b = b.label.toLowerCase().replace("&", ""); 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; } |
else if (a.name > b.name) return 1; else return -1; | if (a > b) return 1; return -1; | function compare (a, b) { if (a.name == b.name) return 0; else if (a.name > b.name) return 1; else return -1; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.