rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
serv = o.server.connection.host; nick = o.server.me.properNick; | if (o.server) { serv = o.server.connection.host; if (o.server.me) nick = o.server.me.properNick; } | function updateTitle (obj){ if ((obj && obj != client.currentObject) || !client.currentObject) return; var tstring = ""; var o = new Object(); getObjectDetails (client.currentObject, o); var net = o.network ? o.network.name : ""; switch (client.currentObject.TYPE) { case "IRCServe... |
if (isNew) document.title = calGetString("calendar", "newEventDialog"); else document.title = calGetString("calendar", "editEventDialog"); | if (isNew) { title = calGetString("calendar", "newEventDialog"); } else { title = calGetString("calendar", "editEventDialog"); } | function updateTitle(){ var isNew = window.calendarItem.isMutable; if (isEvent(window.calendarItem)) { if (isNew) document.title = calGetString("calendar", "newEventDialog"); else document.title = calGetString("calendar", "editEventDialog"); } else if (isToDo(window.calendarItem)) { if (isNew) docume... |
if (isNew) document.title = calGetString("calendar", "newTaskDialog"); else document.title = calGetString("calendar", "editTaskDialog"); | if (isNew) { title = calGetString("calendar", "newTaskDialog"); } else { title = calGetString("calendar", "editTaskDialog"); } | function updateTitle(){ var isNew = window.calendarItem.isMutable; if (isEvent(window.calendarItem)) { if (isNew) document.title = calGetString("calendar", "newEventDialog"); else document.title = calGetString("calendar", "editEventDialog"); } else if (isToDo(window.calendarItem)) { if (isNew) docume... |
title += ': '; title += getElementValue("item-title"); document.title = title; | function updateTitle(){ var isNew = window.calendarItem.isMutable; if (isEvent(window.calendarItem)) { if (isNew) document.title = calGetString("calendar", "newEventDialog"); else document.title = calGetString("calendar", "editEventDialog"); } else if (isToDo(window.calendarItem)) { if (isNew) docume... | |
var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome: | function updateTitle(){ var isNew = window.calendarItem.isMutable; var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome://calendar/locale/calendar.properties"); if (isEvent(wind... | |
document.title = props.GetStringFromName("newEventDialog"); | document.title = calGetString("calendar", "newEventDialog"); | function updateTitle(){ var isNew = window.calendarItem.isMutable; var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome://calendar/locale/calendar.properties"); if (isEvent(wind... |
document.title = props.GetStringFromName("editEventDialog"); | document.title = calGetString("calendar", "editEventDialog"); | function updateTitle(){ var isNew = window.calendarItem.isMutable; var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome://calendar/locale/calendar.properties"); if (isEvent(wind... |
document.title = props.GetStringFromName("newTaskDialog"); | document.title = calGetString("calendar", "newTaskDialog"); | function updateTitle(){ var isNew = window.calendarItem.isMutable; var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome://calendar/locale/calendar.properties"); if (isEvent(wind... |
document.title = props.GetStringFromName("editTaskDialog"); | document.title = calGetString("calendar", "editTaskDialog"); | function updateTitle(){ var isNew = window.calendarItem.isMutable; var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome://calendar/locale/calendar.properties"); if (isEvent(wind... |
document.title = getMsg(opener.MSN_FLOATER_TITLE, ary.join(opener.MSG_COMMASP)); | var views = ary.join(opener.MSG_COMMASP); if (views == "") views = opener.MSG_VAL_NONE; document.title = getMsg(opener.MSN_FLOATER_TITLE, views); | function updateTitle(){ var ary = new Array(); for (v in containedViews) ary.push(containedViews[v].caption); document.title = getMsg(opener.MSN_FLOATER_TITLE, ary.join(opener.MSG_COMMASP));} |
case null: | function updateToDoStatus(status, passedInCompletedDate){ // RFC2445 doesn't support completedDates without the todo's status // being "COMPLETED", however twiddling the status menulist shouldn't // destroy that information at this point (in case you change status // back to COMPLETED). When we go to store ... | |
updateIconSize(false); | function updateToolbarMode(aModeValue){ setAttribute(gToolbox, "mode", aModeValue); gToolboxDocument.persist(gToolbox.id, "mode"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { setAttribute(toolbar, "mode", aModeValue); gTo... | |
iconSizeCheckbox.checked = gToolboxIconSize; | function updateToolbarMode(aModeValue){ setAttribute(gToolbox, "mode", aModeValue); gToolboxDocument.persist(gToolbox.id, "mode"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { setAttribute(toolbar, "mode", aModeValue); gTo... | |
repositionDialog(); | function updateToolbarMode(aModeValue){ setAttribute(gToolbox, "mode", aModeValue); gToolboxDocument.persist(gToolbox.id, "mode"); for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { setAttribute(toolbar, "mode", aModeValue); gTo... | |
if( repeatCheckBox.checked == true && repeatUntilRadio.checked ) | if( repeatCheckBox.checked && repeatUntilRadio.selected ) | function updateUntilItemEnabled(){ var repeatUntilRadio = document.getElementById( "repeat-until-radio" ); var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var repeatEndText = document.getElementById( "repeat-end-date-text" ); var repeatEndPicker = document.getElementById( "repeat-end-date-... |
setText("title", getMsg(MSG_TITLE_USER, [view.properNick, source])); | setText("title", getMsg(MSG_TITLE_USER, [view.unicodeName, source])); | function updateUser(){ var source; if (view.name) source = "<" + view.name + "@" + view.host + ">"; else source = MSG_UNKNOWN; if (view.parent.isConnected) setText("serverstr", view.connectionHost, true); else setText("serverstr", null, true); setText("title", getMsg(MSG_TI... |
xulWin = document.documentElement; | var xulWin = document.documentElement; | function UpdateWindowTitle(){ try { var windowTitle = GetDocumentTitle(); if (!windowTitle) windowTitle = GetString("untitled"); // Append just the 'leaf' filename to the Doc. Title for the window caption var docUrl = GetDocumentUrl(); if (docUrl && !IsUrlAboutBlank(docUrl)) { var scheme = ... |
var xulWin = document.getElementById("editorWindow"); | var xulWin = document.getElementById("WebComposerWindow"); | function UpdateWindowTitle(){ try { var windowTitle = GetDocumentTitle(); if (!windowTitle) windowTitle = GetString("untitled"); // Append just the 'leaf' filename to the Doc. Title for the window caption var docUrl = GetDocumentUrl(); if (!IsUrlAboutBlank(docUrl)) { var scheme = GetScheme(... |
var resultsPaneUIVersion; | function UpgradeAddressBookResultsPaneUI(prefName){ var resultsPaneUIVersion; try { resultsPaneUIVersion = gPrefs.getIntPref(prefName); if (resultsPaneUIVersion == 1) { // hide all columns with hiddenbydefault="true" var elements = document.getElementsByAttribute("hiddenbydefault","true"); for (... | |
resultsPaneUIVersion = gPrefs.getIntPref(prefName); | var resultsPaneUIVersion = gPrefs.getIntPref(prefName); | function UpgradeAddressBookResultsPaneUI(prefName){ var resultsPaneUIVersion; try { resultsPaneUIVersion = gPrefs.getIntPref(prefName); if (resultsPaneUIVersion == 1) { // hide all columns with hiddenbydefault="true" var elements = document.getElementsByAttribute("hiddenbydefault","true"); for (... |
var folderSizeCol = document.getElementById("folderSizeCol"); folderSizeCol.setAttribute("hidden", "true"); | function UpgradeFolderPaneUI(){ var folderPaneUIVersion = pref.getIntPref("mail.ui.folderpane.version"); if (folderPaneUIVersion == 1) { pref.setIntPref("mail.ui.folderpane.version", 2); } // we fall through to the == 2 case so we'll upgrade v 1 profiles correctly if (folderPaneUIVersion <= 2) { var folderSiz... | |
if (threadPaneUIVersion < 3) { var subjectCol = document.getElementById("subjectCol"); | if (threadPaneUIVersion < 4) { var threadTree = document.getElementById("threadTree"); | function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 3) { var subjectCol = document.getElementById("subjectCol"); var junkCol = document.getElementById("junkStatusCol"); var... |
var threadTree = document.getElementById("threadTree"); | if (threadPaneUIVersion < 3) { var subjectCol = document.getElementById("subjectCol"); | function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 3) { var subjectCol = document.getElementById("subjectCol"); var junkCol = document.getElementById("junkStatusCol"); var... |
if (threadPaneUIVersion == 1) { labelCol = document.getElementById("labelCol"); labelCol.setAttribute("hidden", "true"); | if (threadPaneUIVersion == 1) { labelCol = document.getElementById("labelCol"); labelCol.setAttribute("hidden", "true"); } | function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 3) { var subjectCol = document.getElementById("subjectCol"); var junkCol = document.getElementById("junkStatusCol"); var... |
pref.setIntPref("mailnews.ui.threadpane.version", 3); } | var senderCol = document.getElementById("senderCol"); var recipientCol = document.getElementById("recipientCol"); var beforeCol = junkCol.boxObject.nextSibling.boxObject.nextSibling; if (beforeCol) threadTree._reorderColumn(recipientCol, beforeCol, true); else threadTree._reorderColumn(recipientCol, junkCol, false); t... | function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 3) { var subjectCol = document.getElementById("subjectCol"); var junkCol = document.getElementById("junkStatusCol"); var... |
var URLBar = aEvent.target; URLBar.setSelectionRange(0, 0); | if (pref.GetBoolPref("browser.urlbar.clickSelectsAll")) { var URLBar = aEvent.target; URLBar.setSelectionRange(0, 0); } | function URLBarBlurHandler(aEvent){ var URLBar = aEvent.target; URLBar.setSelectionRange(0, 0);} |
DoBrowserRSS(gURLBar.value.split("sb:")[1]); | DoBrowserSB(gURLBar.value.split("sb:")[1]); | function URLBarEntered(){ try { if (!gURLBar) return; var url = gURLBar.value; if (gURLBar.value == "" || gURLBar.value == null) return; /* Trap to SB 'protocol' */ if(gURLBar.value.substring(0,3)=="sb:") { DoBrowserRSS(gURLBar.value.split("sb:")[1]); return; } /* Other normal cases *... |
try { addToUrlbarHistory(); } catch(ex) {} BrowserLoadURL(); | function URLBarEntered(){ try { addToUrlbarHistory(); } catch(ex) {} BrowserLoadURL(); return true;} | |
gClickSelectsAll = pref.GetBoolPref("browser.urlbar.clickSelectsAll"); | gClickSelectsAll = pref.getBoolPref("browser.urlbar.clickSelectsAll"); | function URLBarFocusHandler(aEvent){ if (gURLBar) { if (gClickSelectsAll == -1) gClickSelectsAll = pref.GetBoolPref("browser.urlbar.clickSelectsAll"); if (gClickSelectsAll) gURLBar.setSelectionRange(0, gURLBar.textLength); }} |
if (aElt.hasAttribute("focused")) { | if (aElt.hasAttribute("focused") || aEvent.target.id == "lock-icon" || aEvent.target.id == "feed-button") { | function URLBarMouseDownHandler(aEvent, aElt){ if (aElt.hasAttribute("focused")) { gIgnoreClick = true; } else { gIgnoreFocus = true; gIgnoreClick = false; aElt.setSelectionRange(0, 0); }} |
gIgnoreFocus = true; gIgnoreClick = false; aElt.setSelectionRange(0, 0); | if (aElt.hasAttribute("focused")) { gIgnoreClick = true; } else { gIgnoreFocus = true; gIgnoreClick = false; aElt.setSelectionRange(0, 0); } | function URLBarMouseDownHandler(aEvent, aElt){ gIgnoreFocus = true; gIgnoreClick = false; aElt.setSelectionRange(0, 0);} |
var sourceURI = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); sourceURI.spec = sourceURL; var destURI = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.nsIURI); destURI.spec = url; | var sourceURI = makeURI(sourceURL); var destURI = makeURI(url); | function urlSecurityCheck(url, doc) { // URL Loading Security Check var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceURL = getContentFrameURI(focusedWindow); var sourceURI = Components.classes["@mozilla.org/network/standard-url;1"] .createInstance(Components.interfaces.n... |
function urlSecurityCheck(url, doc) { var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : focusedWindow._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.cl... | function urlSecurityCheck(url, doc) { var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : focusedWindow._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.cl... | function urlSecurityCheck(url, doc) { // URL Loading Security Check var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : focusedWindow._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScript... |
} | function urlSecurityCheck(url, doc) { // URL Loading Security Check var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : focusedWindow._content.location.href; const nsIScriptSecurityManager = Components.interfaces.nsIScript... | |
function urlSecurityCheck(url, sourceURL) | function urlSecurityCheck(url, sourceURL, flags) | function urlSecurityCheck(url, sourceURL){ const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"] .getService(nsIScriptSecurityManager); try { secMan.checkLoadURIStr(sourceURL, url, nsIScriptS... |
secMan.checkLoadURIStr(sourceURL, url, nsIScriptSecurityManager.STANDARD); | secMan.checkLoadURIStr(sourceURL, url, flags); | function urlSecurityCheck(url, sourceURL){ const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityManager; var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"] .getService(nsIScriptSecurityManager); try { secMan.checkLoadURIStr(sourceURL, url, nsIScriptS... |
SetColor("textCW", customTextColor); SetColor("linkCW", customLinkColor); SetColor("activeCW", customActiveColor); SetColor("visitedCW", customVisitedColor); SetColor("backgroundCW", customBackgroundColor); | SetElementEnabledById("TextButton", true); SetElementEnabledById("LinkButton", true); SetElementEnabledById("ActiveLinkButton", true); SetElementEnabledById("VisitedLinkButton", true); SetElementEnabledById("BackgroundButton", true); SetColorPreview("textCW", customTextColor); SetColorPreview("linkCW", cus... | function UseCustomColors(){ // Restore from saved colors SetColor("textCW", customTextColor); SetColor("linkCW", customLinkColor); SetColor("activeCW", customActiveColor); SetColor("visitedCW", customVisitedColor); SetColor("backgroundCW", customBackgroundColor);} |
dump("UseDefaultColors\n"); SaveCustomColors(); | SetColorPreview("textCW", defaultTextColor); SetColorPreview("linkCW", defaultLinkColor); SetColorPreview("activeCW", defaultActiveColor); SetColorPreview("visitedCW", defaultVisitedColor); SetColorPreview("backgroundCW", defaultBackgroundColor); | function UseDefaultColors(){ dump("UseDefaultColors\n"); // Save colors to use when switching back to UseCustomColors SaveCustomColors(); SetColor("textCW", defaultTextColor); SetColor("linkCW", defaultLinkColor); SetColor("activeCW", defaultLinkColor); //Browser doesn't store this separately Set... |
SetColor("textCW", defaultTextColor); SetColor("linkCW", defaultLinkColor); SetColor("activeCW", defaultLinkColor); SetColor("visitedCW", defaultVisitedLinkColor); SetColor("backgroundCW", defaultBackgroundColor); | setColorWell("textCW", ""); setColorWell("linkCW", ""); setColorWell("activeCW", ""); setColorWell("visitedCW", ""); setColorWell("backgroundCW", ""); SetElementEnabledById("TextButton", false); SetElementEnabledById("LinkButton", false); SetElementEnabledById("ActiveLinkButton", false); SetElement... | function UseDefaultColors(){ dump("UseDefaultColors\n"); // Save colors to use when switching back to UseCustomColors SaveCustomColors(); SetColor("textCW", defaultTextColor); SetColor("linkCW", defaultLinkColor); SetColor("activeCW", defaultLinkColor); //Browser doesn't store this separately Set... |
function user_display(message, msgtype) | function user_display(message, msgtype, sourceNick) | function user_display(message, msgtype){ var ary = message.split ("\n"); dd ("user.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("user", this.nick); msgContainer.setAttribute ("msgtype", msgtype); ... |
dd ("user.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("user", this.nick); msgContainer.setAttribute ("msgtype", msgtype); var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network", this... | function user_display(message, msgtype){ var ary = message.split ("\n"); dd ("user.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("user", this.nick); msgContainer.setAttribute ("msgtype", msgtype); ... | |
var msg = newInlineText (ary[l], "msg-data"); msg.setAttribute ("network", this.parent.parent.name); msg.setAttribute ("user", this.nick); msg.setAttribute ("msgtype", msgtype); msgContainer.appendChild(msg); msgContainer.appendChild (document.createElement ("html:br")); | msgData.appendChild(newInlineText (ary[l])); msgData.appendChild (document.createElement ("html:br")); | function user_display(message, msgtype){ var ary = message.split ("\n"); dd ("user.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("user", this.nick); msgContainer.setAttribute ("msgtype", msgtype); ... |
addHistory (this, msgContainer); | msgRow.appendChild (msgData); addHistory (this, msgRow); | function user_display(message, msgtype){ var ary = message.split ("\n"); dd ("user.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("user", this.nick); msgContainer.setAttribute ("msgtype", msgtype); ... |
function userlistdnd_dstart(event, transferdata, dragAction) | function userlistdnd_dstart(event, transferData, dragAction) | function userlistdnd_dstart(event, transferdata, dragAction){ var tree = document.getElementById('user-list'); var index = tree.treeBoxObject.getRowAt(event.clientX, event.clientY); var user = tree.contentView.getItemAtIndex(index).firstChild.firstChild; var nickname = user.getAttribute("unicodeName"); t... |
var index = tree.treeBoxObject.getRowAt(event.clientX, event.clientY); var user = tree.contentView.getItemAtIndex(index).firstChild.firstChild; | tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, cell); if (!cell.value || (row.value == -1)) return; var user = tree.contentView.getItemAtIndex(row.value).firstChild.firstChild; | function userlistdnd_dstart(event, transferdata, dragAction){ var tree = document.getElementById('user-list'); var index = tree.treeBoxObject.getRowAt(event.clientX, event.clientY); var user = tree.contentView.getItemAtIndex(index).firstChild.firstChild; var nickname = user.getAttribute("unicodeName"); t... |
transferdata.data = new TransferData(); transferdata.data.addDataForFlavour("text/unicode", nickname); | transferData.data = new TransferData(); transferData.data.addDataForFlavour("text/unicode", nickname); | function userlistdnd_dstart(event, transferdata, dragAction){ var tree = document.getElementById('user-list'); var index = tree.treeBoxObject.getRowAt(event.clientX, event.clientY); var user = tree.contentView.getItemAtIndex(index).firstChild.firstChild; var nickname = user.getAttribute("unicodeName"); t... |
if (typeof testcases == 'undefined') { return; } | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... | |
win.document.forms.testCases.doctype.value = "standards"; | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... | |
if (typeof testcases == 'undefined') { return; } | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... | |
win.document.forms.testCases.doctype.value = "standards"; | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... | |
(testcase.passed ? 'PASSED':'FAILED') + ' ' + | 'result: ' + (testcase.passed ? 'PASSED':'FAILED') + ' ' + 'type: browser ' + | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... |
cdump('testname: ' + testcase.name + ' ' + | cdump('test: ' + testcase.path + ' ' + | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... |
cdump('testname: ' + testcase.name + ' ' + | cdump('test: ' + testcase.path + ' ' + | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... |
(testcase.passed ? 'PASSED':'FAILED') + ' ' + | 'result: ' + (testcase.passed ? 'PASSED':'FAILED') + ' ' + 'type: browser ' + | function userOnAfterPage(){ dlog('userOnAfterPage'); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = function (testwin) { if (... |
registerDialogCloser(); | function userOnBeforePage(){ dlog('userOnBeforePage');} | |
this.parent.actTo(this.nick, fromUnicode(msg, this)); | this.parent.actTo(this.encodedName, fromUnicode(msg, this)); | function usr_act (msg){ this.parent.actTo(this.nick, fromUnicode(msg, this));} |
function usr_changenick (nick) | function usr_changenick(unicodeName) | function usr_changenick (nick){ this.properNick = nick; this.displayName = nick; this.nick = this.parent.toLowerCase(nick);} |
this.properNick = nick; this.displayName = nick; this.nick = this.parent.toLowerCase(nick); | this.unicodeName = unicodeName; this.viewName = this.unicodeName; this.encodedName = fromUnicode(this.unicodeName, this.parent); this.canonicalName = this.parent.toLowerCase(this.encodedName); | function usr_changenick (nick){ this.properNick = nick; this.displayName = nick; this.nick = this.parent.toLowerCase(nick);} |
this.parent.ctcpTo(this.nick, fromUnicode(code, this), | this.parent.ctcpTo(this.encodedName, fromUnicode(code, this), | function usr_ctcp (code, msg, type){ msg = msg || ""; type = type || "PRIVMSG"; this.parent.ctcpTo(this.nick, fromUnicode(code, this), fromUnicode(msg, this), type);} |
return this.parent.parent.getURL(this.nick) + ",isnick"; | var target = ecmaEscape(this.encodedName); target = target.replace("/", "%2f"); return this.parent.parent.getURL(target) + ",isnick"; | function usr_geturl (){ return this.parent.parent.getURL(this.nick) + ",isnick";} |
this.parent.name + ":" + | escape(this.parent.name) + ":" + | function usr_graphres(){ if (this.TYPE != "IRCChanUser") dd ("** WARNING: cuser.getGraphResource called on wrong object **"); var rdf = client.rdf; if (!("rdfRes" in this)) { if (!("nextResID" in CIRCUser)) CIRCUser.nextResID = 0; this.rdfRes = rdf.GetResource... |
this.rdfRes = rdf.GetResource (RES_PFX + "CUSER:" + this.parent.parent.parent.name + ":" + escape(this.parent.name) + ":" + CIRCUser.nextResID++); | this.rdfRes = rdf.GetResource(RES_PFX + "CUSER:" + this.parent.parent.parent.unicodeName + ":" + this.parent.unicodeName + ":" + CIRCUser.nextResID++); | function usr_graphres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.getGraphResource called on wrong object")) { return null; } var rdf = client.rdf; if (!("rdfRes" in this)) { if (!("nextResID" in CIRCUser)) CIRCUser.nextResID = 0; th... |
rdf.Assert (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.properNick)); | rdf.Assert (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.unicodeName)); rdf.Assert (this.rdfRes, rdf.resUniName, rdf.GetLiteral(this.unicodeName)); | function usr_graphres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.getGraphResource called on wrong object")) { return null; } var rdf = client.rdf; if (!("rdfRes" in this)) { if (!("nextResID" in CIRCUser)) CIRCUser.nextResID = 0; th... |
rdf.Assert (this.rdfRes, rdf.resAway, rdf.litUnk); | function usr_graphres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.getGraphResource called on wrong object")) { return null; } var rdf = client.rdf; if (!("rdfRes" in this)) { if (!("nextResID" in CIRCUser)) CIRCUser.nextResID = 0; th... | |
this.parent.noticeTo(this.nick, fromUnicode(msg, this)); | this.parent.noticeTo(this.encodedName, fromUnicode(msg, this)); | function usr_notice (msg){ this.parent.noticeTo(this.nick, fromUnicode(msg, this));} |
delete this.parent.users[this.nick]; | delete this.parent.users[this.canonicalName]; | function usr_rehome(newParent){ delete this.parent.users[this.nick]; this.parent = newParent; this.parent.users[this.nick] = this;} |
this.parent.users[this.nick] = this; | this.parent.users[this.canonicalName] = this; | function usr_rehome(newParent){ delete this.parent.users[this.nick]; this.parent = newParent; this.parent.users[this.nick] = this;} |
this.parent.sayTo(this.nick, fromUnicode(msg, this)); | this.parent.sayTo(this.encodedName, fromUnicode(msg, this)); | function usr_say (msg){ this.parent.sayTo(this.nick, fromUnicode(msg, this));} |
rdf.Change (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.properNick)); | rdf.Change (this.rdfRes, rdf.resUniName, rdf.GetLiteral(this.unicodeName)); | function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resNick, rd... |
var sortname; | const userModes = this.parent.parent.userModes; var modeLevel = 0; var mode = ""; for (var i = 0; i < this.modes.length; i++) { for (var j = 0; j < userModes.length; j++) { if (userModes[j].mode == this.modes[i]) { if (userModes.length - j > modeLevel) { modeLevel = userModes.length - j; mode = userModes[j].symbol; } b... | function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resNick, rd... |
if (this.isOp) sortname = "a-"; else if (this.isHalfOp) sortname = "b-"; else if (this.isVoice) sortname = "c-"; | var sortname = String.fromCharCode(90 - modeLevel) + "-" + this.unicodeName; if (mode && !mode.match(/^[@%+]$/)) { rdf.Change(this.rdfRes, rdf.resNick, rdf.GetLiteral(mode + " " + this.unicodeName)); } | function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resNick, rd... |
sortname = "d-"; sortname += this.nick; rdf.Change (this.rdfRes, rdf.resSortName, rdf.GetLiteral(sortname)); rdf.Change (this.rdfRes, rdf.resOp, this.isOp ? rdf.litTrue : rdf.litFalse); rdf.Change (this.rdfRes, rdf.resHalfOp, this.isHalfOp ? rdf.litTrue : rdf.litFalse); rdf.Change (this.rdfRes, rdf.resVoice, this.isVo... | { rdf.Change (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.unicodeName)); } rdf.Change(this.rdfRes, rdf.resSortName, rdf.GetLiteral(sortname)); rdf.Change(this.rdfRes, rdf.resOp, this.isOp ? rdf.litTrue : rdf.litFalse); rdf.Change(this.rdfRes, rdf.resHalfOp, this.isHalfOp ? rdf.litTrue : rdf.litFalse); rdf.Change(this... | function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resNick, rd... |
this.parent.whois(this.nick); | this.parent.whois(this.encodedName); | function usr_whois (){ this.parent.whois(this.nick);} |
function util_stripCharsFromString (s, bag) { var i; var returnString = ""; for (i = 0; i < s.length; i++) | function util_stripCharsFromString (s, charList) { var resultS = ""; for (var i = 0; i < s.length; i++) | function util_stripCharsFromString (s, bag) { var i; var returnString = ""; for (i = 0; i < s.length; i++) { var c = s.charAt(i); if (bag.indexOf(c) == -1) returnString += c; } return returnString;} |
if (bag.indexOf(c) == -1) returnString += c; | if (charList.indexOf(c) == -1) resultS += c; | function util_stripCharsFromString (s, bag) { var i; var returnString = ""; for (i = 0; i < s.length; i++) { var c = s.charAt(i); if (bag.indexOf(c) == -1) returnString += c; } return returnString;} |
return returnString; | return resultS; | function util_stripCharsFromString (s, bag) { var i; var returnString = ""; for (i = 0; i < s.length; i++) { var c = s.charAt(i); if (bag.indexOf(c) == -1) returnString += c; } return returnString;} |
try { observerService.removeObserver(offlineObserver, "network:offline-status-changed"); } catch (ex) { } | function utilityOnLoad(aEvent){ var broadcaster = document.getElementById("Communicator:WorkMode"); if (!broadcaster) return; var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); // crude way to prevent registering twice. try { observ... | |
if (!username || username == "") { window.alert("Please enter a username.\n"); | if (protocolinfo.requiresUsername && (!username || username == "")) { var alertText = Bundle.GetStringFromName("enterUserName"); window.alert(alertText); | function validate() { var username = document.getElementById("server.username").value; if (!username || username == "") { window.alert("Please enter a username.\n"); return false; } return true;} |
window.alert("Please enter a name for this account."); | var alertText = Bundle.GetStringFromName("enterAccountName"); window.alert(alertText); | function validate() { var accountname = document.getElementById("server.prettyName").value; if (!accountname || accountname =="") { window.alert("Please enter a name for this account."); return false; } return true;} |
var image = gDialog.BackgroundImageInput.value.trimString(); | var image = TrimString(gDialog.BackgroundImageInput.value); | function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var retVal = true; var image = gDialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = image; ... |
backgroundImage = image; | gBackgroundImage = image; | function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var retVal = true; var image = TrimString(gDialog.BackgroundImageInput.value); if (image) { backgroundImage = image; // Display must use absolute URL if p... |
else backgroundImage = null; | else gBackgroundImage = null; | function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var retVal = true; var image = TrimString(gDialog.BackgroundImageInput.value); if (image) { backgroundImage = image; // Display must use absolute URL if p... |
var image = gDialog.BackgroundImageInput.value.trimString(); | var image = TrimString(gDialog.BackgroundImageInput.value); | function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var image = gDialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = image; // Append image sty... |
ValidateNumber("CellHeightInput", dialog.CellHeightUnits, | ValidateNumber(dialog.CellHeightInput, dialog.CellHeightUnits, | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Cell... |
if (error) return false; | if (gValidationError) return false; | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Cell... |
ValidateNumber("CellWidthInput", dialog.CellWidthUnits, | ValidateNumber(dialog.CellWidthInput, dialog.CellWidthUnits, | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Cell... |
ValidateNumber("RowSpanInput", null, | ValidateNumber(dialog.RowSpanInput, null, | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Cell... |
ValidateNumber("ColSpanInput", null, | ValidateNumber(dialog.ColSpanInput, null, | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Cell... |
SwitchValidatePanel(validatePanel) | SwitchPanel(validatePanel); | function ValidateCellData(){ validatePanel = CellPanel; var temp; temp = ValidateNumber("CellHeightInput", dialog.TableHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; temp = ValidateNumber("CellWidthInput", dialog.TableWidthUnits, ... |
gColor = gColor.trimString().toLowerCase(); | gColor = TrimString(gColor).toLowerCase(); | function ValidateData(){ if (LastPickedIsDefault) gColor = LastPickedColor; else gColor = gDialog.ColorInput.value; gColor = gColor.trimString().toLowerCase(); // TODO: Validate the color string! if (NoDefault && !gColor) { ShowInputErrorMessage(GetString("NoColorError")); SetTextboxFocus(gDialog.Co... |
shading = false; | function ValidateData(setAttributes){ // Height is always pixels height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels); if (height == "") { // Set focus to the offending control dump("Height is empty\n"); dialog.heightInput.focus(); return false; } dump("Setting height="+height+"\n"); ... | |
globalElement.setAttribute(textStr, dialog.textColor); globalElement.setAttribute(linkStr, dialog.linkColor); globalElement.setAttribute(vlinkStr, dialog.visitedLinkColor); globalElement.setAttribute(alinkStr, dialog.activeLinkColor); globalElement.setAttribute(bgcolorStr, dialog.backgroundColor); | globalElement.setAttribute(textStr, customTextColor); globalElement.setAttribute(linkStr, customLinkColor); globalElement.setAttribute(vlinkStr, customVisitedColor); globalElement.setAttribute(alinkStr, customActiveColor); globalElement.setAttribute(bgcolorStr, customBackgroundColor); | function ValidateData(){ // Colors values are updated as they are picked, no validation necessary if (dialog.DefaultColorsRadio.checked) { globalElement.removeAttribute(textStr); globalElement.removeAttribute(linkStr); globalElement.removeAttribute(vlinkStr); globalElement.removeAttribute(alinkStr); g... |
if (ValidateImage()) | if (ValidateAndPreviewImage(true)) | function ValidateData(){ // Colors values are updated as they are picked, no validation necessary if (dialog.DefaultColorsRadio.checked) { globalElement.removeAttribute(textStr); globalElement.removeAttribute(linkStr); globalElement.removeAttribute(vlinkStr); globalElement.removeAttribute(alinkStr); g... |
globalElement.setAttribute(backgroundStr, dialog.BackgroundImage); } else { globalElement.removeAttribute(backgroundStr); return false; } | if (backgroundImage) { globalElement.setAttribute(backgroundStr, backgroundImage); } else { globalElement.removeAttribute(backgroundStr); return false; } } | function ValidateData(){ // Colors values are updated as they are picked, no validation necessary if (dialog.DefaultColorsRadio.checked) { globalElement.removeAttribute(textStr); globalElement.removeAttribute(linkStr); globalElement.removeAttribute(vlinkStr); globalElement.removeAttribute(alinkStr); g... |
dump("Width is empty\n"); | function ValidateData(setAttributes){ // Height is always pixels height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels); if (height == "") { // Set focus to the offending control dialog.heightInput.focus(); return false; } dump("Setting height="+height+"\n"); if (setAttributes) { hLineE... | |
dump("Height="+height+" Width="+width+"\n"); | dump("HLine: Height="+height+" Width="+width+"\n"); | function ValidateData(){ // Height is always pixels height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels); if (height == "") { // Set focus to the offending control dump("Height is empty\n"); dialog.heightInput.focus(); return false; } dump("Setting height="+height+"\n"); globalElement... |
var src = gDialog.srcInput.value.trimString(); | var src = TrimString(gDialog.srcInput.value); | function ValidateData(){ if ( !IsValidImage(gDialog.srcInput.value)) { AlertWithTitle(null, GetString("MissingImageError")); window.focus(); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = gDialo... |
if (gDialog.centerAlign.checked) { | if (gDialog.centerAlign.selected) { | function ValidateData(){ // Height is always pixels height = ValidateNumber(gDialog.heightInput, null, 1, maxPixels, globalElement, "size", false); if (gValidationError) return false; width = ValidateNumber(gDialog.widthInput, gDialog.pixelOrPercentMenulist, 1, maxPixels, ... |
} else if (gDialog.rightAlign.checked) { | } else if (gDialog.rightAlign.selected) { | function ValidateData(){ // Height is always pixels height = ValidateNumber(gDialog.heightInput, null, 1, maxPixels, globalElement, "size", false); if (gValidationError) return false; width = ValidateNumber(gDialog.widthInput, gDialog.pixelOrPercentMenulist, 1, maxPixels, ... |
if (backgroundImage) globalElement.setAttribute(backgroundStr, backgroundImage); | if (gBackgroundImage) globalElement.setAttribute(backgroundStr, gBackgroundImage); | function ValidateData(){ // Colors values are updated as they are picked, no validation necessary if (gDialog.DefaultColorsRadio.selected) { globalElement.removeAttribute(textStr); globalElement.removeAttribute(linkStr); globalElement.removeAttribute(vlinkStr); globalElement.removeAttribute(alinkStr); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.