rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
this.name = ''; this.needsUpdate = false; | function UrlClassifierTableDomain() { G_Map.call(this); this.debugZone = "trtable-domain";} | |
G_Map.call(this); | function UrlClassifierTableEnchash() { G_Map.call(this); this.debugZone = "trtable-enchash"; this.enchashDecrypter_ = new PROT_EnchashDecrypter();} | |
this.dbservice = Cc["@mozilla.org/url-classifier/dbservice;1"] .getService(Ci.nsIUrlClassifierDBService); this.name = ''; this.needsUpdate = false; | function UrlClassifierTableEnchash() { G_Map.call(this); this.debugZone = "trtable-enchash"; this.enchashDecrypter_ = new PROT_EnchashDecrypter();} | |
G_Map.call(this); | function UrlClassifierTableUrl() { G_Map.call(this); this.debugZone = "trtable-url";} | |
this.dbservice_ = Cc["@mozilla.org/url-classifier/dbservice;1"] .getService(Ci.nsIUrlClassifierDBService); this.name = ''; this.needsUpdate = false; | function UrlClassifierTableUrl() { G_Map.call(this); this.debugZone = "trtable-url";} | |
var fileURL = Components.classes[nsStdURL_PROGID].createInstance().QueryInterface(nsIFileURL); | var fileURL = Components.classes[nsStdURL_CONTRACTID].createInstance().QueryInterface(nsIFileURL); | function URLpathToFile(aURLstr) { var fileURL = Components.classes[nsStdURL_PROGID].createInstance().QueryInterface(nsIFileURL); fileURL.spec = aURLstr; return fileURL.file;} |
var sourceWin = isDocumentFrame(focusedWindow) ? focusedWindow.location.href : focusedWindow._content.location.href; | var sourceURL = getContentFrameURI(focusedWindow); | 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.nsIScriptSecurityMa... |
var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"].getService(). QueryInterface(nsIScriptSecurityManager); | var secMan = Components.classes["@mozilla.org/scriptsecuritymanager;1"] .getService(nsIScriptSecurityManager); | 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.nsIScriptSecurityMa... |
secMan.checkLoadURIStr(sourceWin, url, nsIScriptSecurityManager.STANDARD); | secMan.checkLoadURIStr(sourceURL, url, nsIScriptSecurityManager.STANDARD); | 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.nsIScriptSecurityMa... |
if (message) DWRUtil._loadingMessage = message; else DWRUtil._loadingMessage = "Loading"; | var loadingMessage; if (message) loadingMessage = message; else loadingMessage = "Loading"; | DWRUtil.useLoadingMessage = function(message) { if (message) DWRUtil._loadingMessage = message; else DWRUtil._loadingMessage = "Loading"; DWREngine.setPreHook(DWRUtil._showLoadingMessage); DWREngine.setPostHook(DWRUtil._hideLoadingMessage);}; |
DWREngine.setPreHook(DWRUtil._showLoadingMessage); DWREngine.setPostHook(DWRUtil._hideLoadingMessage); }; | DWREngine.setPreHook(function() { var disabledZone = $('disabledZone'); if (!disabledZone) { disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.to... | DWRUtil.useLoadingMessage = function(message) { if (message) DWRUtil._loadingMessage = message; else DWRUtil._loadingMessage = "Loading"; DWREngine.setPreHook(DWRUtil._showLoadingMessage); DWREngine.setPostHook(DWRUtil._hideLoadingMessage);}; |
DWRUtil.useLoadingMessage = function() | DWRUtil.useLoadingMessage = function(message) | DWRUtil.useLoadingMessage = function(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.top = "0px"; disabledZone.styl... |
var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.top = "0px"; disabledZone.style.width = "100%"; disabledZone.style.height = "100%"; documen... | if (message) { DWRUtil._loadingMessage = message; } else { DWRUtil._loadingMessage = "Loading"; } | DWRUtil.useLoadingMessage = function(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.top = "0px"; disabledZone.styl... |
var messageZone = document.createElement('div'); messageZone.setAttribute('id', 'messageZone'); messageZone.style.position = "absolute"; messageZone.style.top = "0px"; messageZone.style.right = "0px"; messageZone.style.background = "red"; messageZone.style.color = "white"; messageZone.style.fontFamily = "Arial,Helvetic... | DWREngine.setPreHook(DWRUtil._showLoadingMessage); DWREngine.setPostHook(DWRUtil._hideLoadingMessage); | DWRUtil.useLoadingMessage = function(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.top = "0px"; disabledZone.styl... |
function useLoadingMessage() | DWRUtil.useLoadingMessage = function() | function useLoadingMessage(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.setAttribute('style', 'position:absolute; z-index:1000; left:0px; top:0px; width:100%; height:100%;'); document.body.appendChild(disabledZone); var messageZone = d... |
disabledZone.setAttribute('style', 'position:absolute; z-index:1000; left:0px; top:0px; width:100%; height:100%;'); | disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.top = "0px"; disabledZone.style.width = "100%"; disabledZone.style.height = "100%"; | function useLoadingMessage(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.setAttribute('style', 'position:absolute; z-index:1000; left:0px; top:0px; width:100%; height:100%;'); document.body.appendChild(disabledZone); var messageZone = d... |
messageZone.setAttribute('style', 'position:absolute; top:0px; left:500px; background:red; color:white; font-family:Arial,Helvetica,sans-serif; padding:4px;'); | messageZone.style.position = "absolute"; messageZone.style.top = "0px"; messageZone.style.right = "0px"; messageZone.style.background = "red"; messageZone.style.color = "white"; messageZone.style.fontFamily = "Arial,Helvetica,sans-serif"; messageZone.style.padding = "4px"; | function useLoadingMessage(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.setAttribute('style', 'position:absolute; z-index:1000; left:0px; top:0px; width:100%; height:100%;'); document.body.appendChild(disabledZone); var messageZone = d... |
dwrSetPreHook(showPleaseWait); dwrSetPostHook(hidePleaseWait) | DWREngine.setPreHook(showPleaseWait); DWREngine.setPostHook(hidePleaseWait) | function useLoadingMessage(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.setAttribute('style', 'position:absolute; z-index:1000; left:0px; top:0px; width:100%; height:100%;'); document.body.appendChild(disabledZone); var messageZone = d... |
DWREngine.hidePleaseWait(); | DWRUtil.hidePleaseWait(); | DWRUtil.useLoadingMessage = function(){ var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; disabledZone.style.left = "0px"; disabledZone.style.top = "0px"; disabledZone.styl... |
unregisterDialogCloser(); | function userOnAfterPage(){ dlog('userOnAfterPage'); unregisterDialogCloser(); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = functio... | |
unregisterDialogCloser(); | function userOnAfterPage(){ dlog('userOnAfterPage'); unregisterDialogCloser(); var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } win.__Report = win.reportHTML; win.reportHTML = function () { win.__Report(); gPageCompleted = true; }; win.reportCallBack = functio... | |
registerDialogCloser(); | function userOnBeforePage(){ dlog('userOnBeforePage'); registerDialogCloser();} | |
location.href = gotothisuri; | if (this.autosubmit == 1) location.href = gotothisuri; | this.useSuggestion = function() { if (this.highlighted > -1) { this.elem.value = this.eligible[this.highlighted]; var gotothisuri = this.actions[this.highlighted]; this.hideDiv(); //It's impossible to cancel the Tab key's default behavior. //So this undoes it by moving the focus back to our field right aft... |
this.parent.actTo (this.nick, msg); | this.parent.actTo(this.nick, fromUnicode(msg, this)); | function usr_act (msg){ this.parent.actTo (this.nick, msg);} |
if (!this.host) return this.unicodeName + "!*@*"; | function usr_banmask(){ var hostmask = this.host; if (!/^\d+\.\d+\.\d+\.\d+$/.test(hostmask)) hostmask = hostmask.replace(/^[^.]+/, "*"); else hostmask = hostmask.replace(/[^.]+$/, "*"); return "*!" + this.name + "@" + hostmask;} | |
if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; | msg = msg || ""; type = type || "PRIVMSG"; | function usr_ctcp (code, msg, type){ if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; this.parent.messageTo(type, this.name, fromUnicode(msg, this), code);} |
this.parent.messageTo (type, this.name, msg, code); | this.parent.messageTo(type, this.name, fromUnicode(msg, this), code); | function usr_ctcp (code, msg, type){ if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; this.parent.messageTo (type, this.name, msg, code);} |
if (o.server.isConnected && | if (o.server && o.server.isConnected && | function usr_display(message, msgtype, sourceObj, destObj){ if ("messages" in this) { this.displayHere (message, msgtype, sourceObj, destObj); } else { var o = getObjectDetails(client.currentObject); if (o.server.isConnected && o.network == this.parent.parent && ... |
return this.parent.getURL() + this.nick + "/"; | return this.parent.getURL() + this.nick + ",isnick"; | function usr_geturl (){ return this.parent.getURL() + this.nick + "/";} |
if (!this.rdfRes) | if (!("rdfRes" in this)) | function usr_graphres(){ if (this.TYPE != "IRCChanUser") dd ("** WARNING: cuser.getGraphResource called on wrong object **"); var rdf = client.rdf; if (!this.rdfRes) { if (!CIRCUser.nextResID) CIRCUser.nextResID = 0; this.rdfRes = rdf.GetResource (RES_PFX + "C... |
if (!CIRCUser.nextResID) | if (!("nextResID" in CIRCUser)) | function usr_graphres(){ if (this.TYPE != "IRCChanUser") dd ("** WARNING: cuser.getGraphResource called on wrong object **"); var rdf = client.rdf; if (!this.rdfRes) { if (!CIRCUser.nextResID) CIRCUser.nextResID = 0; this.rdfRes = rdf.GetResource (RES_PFX + "C... |
this.parent.noticeTo (this.nick, msg); | this.parent.noticeTo(this.nick, fromUnicode(msg, this)); | function usr_notice (msg){ this.parent.noticeTo (this.nick, msg);} |
this.parent.sayTo (this.nick, msg); | this.parent.sayTo(this.nick, fromUnicode(msg, this)); | function usr_say (msg){ this.parent.sayTo (this.nick, msg);} |
if (!this.rdfRes) | if (!("rdfRes" in this)) | function usr_updres(){ if (this.TYPE != "IRCChanUser") dd ("** WARNING: cuser.updateGraphResource called on wrong object **"); if (!this.rdfRes) this.getGraphResource(); var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.properNick)); if (this.name) ... |
var sortname = String.fromCharCode(90 - modeLevel) + "-" + this.unicodeName; | var sortname = (9 - modeLevel) + "-" + 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.resUniName, rdf.Get... |
var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); prefBranch.addObserver("network.proxy.type", proxyTypeObserver, false); | 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... | |
var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); prefBranch.removeObserver("network.proxy.type", proxyTypeObserver); | function utilityOnUnload(aEvent) { var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.removeObserver(offlineObserver, "network:offline-status-changed");} | |
return typeof h == 'undefined' && this.size() ? this.get(0).value : this.set( "value", h ); }, | return h == undefined && this.size() ? this.get(0).value : this.set( "value", h ); }, | val: function(h) { return typeof h == 'undefined' && this.size() ? this.get(0).value : this.set( "value", h ); }, |
var protocolinfo = Components.classes["component: | var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + serverType].getService(Components.interfaces.nsIMsgProtocolInfo); | 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... |
SetTextfieldFocus(dialog.BackgroundImageInput); | SetTextboxFocus(dialog.BackgroundImageInput); | 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... |
SetTextfieldFocus(dialog.BackgroundImageInput); | SetTextboxFocus(dialog.BackgroundImageInput); | function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var retVal = true; var image = dialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = image; ... |
if (gValidationError) return false; } if (dialog.RowSpanCheckbox.checked && dialog.RowSpanCheckbox.disabled != "true") { ValidateNumber(dialog.RowSpanInput, null, 0, rowCount, globalCellElement, "rowspan"); if (gValidationError) return false; } if (dialog.ColSpanCheckbox.checked && dialog.ColSpanCheckbox.getAttribute... | function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber(dialog.CellHeightInput, dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (gValidationError) return false; } if (dialog.CellWidthCheckbox.checked) { Vali... | |
ValidateNumber("CellHeightInput", dialog.TableHeightUnits, | ValidateNumber("CellHeightInput", dialog.CellHeightUnits, | 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... |
ValidateNumber("CellWidthInput", dialog.TableWidthUnits, | ValidateNumber("CellWidthInput", dialog.CellWidthUnits, | 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... |
rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { dialog.rowsInput.focus(); | rows = ValidateNumber(dialog.rowsInput, null, 1, maxRows, null, null, true) if (gValidationError) | 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... |
} | 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... | |
columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { SetTextboxFocus(dialog.columnsInput); | columns = ValidateNumber(dialog.columnsInput, null, 1, maxColumns, null, null, true) if (gValidationError) | 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... |
var borderText = TrimString(dialog.borderInput.value); if (borderText) { if (ValidateNumberString(borderText, 0, maxPixels)) globalElement.setAttribute("border", borderText); } | ValidateNumber(dialog.borderInput, null, 0, maxPixels, globalElement, "border", false); if (gValidationError) return false; | 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... |
var maxLimit; var isPercent = (dialog.widthPixelOrPercentMenulist.selectedIndex == 1); var widthText = TrimString(dialog.widthInput.value); if (widthText.length > 0) { if (isPercent) maxLimit = 100; else maxLimit = maxPixels; widthText = ValidateNumberString(widthText, 1, maxLimit); if (widthText.length == 0) return ... | ValidateNumber(dialog.widthInput, dialog.widthPixelOrPercentMenulist, 1, maxPixels, globalElement, "width", false); if (gValidationError) return false; | 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... |
SetTextfieldFocus(dialog.columnsInput); | SetTextboxFocus(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... |
var isPercentWidth, isPercentHeight; var maxLimitWidth, maxLimitHeight; | 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... | |
if (dialog.actualSizeRadio.checked) | if (!dialog.actualSizeRadio.checked) | 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... |
width = actualWidth ? actualWidth : ""; height = actualHeight ? actualHeight : ""; | width = ValidateNumber(dialog.widthInput, dialog.widthUnitsMenulist, 1, maxPixels, globalElement, "width", false, true); if (gValidationError) return false; height = ValidateNumber(dialog.heightInput, dialog.heightUnitsMenulist, 1, maxPixels, globalElement, "height", false, ture); if (gValidationError) return false; | 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... |
else { 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... | |
maxLimitWidth = isPercentWidth ? 100 : maxPixels; width = ValidateNumberString(dialog.widthInput.value, 1, maxLimitWidth); if (width == "") { if ( !SeeMore ) onMoreFewerImage(); SetTextboxFocus(dialog.widthInput); return false; } if (isPercentWidth) width = width + "%"; maxLimitHeight = isPercentHeight ? 100 : maxPixe... | 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 amount; if ( dialog.imagelrInput.value ) { amount = ValidateNumberString(dialog.imagelrInput.value, 0, maxPixels); if (amount == "") return false; globalElement.setAttribute( "hspace", amount ); } else globalElement.removeAttribute( "hspace" ); | 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... | |
if ( dialog.imagetbInput.value ) { var vspace = ValidateNumberString(dialog.imagetbInput.value, 0, maxPixels); if (vspace == "") return false; globalElement.setAttribute( "vspace", vspace ); } else globalElement.removeAttribute( "vspace" ); | ValidateNumber(dialog.imagelrInput, null, 0, maxPixels, globalElement, "hspace", false, true, true); if (gValidationError) return false; ValidateNumber(dialog.imagetbInput, null, 0, maxPixels, globalElement, "vspace", false, true); if (gValidationError) return false; | 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... |
if ( dialog.border.value ) { var border = ValidateNumberString(dialog.border.value, 0, maxPixels); if (border == "") return false; globalElement.setAttribute( "border", border ); } else globalElement.removeAttribute( "border" ); | ValidateNumber(dialog.border, null, 0, maxPixels, globalElement, "border", false, true); if (gValidationError) return false; | 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... |
{ | 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... | |
} else { | else | 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... |
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... | |
var isPercentWidth = (dialog.widthUnitsSelect.selectedIndex == 1); var maxLimitWidth = isPercentWidth ? 100 : maxPixels; var isPercentHeight = (dialog.heightUnitsSelect.selectedIndex == 1); var maxLimitHeight = isPercentHeight ? 100 : maxPixels; | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... | |
if ( dialog.customsizeRadio.checked ) | var isPercentWidth, isPercentHeight; var maxLimitWidth, maxLimitHeight; if ( SeeMore ) | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
width = ValidateNumberString(dialog.widthInput.value, 1, maxLimitWidth); | dialog.isCustomSize = dialog.customsizeRadio.checked; isPercentWidth = (dialog.widthUnitsSelect.selectedIndex == 1); isPercentHeight = (dialog.heightUnitsSelect.selectedIndex == 1); width = dialog.widthInput.value; height = dialog.heightInput.value; } else { var tailindex; width = globalElement.getAttribute( "width" ... | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
dump("Image Width is empty\n"); | if ( !SeeMore ) onMoreFewer(); | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
height = ValidateNumberString(dialog.heightInput.value, 1, maxLimitHeight); | maxLimitHeight = isPercentHeight ? 100 : maxPixels; height = ValidateNumberString(height, 1, maxLimitHeight); | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
dump("Image Height is empty\n"); | if ( !SeeMore ) onMoreFewer(); | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
if ( dialog.originalsizeRadio.checked ) | if ( !dialog.isCustomSize ) | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
if ( dialog.imagelrInput.value.length > 0 ) | var amount; if ( SeeMore ) | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
var hspace = ValidateNumberString(dialog.imagelrInput.value, 0, maxPixels); if (hspace == "") return false; globalElement.setAttribute( "hspace", hspace ); | if ( dialog.imagelrInput.value.length > 0 ) { amount = ValidateNumberString(dialog.imagelrInput.value, 0, maxPixels); if (amount == "") return false; globalElement.setAttribute( "hspace", amount ); } else globalElement.removeAttribute( "hspace" ); if ( dialog.imagetbInput.value.length > 0 ) { var vspace = ValidateNumb... | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
else globalElement.removeAttribute( "hspace" ); if ( dialog.imagetbInput.value.length > 0 ) { var vspace = ValidateNumberString(dialog.imagetbInput.value, 0, maxPixels); if (vspace == "") return false; globalElement.setAttribute( "vspace", vspace ); } else globalElement.removeAttribute( "vspace" ); if ( dialog.bord... | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... | |
if (widthText.length > 0) { if (isPercent) { | if (widthText.length > 0) { 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 ... |
} else { | else | 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 ... |
} | 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 ... | |
widthText = ValidateNumberString(dialog.widthInput.value, 1, maxLimit); if (widthText.length == 0) return false; | widthText = ValidateNumberString(widthText, 1, maxLimit); if (widthText.length == 0) return false; | 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 ... |
heightText = TrimString(dialog.widthInput.value); if (heightText.length > 0) { if (isPercent) { | heightText = TrimString(dialog.heightInput.value); if (heightText.length > 0) { 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 ... |
heightText = ValidateNumberString(dialog.heightInput.value, 1, maxLimit); if (heightText.length == 0) return false; | heightText = ValidateNumberString(heightText, 1, maxLimit); if (heightText.length == 0) return false; | 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 (ListType == "ul") | if (gListType == "ul") | function ValidateData(){ var type = 0; // globalElement should already be of the correct type if (globalElement) { if (ListType == "ul") { switch (gDialog.BulletStyleList.selectedIndex) { // Index 0 = automatic, the default, so we don't set it explicitly case 1: type = "disc"... |
BulletStyleType = type; ChangeListType(type, gDialog.ChangeAllRadio.selected); | gBulletStyleType = type; if (type && gDialog.ChangeAllRadio.selected) globalElement.setAttribute("type",type); else globalElement.removeAttribute("type"); | function ValidateData(){ var type = 0; // globalElement should already be of the correct type if (globalElement) { if (ListType == "ul") { switch (gDialog.BulletStyleList.selectedIndex) { // Index 0 = automatic, the default, so we don't set it explicitly case 1: type = "disc"... |
else if (ListType == "ol") | else if (gListType == "ol") | function ValidateData(){ var type = 0; // globalElement should already be of the correct type if (globalElement) { if (ListType == "ul") { switch (gDialog.BulletStyleList.selectedIndex) { // Index 0 = automatic, the default, so we don't set it explicitly case 1: type = "disc"... |
BulletStyleType = type; ChangeListType(type, gDialog.ChangeAllRadio.selected); var startingNumber = TrimString(gDialog.StartingNumberInput.value); | gBulletStyleType = type; if (type) globalElement.setAttribute("type", type); else globalElement.removeAttribute("type"); var startingNumber = ConvertUserStringToStartAttr(gDialog.BulletStyleList.selectedIndex); | function ValidateData(){ var type = 0; // globalElement should already be of the correct type if (globalElement) { if (ListType == "ul") { switch (gDialog.BulletStyleList.selectedIndex) { // Index 0 = automatic, the default, so we don't set it explicitly case 1: type = "disc"... |
SetTextfieldFocus(dialog.linkTextInput); | SetTextboxFocus(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... |
align = "left"; | align = "right"; | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
align = "right"; | align = "left"; | function ValidateData(){ var imageTypeExtension = checkForImage(); if ( !imageTypeExtension ) { 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 ... |
SetTextfieldFocus(nameInput); | SetTextboxFocus(nameInput); | function ValidateData(){ var name = TrimString(nameInput.value); if (!name) { ShowInputErrorMessage(GetString("MissingAnchorNameError")); SetTextfieldFocus(nameInput); return false; } else { // Replace spaces with "_" and strip other characters // Note: we could use ConvertAndEscape, but then w... |
title = dialog.TitleInput.value.trimString(); | newTitle = dialog.TitleInput.value.trimString(); | function ValidateData(){ title = dialog.TitleInput.value.trimString(); author = dialog.AuthorInput.value.trimString(); description = dialog.DescriptionInput.value.trimString(); return true;} |
SetTextfieldFocus(dialog.altTextInput); | SetTextboxFocus(dialog.altTextInput); | 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... |
SetTextfieldFocus(dialog.widthInput); | SetTextboxFocus(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... |
SetTextfieldFocus(dialog.heightInput); | SetTextboxFocus(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... |
height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels); if (height) { globalElement.setAttribute("size", height); } else globalElement.removeAttribute("size"); | height = ValidateNumber(dialog.heightInput, null, 1, maxPixels, globalElement, "size", false); if (gValidationError) return false; | function ValidateData(){ // Height is always pixels height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels); if (height) { globalElement.setAttribute("size", height); } else globalElement.removeAttribute("size"); var isPercent = (dialog.pixelOrPercentMenulist.selectedIndex == 1); var maxLimi... |
var isPercent = (dialog.pixelOrPercentMenulist.selectedIndex == 1); var maxLimit; if (isPercent) { maxLimit = 100; } else { maxLimit = maxPixels; } width = ValidateNumberString(dialog.widthInput.value, 1, maxLimit); if (width) { if (isPercent) width = width + "%"; globalElement.setAttribute("width", width); } else gl... | width = ValidateNumber(dialog.widthInput, dialog.pixelOrPercentMenulist, 1, maxPixels, globalElement, "width", false); if (gValidationError) return false; | function ValidateData(){ // Height is always pixels height = ValidateNumberString(dialog.heightInput.value, 1, maxPixels); if (height) { globalElement.setAttribute("size", height); } else globalElement.removeAttribute("size"); var isPercent = (dialog.pixelOrPercentMenulist.selectedIndex == 1); var maxLimi... |
SetTextfieldFocus(dialog.ColorInput); | SetTextboxFocus(dialog.ColorInput); | function ValidateData(){ if (LastPickedIsDefault) color = LastPickedColor; else color = dialog.ColorInput.value; color = color.trimString().toLowerCase(); // TODO: Validate the color string! if (NoDefault && !color) { ShowInputErrorMessage(GetString("NoColorError")); SetTextfieldFocus(dialog.ColorIn... |
name = PrepareStringForURL(name); | name = ConvertToCDATAString(name); | function ValidateData(){ var name = TrimString(nameInput.value); if (!name) { ShowInputErrorMessage(GetString("MissingAnchorNameError")); SetTextfieldFocus(nameInput); return false; } else { // Replace spaces with "_" and strip other characters // Note: we could use ConvertAndEscape, but then w... |
SetTextfieldFocus(inputWidget); | SetTextboxFocus(inputWidget); | function ValidateNumber(inputWidgetID, listWidget, minVal, maxVal, element, attName){ var inputWidget = document.getElementById(inputWidgetID); // Global error return value error = false; var maxLimit = maxVal; var isPercent = false; var numString = inputWidget.value.trimString(); if (numString) { if (listWi... |
if (selectedItem && selectedItem.getAttribute("label") != siteName) | if (selectedItem && selectedItem.getAttribute("value") != siteName) | function ValidateSettings(){ var siteName = TrimString(gDialog.SiteNameInput.value); if (!siteName) { ShowErrorInPanel(gSettingsPanel, "MissingSiteNameError", gDialog.SiteNameInput); return false; } if (PublishSiteNameExists(siteName, gPublishSiteData, gDialog.SiteList.selectedIndex)) { SwitchPanel(gSett... |
selectedItem.setAttribute("value", siteName); | function ValidateSettings(){ var siteName = TrimString(gDialog.SiteNameInput.value); if (!siteName) { ShowErrorInPanel(gSettingsPanel, "MissingSiteNameError", gDialog.SiteNameInput); return false; } if (PublishSiteNameExists(siteName, gPublishSiteData, gDialog.SiteList.selectedIndex)) { SwitchPanel(gSett... | |
ValidatorUpdateDisplay (v, false); | ValidatorUpdateDisplay (v, true); | function ValidatorSucceeded (v){ v.innerHTML = ""; ValidatorUpdateDisplay (v, false);} |
return stringSortFunction(x.valueCol, y.valueCol); | if (x.valueCol > y.valueCol) return gSortDirection; if (x.valueCol < y.valueCol) return -gSortDirection; return prefColSortFunction(x, y); | function valueColSortFunction(x,y){ return stringSortFunction(x.valueCol, y.valueCol);} |
if (openWizard || prefillAccount || (zeroIdCount && wizardcallback)) { | if (openWizard || prefillAccount || ((!gAnyValidIdentity) && wizardcallback)) { | function verifyAccounts(wizardcallback) {//check to see if the function is called with the callback and if so set the global variable returnmycall to true if(wizardcallback) returnmycall = true; var openWizard = false; var prefillAccount; var state=true; var ret = true; try { var am = Components.cl... |
var am = Components.classes[accountManagerProgID].getService(Components.interfaces.nsIMsgAccountManager); | var am = Components.classes[accountManagerContractID].getService(Components.interfaces.nsIMsgAccountManager); | function verifyAccounts() { var openWizard = false; var prefillAccount; try { var am = Components.classes[accountManagerProgID].getService(Components.interfaces.nsIMsgAccountManager); var accounts = am.accounts; // as long as we have some accounts, we're fine. var accountCount =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.