rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var currCol; | function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum... | |
currCol = gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort | var dbview = GetDBView(); var currCol = dbview.viewFlags & nsMsgViewFlagsType.kGroupBySort | function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum... |
if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort) | if (dbview.viewFlags & nsMsgViewFlagsType.kGroupBySort) | function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum... |
if (!(gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort)) | if (!(dbview.viewFlags & nsMsgViewFlagsType.kGroupBySort)) | function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum... |
if ((GetDBView().viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && !groupedBySortUsingDummyRow()) { | if ((dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && !groupedBySortUsingDummyRow()) { | function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum... |
return; | function updateStatusBar(){ // Reset the coalesce flag. gSelectionListener.timeout = 0; var statusBarField = document.getElementById("statusbar-line-col"); var selection = window._content.getSelection(); if (!selection.focusNode) { statusBarField.label = ''; return; } if (selection.focusNode.nodeType != No... | |
return; | function updateStatusBar(){ // Reset the coalesce flag. gSelectionListener.timeout = 0; var statusBarField = document.getElementById("statusbar-line-col"); var selection = window._content.getSelection(); if (!selection.focusNode) { statusBarField.label = ''; return; } if (selection.focusNode.nodeType != No... | |
var selection = window._content.getSelection(); | var selection = window.content.getSelection(); | function updateStatusBar(){ // Reset the coalesce flag. gSelectionListener.timeout = 0; var statusBarField = document.getElementById("statusbar-line-col"); var selection = window._content.getSelection(); if (!selection.focusNode) { statusBarField.label = ''; return; } if (selection.focusNode.nodeType != No... |
if (statusTextFld.getAttribute("value") != text) { statusTextFld.setAttribute("value", text); | if (statusTextFld.label != text) { statusTextFld.label = text; | updateStatusField : function() { var text = this.overLink || this.status || this.jsStatus || this.jsDefaultStatus || this.defaultStatus; if (!statusTextFld) statusTextFld = document.getElementById("statusbar-display"); // check the current value so we don't trigger an attribute change // and cause n... |
Bundle.formatStringFromName("unreadMsgStatus", [ folder.getNumUnread(false)], 1); | gMessengerBundle.getFormattedString("unreadMsgStatus", [ folder.getNumUnread(false)]); | function UpdateStatusMessageCounts(folder){ var unreadElement = GetUnreadCountElement(); var totalElement = GetTotalCountElement(); if(folder && unreadElement && totalElement) { var numUnread = Bundle.formatStringFromName("unreadMsgStatus", [ folder.getNumUnread(false)... |
Bundle.formatStringFromName("totalMsgStatus", [folder.getTotalMessages(false)], 1); | gMessengerBundle.getFormattedString("totalMsgStatus", [folder.getTotalMessages(false)]); | function UpdateStatusMessageCounts(folder){ var unreadElement = GetUnreadCountElement(); var totalElement = GetTotalCountElement(); if(folder && unreadElement && totalElement) { var numUnread = Bundle.formatStringFromName("unreadMsgStatus", [ folder.getNumUnread(false)... |
unreadElement.setAttribute("value", numUnread); totalElement.setAttribute("value", numTotal); | unreadElement.setAttribute("label", numUnread); totalElement.setAttribute("label", numTotal); | function UpdateStatusMessageCounts(folder){ var unreadElement = GetUnreadCountElement(); var totalElement = GetTotalCountElement(); if(folder && unreadElement && totalElement) { var numUnread = gMessengerBundle.getFormattedString("unreadMsgStatus", [ folder.get... |
var toolbar = document.getElementById("statusText"); | var toolbar = document.getElementById("structToolbar"); | function UpdateStructToolbar(){ var editor = GetCurrentEditor(); if (!editor) return; var mixed = GetSelectionContainer(); if (!mixed) return; var element = mixed.node; var oneElementSelected = mixed.oneElementSelected; if (!element) return; if (element == gLastFocusNode && oneElementSelected == gLastFocus... |
var i; for (i = childNodesLength-1; i >= 0; i--) { | for (var i = childNodesLength - 2; i >= 0; i--) { | function UpdateStructToolbar(){ var editor = GetCurrentEditor(); if (!editor) return; var mixed = GetSelectionContainer(); if (!mixed) return; var element = mixed.node; var oneElementSelected = mixed.oneElementSelected; if (!element) return; if (element == gLastFocusNode && oneElementSelected == gLastFocus... |
button.setAttribute("style", "font-weight: bold"); | button.setAttribute("checked", "true"); | function UpdateStructToolbar(){ var editor = GetCurrentEditor(); if (!editor) return; var mixed = GetSelectionContainer(); if (!mixed) return; var element = mixed.node; var oneElementSelected = mixed.oneElementSelected; if (!element) return; if (element == gLastFocusNode && oneElementSelected == gLastFocus... |
for (var i = childNodesLength - 2; i >= 0; i--) { toolbar.removeChild(childNodes.item(i)); | while (childNodes.length > 1) { toolbar.removeChild(childNodes.item(childNodes.length - 2)); | function UpdateStructToolbar(){ var editor = GetCurrentEditor(); if (!editor) return; var mixed = GetSelectionContainer(); if (!mixed) return; var element = mixed.node; var oneElementSelected = mixed.oneElementSelected; if (!element) return; if (element == gLastFocusNode && oneElementSelected == gLastFocus... |
textZoomOther.setAttribute("value", label.replace(/%zoom%/, zoom.factorOther)); textZoomOther.setAttribute("data", zoom.factorOther); | textZoomOther.setAttribute("label", label.replace(/%zoom%/, zoom.factorOther)); textZoomOther.setAttribute("value", zoom.factorOther); | function updateTextZoomMenu(){ var zoom = ZoomManager.prototype.getInstance(); var currentZoom = zoom.textZoom; var textZoomOther = document.getElementById("menu_textZoomOther"); var label = zoom.bundle.getString("labelOther"); textZoomOther.setAttribute("value", label.replace(/%zoom%/, zoom.factorOther)); textZo... |
if (item.getAttribute("data") == currentZoom) | if (item.getAttribute("value") == currentZoom) | function updateTextZoomMenu(){ var zoom = ZoomManager.prototype.getInstance(); var currentZoom = zoom.textZoom; var textZoomOther = document.getElementById("menu_textZoomOther"); var label = zoom.bundle.getString("labelOther"); textZoomOther.setAttribute("value", label.replace(/%zoom%/, zoom.factorOther)); textZo... |
var tstring = ""; var o = new Object(); getObjectDetails (client.currentObject, o); | var tstring; var o = getObjectDetails (client.currentObject); | 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... |
case "IRCServer": | 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... | |
var serv = "", nick = ""; | var serv = "", port = "", nick = ""; | 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... |
serv = o.server.connection.host; | serv = o.server.connection.host; port = o.server.connection.port; | 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 (nick) tstring += "user '" + nick + "' "; if (net) if (serv) tstring += "attached to '" + net + "' via " + serv; else if (o.network.connecting) tstring += "attaching to '" + net + "'"; else tstring += "no longer attached to '" + net + "'"; if (tstring) tstring = "ChatZilla: " + tstring; | 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... | |
tstring = "ChatZilla!!"; | { nick = client.currentObject.INITIAL_NICK; tstring = getMsg("updateTitleNetwork2", [nick, net]); } | 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... |
var chan = "(none)", mode = "", topic = ""; | var chan = "", mode = "", topic = ""; var nick = o.parent.me ? o.parent.me.properNick : getMsg ("updateTitleNoNick"); | 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 (client.uiState["toolbar"]) topic = o.channel.topic ? " " + o.channel.topic : " --no topic--"; | if (!mode) mode = getMsg("updateTitleNoMode"); topic = o.channel.topic ? o.channel.topic : getMsg("updateTitleNoTopic"); | 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 (!mode) mode = "no mode"; tstring = "ChatZilla: " + chan + " (" + mode + ") " + topic; | tstring = getMsg("updateTitleChannel", [nick, chan, mode, topic]); | 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... |
tstring = "ChatZilla: Conversation with " + client.currentObject.properNick; | tstring = getMsg("updateTitleUser", client.currentObject.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... |
tstring = "ChatZilla!"; | tstring = getMsg("updateTitleUnknown"); | 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... |
tstring += " -- Activity [" + actl.join (", ") + "]"; | tstring = getMsg("updateTitleWithActivity", [tstring, actl.join (", ")]); | 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... |
chan = o.channel.name; | chan = o.channel.unicodeName; | function updateTitle (obj){ if (!("currentObject" in client) || (obj && obj != client.currentObject)) return; var tstring; var o = getObjectDetails (client.currentObject); var net = "network" in o ? o.network.name : ""; var nick = ""; switch (client.currentObject.TYPE) { case "IRC... |
element.setAttribute("tooltiptext", message); | if (element) element.setAttribute("tooltiptext", message); | updateUnreadCount: function () {#ifdef XP_WIN var shell = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIWindowsShellService); var unreadCount = shell.unreadMailCount; var message = gNavigatorBundle.getFormattedString("mailUnreadToolt... |
var node; var sortDirection; | var node, chan; | function updateUserList(){ var node; var sortDirection; node = document.getElementById("user-list"); if (!node.view) return; const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; var xulSortService = Components.... |
const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; | if (("currentObject" in client) && client.currentObject && client.currentObject.TYPE == "IRCChannel") { chan = client.currentObject; chan.userlistSelection = getSelectedNicknames(node, chan); } reSortUserlist(node); | function updateUserList(){ var node; var sortDirection; node = document.getElementById("user-list"); if (!node.view) return; const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; var xulSortService = Components.... |
var xulSortService = Components.classes[isupports_uri].getService(nsIXULSortService); if (!xulSortService) return; var sortResource; if (client.prefs["sortUsersByMode"]) sortResource = RES_PFX + "sortname"; else sortResource = RES_PFX + "nick"; try { if ("sort" in xulSortService) xulSortService.sort(node, sortResour... | if (chan) setSelectedNicknames(node, client.currentObject.userlistSelection); | function updateUserList(){ var node; var sortDirection; node = document.getElementById("user-list"); if (!node.view) return; const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; var xulSortService = Components.... |
textZoomMenu.setAttribute("value", menuLabel); | textZoomMenu.setAttribute("label", menuLabel); | function updateViewMenu(){ var zoom = ZoomManager.prototype.getInstance(); var textZoomMenu = document.getElementById("menu_textZoom"); var menuLabel = zoom.bundle.getString("menuLabel").replace(/%zoom%/, zoom.textZoom); textZoomMenu.setAttribute("value", menuLabel);} |
var folderPaneUIVersion = pref.GetIntPref("mail.ui.folderpane.version"); | var folderPaneUIVersion = pref.getIntPref("mail.ui.folderpane.version"); | function UpgradeFolderPaneUI(){ var folderPaneUIVersion = pref.GetIntPref("mail.ui.folderpane.version"); if (folderPaneUIVersion == 1) { var folderUnreadCol = document.getElementById("folderUnreadCol"); folderUnreadCol.setAttribute("hidden", "true"); var folderTotalCol = document.getElementById("folderTotalC... |
pref.SetIntPref("mail.ui.folderpane.version", 2); | pref.setIntPref("mail.ui.folderpane.version", 2); | function UpgradeFolderPaneUI(){ var folderPaneUIVersion = pref.GetIntPref("mail.ui.folderpane.version"); if (folderPaneUIVersion == 1) { var folderUnreadCol = document.getElementById("folderUnreadCol"); folderUnreadCol.setAttribute("hidden", "true"); var folderTotalCol = document.getElementById("folderTotalC... |
dialog.init(fileURL, targetURI, leafName, null, Date.now()*1000, persist); | dialog.init(fileURL, targetURI, leafName, null, Date.now()*1000, null, persist); | function uploadFile(fileURL){ const CI = Components.interfaces; var targetBaseURI = getCurrentURI(); // generate the target URI. we use fileURL.file.leafName to get the // unicode value of the target filename w/o any URI-escaped chars. // this gives the protocol handler the best chance of generating a // properl... |
if (pref.GetBoolPref("browser.urlbar.clickSelectsAll")) | if (pref.getBoolPref("browser.urlbar.clickSelectsAll")) | function URLBarBlurHandler(aEvent){ if (pref.GetBoolPref("browser.urlbar.clickSelectsAll")) gURLBar.setSelectionRange(0, 0);} |
if(gURLBar.value.substring(0,3)=="sb:") { DoBrowserRSS(gURLBar.value.split("sb:")[1]); return; } | function URLBarEntered(){ try { if (!gURLBar) return; var url = gURLBar.value; if (gURLBar.value == "" || gURLBar.value == null) return; var fixedUpURI = gURIFixup.createFixupURI(url, 2 /*fixup url*/ ); gGlobalHistory.markPageAsTyped(fixedUpURI); gURLBar.value = fixedUpURI.spec; ... | |
if (aEvent.button == 0 && pref.GetBoolPref("browser.urlbar.clickSelectsAll")) { | if (aEvent.button == 0 && pref.getBoolPref("browser.urlbar.clickSelectsAll")) { | function URLBarMouseupHandler(aEvent){ if (aEvent.button == 0 && pref.GetBoolPref("browser.urlbar.clickSelectsAll")) { var selectionLen = gURLBar.selectionEnd - gURLBar.selectionStart; if (selectionLen == 0) gURLBar.setSelectionRange(0, gURLBar.textLength); }} |
this.ioService_ = Cc["@mozilla.org/network/io-service;1"] .getService(Ci.nsIIOService); | function UrlClassifierTableDomain() { UrlClassifierTable.call(this); this.debugZone = "urlclassifier-table-domain";} | |
dump(" *** customTextColor="+customTextColor+",customLinkColor="+customLinkColor+", customActiveColor="+customActiveColor+", customVisitedColor="+customVisitedColor+", customBackgroundColor="+customBackgroundColor+"\n"); | function UseCustomColors(){ SetElementEnabledById("TextButton", true); SetElementEnabledById("LinkButton", true); SetElementEnabledById("ActiveLinkButton", true); SetElementEnabledById("VisitedLinkButton", true); SetElementEnabledById("BackgroundButton", true); SetElementEnabledById("Text", true); SetElementEnab... | |
return false; | function userIsMe (user){ switch (user.TYPE) { case "IRCUser": return (user == user.parent.me); break; case "IRCChanUser": return (user.__proto__ == user.parent.parent.me); break; default: return false; ... | |
dd (String(bot.ownerPatterns[p]) + " fails."); | { dd(String(bot.ownerPatterns[p]) + " fails."); } } | function userIsOwner (user){ if (!user.host) { /* we havn't got any information on this user yet. They havn't spoken * yet, and we havn't /whoi's them yet. Say no for now, but do the * /whois so we'll know for sure next time. */ if (user.TYPE == "IRCChanUser") u... |
win.reportCallBack = function (testwin) { if (testwin.wrappedJSObject) { testwin = testwin.wrappedJSObject; } var testcases = testwin.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('testname: ' + testcase.name + ' ' + 'bug: ' + testcase.bugnumber + ' ' + (testcase.... | 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; };// only report failures win.document.forms.testCases.fai... | |
win.reportCallBack = function (testwin) { if (testwin.wrappedJSObject) { testwin = testwin.wrappedJSObject; } var testcases = testwin.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('testname: ' + testcase.name + ' ' + 'bug: ' + testcase.bugnumber + ' ' + (testcase.... | 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; };// only report failures win.document.forms.testCases.fai... | |
this.displayName = nick; | function usr_changenick (nick){ this.properNick = nick; this.nick = this.parent.toLowerCase(nick);} | |
this.parent.messageTo(type, this.name, fromUnicode(msg, this), code); | this.parent.ctcpTo(this.nick, fromUnicode(code, this), fromUnicode(msg, this), type); | function usr_ctcp (code, msg, type){ msg = msg || ""; type = type || "PRIVMSG"; this.parent.messageTo(type, this.name, fromUnicode(msg, this), code);} |
var el = document.createElement ("html:span"); | var el = document.createElement ("box"); | function usr_decoratednick(){ if (!this.decoNick) { var pfx; var el = document.createElement ("html:span"); el.setAttribute ("align", "horizontal"); if (this.TYPE == "IRCChanUser") { /* var img = document.createElement ("menubutton"); img... |
"label")); | "")); */ | function usr_decoratednick(){ if (!this.decoNick) { var pfx; var el = document.createElement ("html:span"); el.setAttribute ("align", "horizontal"); if (this.TYPE == "IRCChanUser") { /* var img = document.createElement ("menubutton"); img... |
dd ("** gdn: returning " + this.decoNick); | function usr_decoratednick(){ if (!this.decoNick) { var pfx; var el = document.createElement ("html:span"); el.setAttribute ("align", "horizontal"); if (this.TYPE == "IRCChanUser") { /* var img = document.createElement ("menubutton"); img... | |
this.parent.whois(this.encodedName); | this.parent.whois(this.unicodeName); | function usr_whois (){ this.parent.whois(this.encodedName);} |
prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal); | function utilityOnLoad(aEvent){ var broadcaster = document.getElementById("Communicator:WorkMode"); if (!broadcaster) return; var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.addObserver(offlineObserver, "network:offli... | |
prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal); | prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranch2); | function utilityOnLoad(aEvent){ var broadcaster = document.getElementById("Communicator:WorkMode"); if (!broadcaster) return; var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.addObserver(offlineObserver, "network:offli... |
prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal); | function utilityOnUnload(aEvent) { var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.removeObserver(offlineObserver, "network:offline-status-changed"); var prefService = Components.classes["@mozilla.org/preferences-service;1"];... | |
prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranchInternal); | prefBranch = prefBranch.QueryInterface(Components.interfaces.nsIPrefBranch2); | function utilityOnUnload(aEvent) { var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.removeObserver(offlineObserver, "network:offline-status-changed"); var prefService = Components.classes["@mozilla.org/preferences-service;1"];... |
function UUEncodeMenuSelect() | function UUEncodeMenuSelect(target) | function UUEncodeMenuSelect(){ if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { if (msgCompFields.GetUUEncodeAttachments()) { dump("Set Return UUEncodeAttachments to FALSE\n"); msgCompFields.SetUUEncodeAttachments(false); } else { dump("Set Return UUEncodeAttachmen... |
{ if (msgCompFields.GetUUEncodeAttachments()) { dump("Set Return UUEncodeAttachments to FALSE\n"); | if (target.getAttribute("checked") == "true") msgCompFields.SetUUEncodeAttachments(true); else | function UUEncodeMenuSelect(){ if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { if (msgCompFields.GetUUEncodeAttachments()) { dump("Set Return UUEncodeAttachments to FALSE\n"); msgCompFields.SetUUEncodeAttachments(false); } else { dump("Set Return UUEncodeAttachmen... |
} else { dump("Set Return UUEncodeAttachments to TRUE\n"); msgCompFields.SetUUEncodeAttachments(true); } } | function UUEncodeMenuSelect(){ if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { if (msgCompFields.GetUUEncodeAttachments()) { dump("Set Return UUEncodeAttachments to FALSE\n"); msgCompFields.SetUUEncodeAttachments(false); } else { dump("Set Return UUEncodeAttachmen... | |
var alertText = Bundle.GetStringFromName("enterValidHostname"); | var alertText = gPrefsBundle.getString("enterValidHostname"); | function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex... |
alertText = Bundle.GetStringFromName("accountExists"); | alertText = gPrefsBundle.getString("accountExists"); | function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex... |
var alertText = Bundle.GetStringFromName("enterAccountName"); | var alertText = gPrefsBundle.getString("enterAccountName"); | function validate() { var accountname = document.getElementById("prettyName").value; if (!accountname || accountname =="") { var alertText = Bundle.GetStringFromName("enterAccountName"); window.alert(alertText); return false; } return true;} |
var alertText = Bundle.GetStringFromName("enterName"); | var alertText = gPrefsBundle.getString("enterName"); | function validate(data){ var name = document.getElementById("fullName").value; if (! name || name=="") { var alertText = Bundle.GetStringFromName("enterName"); window.alert(alertText); return false; } if (!validateEmail()) return false; parent.UpdateWizardMap(); return true;} |
if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { | if ((servername && hostnameIsIllegal(servername.value)) || (smtpserver && hostnameIsIllegal(smtpserver.value))) { | function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = gPrefsBundle.getString("enterValidHostname"); window.alert(alertText)... |
window.alert("Please enter a valid hostname"); | var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertText); | function validate() { var servername = document.getElementById("server.hostName").value; var smtpserver = document.getElementById("smtp.hostname").value; if (!servername || !smtpserver || servername == "" || smtpserver=="") { window.alert("Please enter a valid hostname"); return false; } return true;} |
window.alert("Please enter your name."); | var alertText = Bundle.GetStringFromName("enterName"); window.alert(alertText); | function validate(data){ var email = document.getElementById("identity.email").value; var name = document.getElementById("identity.fullName").value; if (! name || name=="") { window.alert("Please enter your name."); return false; } var emailArray = email.split('@'); if (emailArray.length != 2 || emailA... |
window.alert("Please enter a valid email address."); | var alertText = Bundle.GetStringFromName("enterValidEmail"); window.alert(alertText); | function validate(data){ var email = document.getElementById("identity.email").value; var name = document.getElementById("identity.fullName").value; if (! name || name=="") { window.alert("Please enter your name."); return false; } var emailArray = email.split('@'); if (emailArray.length != 2 || emailA... |
var alertText = Bundle.GetStringFromName("enterUserName"); | var alertText = gPrefsBundle.getString("enterUserName"); | function validate() { var username = document.getElementById("username").value; if (protocolinfo && protocolinfo.requiresUsername && (!username || username == "")) { var alertText = Bundle.GetStringFromName("enterUserName"); window.alert(alertText); return false; } var pageData = parent.GetPageData(... |
alertText = Bundle.GetStringFromName("accountExists"); | alertText = gPrefsBundle.getString("accountExists"); | function validate() { var username = document.getElementById("username").value; if (protocolinfo && protocolinfo.requiresUsername && (!username || username == "")) { var alertText = Bundle.GetStringFromName("enterUserName"); window.alert(alertText); return false; } var pageData = parent.GetPageData(... |
dump(" *** Setting default image ="+backgroundImage+"\n"); | function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var image = dialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = image; // Append image styl... | |
var hAlign = dialog.CellHAlignList.selectedItem.data; | var hAlign = dialog.CellHAlignList.selectedItem.value; | 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("Cel... |
SetAlign("CellVAlignList", defVAlign, globalCellElement, "valign"); | SetAlign("CellVAlignList", "", globalCellElement, "valign"); | 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("Cel... |
SetAlign("CellVAlignList", defVAlign, globalCellElement, "valign"); | 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("Cel... | |
if (dialog.CellImageCheckbox.checked) { var imageName = dialog.TableImageInput.value.trimString(); if (imageName && imageName != "") { if (IsValidImage(imageName)) globalCellElement.background = imageName; else { dialog.CellImageInput.focus(); SwitchPanel(validatePanel); ShowInputErrorMessage(GetString("MissingImageEr... | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.TableHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Ce... | |
globalCellElement.removeAttribute("nowrap"); | gEditor.removeAttributeOrEquivalent(globalCellElement, "nowrap", true); | function ValidateCellData(){ gValidateTab = gDialog.CellTab; if (gDialog.CellHeightCheckbox.checked) { ValidateNumber(gDialog.CellHeightInput, gDialog.CellHeightUnits, 1, gMaxTableSize, globalCellElement, "height"); if (gValidationError) return false; } if (gDialog.CellWidthCheckbox.checke... |
dump("Empty HREF error\n"); | function ValidateData(){ href = hrefInput.value.trimString(); if (href.length > 0) { // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true globalElement.setAttribute("href",href); dump("HREF:"+href+"|\n"); } else if (insertNew) { // We must... | |
hLineElement.setAttribute("height", height); | hLineElement.setAttribute("size", height); | 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... |
switch ( dialog.alignTypeSelect.data ) { case "top": case "center": case "right": case "left": globalElement.setAttribute( "align", dialog.alignTypeSelect.data ); | switch ( dialog.alignTypeSelect.value ) { case "top": case "center": case "right": case "left": globalElement.setAttribute( "align", dialog.alignTypeSelect.value ); | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); 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 = dialog.srcInput.value.tri... |
dialog.columnsInput.focus(); | SetTextfieldFocus(dialog.columnsInput); | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to th... |
ShowInputErrorMessage("\""+name+"\" "+GetString("DuplicateAnchorNameError")); | ShowInputErrorMessage(GetString("DuplicateAnchorNameError").replace(/%name%/,name)); | function ValidateData(){ var name = TrimString(nameInput.value); if (name.length == 0) { ShowInputErrorMessage(GetString("MissingAnchorNameError")); nameInput.focus(); return false; } else { // Replace spaces with "_" else it causes trouble in URL parsing name = PrepareStringForURL(name); if ... |
isPercentWidth = (dialog.widthUnitsSelect.selectedIndex == 1); isPercentHeight = (dialog.heightUnitsSelect.selectedIndex == 1); | isPercentWidth = (dialog.widthUnitsMenulist.selectedIndex == 1); isPercentHeight = (dialog.heightUnitsMenulist.selectedIndex == 1); | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); 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 = dialog.srcInput.value.tri... |
var type = 0; dump("Global List element="+globalElement+" should be type: "+ListType+"\n"); if (globalElement) { if (ListType == "ul") { switch (BulletStyleList.selectedIndex) { case 1: type = "circle"; break; case 2: type = "square"; break; } if (type) globalElement.setAttribute("type",type); else globalElement.re... | function ValidateData(){ return true;} | |
var alt = dialog.altTextInput.value.trimString(); | var alt = dialog.altTextInput.value; | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); 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 = dialog.srcInput.value.tri... |
dialog.widthInput.focus(); | SetTextfieldFocus(dialog.widthInput); | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); 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 = dialog.srcInput.value.tri... |
dialog.heightInput.focus(); | SetTextfieldFocus(dialog.heightInput); | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); 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 = dialog.srcInput.value.tri... |
var isPercent = (dialog.pixelOrPercentSelect.selectedIndex == 1); | var isPercent = (dialog.pixelOrPercentMenulist.selectedIndex == 1); | 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... |
name = ReplaceWhitespace(name, "_"); | name = PrepareStringForURL(name); | function ValidateData(){ var name = TrimString(nameInput.value); if (name.length == 0) { ShowInputErrorMessage(GetString("MissingAnchorNameError")); nameInput.focus(); return false; } else { // Replace spaces with "_" else it causes trouble in URL parsing name = ReplaceWhitespace(name, "_"); ... |
nameInput.focus(); | SetTextfieldFocus(nameInput); | function ValidateData(){ var name = TrimString(nameInput.value); if (name.length == 0) { ShowInputErrorMessage(GetString("MissingAnchorNameError")); nameInput.focus(); return false; } else { // Replace spaces with "_" and strip other characters // Note: we could use ConvertAndEscape, but then we... |
if (percentChar == "%") { | if (isPercent) { | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to the ... |
if (widthText != "") { widthText += percentChar; dump("Table Width="+widthText+"\n"); | if (widthText) { if (isPercent) widthText += "%"; | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to the ... |
isPercent = (dialog.heightPixelOrPercentMenulist.selectedIndex == 1); var heightText = TrimString(dialog.heightInput.value); if (heightText.length > 0) { if (isPercent) maxLimit = 100; else maxLimit = maxPixels; heightText = ValidateNumberString(heightText, 1, maxLimit); if (heightText.length == 0) return false; if ... | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to th... | |
dialog.heightInput.focus(); | SetTextfieldFocus(dialog.heightInput); | 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"); SetTextfieldFocus(dialog.heightInput); dialog.heightInput.focus(); return false; } dump("Set... |
dialog.widthInput.focus(); | SetTextfieldFocus(dialog.widthInput); | 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"); SetTextfieldFocus(dialog.heightInput); dialog.heightInput.focus(); return false; } dump("Set... |
ShowInputErrorMessage(GetString("GetInputError")); dialog.linkTextInput.focus(); | ShowInputErrorMessage(GetString("EmptyLinkTextError")); SetTextfieldFocus(dialog.linkTextInput); | function ValidateData(){ href = dialog.hrefInput.value.trimString(); if (href.length > 0) { // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true globalElement.setAttribute("href",href); } else if (insertNew) { // We must have a URL to inse... |
dump("Table Editing:ValidateData()\n"); | var result; var savePanel = currentPanel; if (currentPanel == TablePanel) { result = ValidateTableData(); if (result) result = ValidateCellData(); } else { result = ValidateCellData(); if (result) result = ValidateTableData(); } if(!result) return false; currentPanel = savePanel; if(currentPanel == TablePanel) gl... | function ValidateData(){ dump("Table Editing:ValidateData()\n"); return true;} |
window.sizeToContent(); | function ValidateData(){ href = hrefInput.value.trimString(); if (href.length > 0) { // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true globalElement.setAttribute("href",href); dump("HREF:"+href+"|\n"); } else if (insertNew) { // We must... | |
dump("Validate width. PercentChar="+percentChar+"\n"); if (percentChar == "%") { | if (isPercent) { | 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... |
width = width + percentChar; | if (isPercent) width = width + "%"; | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.