rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
function checkForLink(elem, htmltagname)
function checkForLink(elem, htmllocalname)
function checkForLink(elem, htmltagname){ if ((htmltagname === "a" && elem.href != "") || htmltagname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setInfo("l...
if ((htmltagname === "a" && elem.href != "") || htmltagname === "area") {
if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") {
function checkForLink(elem, htmltagname){ if ((htmltagname === "a" && elem.href != "") || htmltagname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setInfo("l...
verifySelected(f.product, 'Product') &&
verifySelected(f.editform_product, 'Product') && verifySelected(f.editform_branch, 'Branch') &&
function checkFormContents(f) { return ( checkString(f.editform_summary, 'Summary') && verifySelected(f.product, 'Product') && verifySelected(f.editform_author_id, 'Author') );}
verifySelected(f.product, 'Product') && verifySelected(f.editform_branches, 'Branch')
verifySelected(f.editform_product, 'Product') && verifySelected(f.editform_branch, 'Branch')
function checkFormContents(f) { return ( checkString(f.editform_name, 'Name') && verifySelected(f.product, 'Product') && verifySelected(f.editform_branches, 'Branch') );}
verifySelected(f.product, 'Product')
verifySelected(f.editform_product, 'Product') && verifySelected(f.editform_branch, 'Branch')
function checkFormContents(f) { return ( checkString(f.editform_name, 'Name') && verifySelected(f.product, 'Product') );}
function checkForQuote(elem, htmltagname)
function checkForQuote(elem, htmllocalname)
function checkForQuote(elem, htmltagname){ if ((htmltagname === "q" || htmltagname === "blockquote") && elem.cite) { setInfo("quote-cite", getAbsoluteURL(elem.cite, elem)); onQuote = true; } }
if ((htmltagname === "q" || htmltagname === "blockquote") && elem.cite) {
if ((htmllocalname === "q" || htmllocalname === "blockquote") && elem.cite) {
function checkForQuote(elem, htmltagname){ if ((htmltagname === "q" || htmltagname === "blockquote") && elem.cite) { setInfo("quote-cite", getAbsoluteURL(elem.cite, elem)); onQuote = true; } }
function checkForTable(elem, htmltagname)
function checkForTable(elem, htmllocalname)
function checkForTable(elem, htmltagname){ if (htmltagname === "table" && elem.summary) { setInfo("misc-tblsummary", elem.summary); onTable = true; }}
if (htmltagname === "table" && elem.summary) {
if (htmllocalname === "table" && elem.summary) {
function checkForTable(elem, htmltagname){ if (htmltagname === "table" && elem.summary) { setInfo("misc-tblsummary", elem.summary); onTable = true; }}
function checkForTitle(elem, htmltagname)
function checkForTitle(elem, htmllocalname)
function checkForTitle(elem, htmltagname){ if (htmltagname && elem.title) { setInfo("misc-title", elem.title); onTitle = true; } }
if (htmltagname && elem.title) {
if (htmllocalname && elem.title) {
function checkForTitle(elem, htmltagname){ if (htmltagname && elem.title) { setInfo("misc-title", elem.title); onTitle = true; } }
var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"] .createInstance(Components.interfaces.nsIUpdatePrompt);
var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"]. createInstance(Components.interfaces.nsIUpdatePrompt); if (um.activeUpdate && um.activeUpdate.state == "pending") promp...
function checkForUpdates(){ var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"] .createInstance(Components.interfaces.nsIUpdatePrompt); prompter.checkForUpdates();}
element.setAttribute("disabled","true" );
function CheckForWallet(){ // remove wallet functions (unless overruled by the "wallet.enabled" pref) try { if (!this.pref.GetBoolPref("wallet.enabled")) { var element; element = document.getElementById("walletSafeFill"); element.setAttribute("style","display: none;" ); element = document.getEl...
function checkInteger(elementID)
function checkInteger(element)
function checkInteger(elementID){ var integerField = document.getElementById( elementID ); if ( !integerField ) return; var value = integerField.value; if (value && value.length > 0) { value = value.replace(/[^0-9]/g,""); if (!value) value = ""; integerField.value = value; } if (!value || value < 1 ||...
var integerField = document.getElementById( elementID ); if ( !integerField ) return; var value = integerField.value;
var value = element.value;
function checkInteger(elementID){ var integerField = document.getElementById( elementID ); if ( !integerField ) return; var value = integerField.value; if (value && value.length > 0) { value = value.replace(/[^0-9]/g,""); if (!value) value = ""; integerField.value = value; } if (!value || value < 1 ||...
integerField.value = value;
element.value = value;
function checkInteger(elementID){ var integerField = document.getElementById( elementID ); if ( !integerField ) return; var value = integerField.value; if (value && value.length > 0) { value = value.replace(/[^0-9]/g,""); if (!value) value = ""; integerField.value = value; } if (!value || value < 1 ||...
setTimeout("checkLogFiles()", 3602000 - (Date.now() % 3600000));
setTimeout("checkLogFiles()", 3602000 - (Number(new Date()) % 3600000));
function checkLogFiles(){ // For every view that has a logfile, check if we need a different file // based on the current date and the logfile preference. We close the // current logfile, and display will open the new one based on the pref // when it's needed. var d = new Date(); for (var n in client....
var msgURI = GetLoadedMessage(); if (msgURI && !(/type=application\/x-message-display/.test(msgURI))) { var msgHdr = messenger.msgHdrFromURI(msgURI); return (msgHdr && msgHdr.getUint32Property(aProperty) != aValue); } return false;
var msgHdr = msgHdrForCurrentMessage(); return (msgHdr && msgHdr.getUint32Property(aProperty) != aValue);
function checkMsgHdrPropertyIsNot(aProperty, aValue){ // we want to get the msg hdr for the currently selected message, // get the appropiate property on it and then test against value. var msgURI = GetLoadedMessage(); if (msgURI && !(/type=application\/x-message-display/.test(msgURI))) { var msgHdr = messe...
if( canAdvance && document.getElementById("calendar-uri").value ) canAdvance = checkURL();
function checkRequired() { var canAdvance = true; var curPage = document.getElementById('calendar-wizard').currentPage; if (curPage) { var eList = curPage.getElementsByAttribute('required', 'true'); for (var i = 0; i < eList.length && canAdvance; ++i) { canAdvance = (eList[i].value != ...
if (!frame || !("contentWindow" in frame))
var window = getContentWindow(frame); if (!window)
function checkScroll(frame){ if (!frame || !("contentWindow" in frame)) return false; var w = frame.contentWindow; return ((w.document.height - (w.innerHeight + w.pageYOffset)) < 160);}
var w = frame.contentWindow; return ((w.document.height - (w.innerHeight + w.pageYOffset)) < 160);
return (window.document.height - window.innerHeight - window.pageYOffset) < 160;
function checkScroll(frame){ if (!frame || !("contentWindow" in frame)) return false; var w = frame.contentWindow; return ((w.document.height - (w.innerHeight + w.pageYOffset)) < 160);}
var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if (resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database;
var resultsList = navWindow._content.document.getElementById("resultsList"); if (resultsList) { var treeref = resultsList.getAttribute("ref"); var ds = resultsList.database;
function checkSearchProgress(){ var activeSearchFlag = false; var navWindow = getNavigatorWindow(false); if (navWindow) { var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if (resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.databas...
function checkSearchProgress( aSearchURL )
function checkSearchProgress()
function checkSearchProgress( aSearchURL ){ var activeSearchFlag = false; var resultsTree = top._content.document.getElementById("internetresultstree"); var enginesBox = top._content.document.getElementById("engineTabs"); if( !resultsTree || !enginesBox ) { doStop(); return (activeSearchFlag); } var treeref = result...
var enginesBox = top._content.document.getElementById("engineTabs"); if( !resultsTree || !enginesBox )
if(resultsTree)
function checkSearchProgress( aSearchURL ){ var activeSearchFlag = false; var resultsTree = top._content.document.getElementById("internetresultstree"); var enginesBox = top._content.document.getElementById("engineTabs"); if( !resultsTree || !enginesBox ) { doStop(); return (activeSearchFlag); } var treeref = result...
doStop(); return (activeSearchFlag); } var treeref = resultsTree.getAttribute("ref");
var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; if (ds && treeref) { try { var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService); if (rdf) { var source = rdf.GetResource(treeref, true); var loadingProperty = rdf.GetResource("http: var target = ds.GetTarget(source, loadi...
function checkSearchProgress( aSearchURL ){ var activeSearchFlag = false; var resultsTree = top._content.document.getElementById("internetresultstree"); var enginesBox = top._content.document.getElementById("engineTabs"); if( !resultsTree || !enginesBox ) { doStop(); return (activeSearchFlag); } var treeref = result...
if( aSearchURL ) { resultsTree.setAttribute( "ref", aSearchURL ); treeref = aSearchURL; } var ds = resultsTree.database; if ( treeref && ds ) { try { var rdf = Components.classes["component: if (rdf) rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf) { var source = rdf.GetResource( treeref, true...
function checkSearchProgress( aSearchURL ){ var activeSearchFlag = false; var resultsTree = top._content.document.getElementById("internetresultstree"); var enginesBox = top._content.document.getElementById("engineTabs"); if( !resultsTree || !enginesBox ) { doStop(); return (activeSearchFlag); } var treeref = result...
setTimeout("checkSearchProgress(null)", 1000);
setTimeout("checkSearchProgress()", 1000);
function checkSearchProgress( aSearchURL ){ var activeSearchFlag = false; var resultsTree = top._content.document.getElementById("internetresultstree"); var enginesBox = top._content.document.getElementById("engineTabs"); if( !resultsTree || !enginesBox ) { doStop(); return (activeSearchFlag); } var treeref = result...
var resultsList = navWindow._content.document.getElementById("resultsList");
var resultsList = navWindow.content.document.getElementById("resultsList");
function checkSearchProgress(){ var activeSearchFlag = false; var navWindow = getNavigatorWindow(false); if (navWindow) { var resultsList = navWindow._content.document.getElementById("resultsList"); if (resultsList) { var treeref = resultsList.getAttribute("ref"); var ds = resultsList.database; ...
aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSelection.length); aSelection.isValid = new Array(aSelection.length); aSelection.containsMutabl...
aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSelection.length); aSelection.isValid = new Array(aSelection.length); aSelection.containsPTF = false; aSelection.co...
checkSelection: function (aSelection) { if (aSelection.length == 0) return; aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSele...
if (item == "NC:BookmarksRoot")
if (item.Value == "NC:BookmarksRoot") {
checkSelection: function (aSelection) { if (aSelection.length == 0) return; aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSele...
if (!isImmutable && aSelection.parent[i]) aSelection.containsMutable = true;
if (isImmutable) aSelection.containsImmutable = true;
checkSelection: function (aSelection) { if (aSelection.length == 0) return; aSelection.type = new Array(aSelection.length); aSelection.protocol = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.isImmutable = new Array(aSele...
if (this.isContainerChildOrSelf(RDF.GetResource("NC:PersonalToolbarFolder"), aSelection))
if (this.isContainerChildOrSelf(BMSVC.getBookmarksToolbarFolder(), aSelection))
checkSelection: function (aSelection) { if (aSelection.length == 0) return; aSelection.type = new Array(aSelection.length); aSelection.isContainer = new Array(aSelection.length); aSelection.containsPTF = false; aSelection.containsImmutable = false; var index, item, parent, type, protoco...
return(!untilDateIsBeforeEndDate);
var missingField = false; if (getElementValue("repeat-numberoftimes-radio", "selected") && !hasPositiveIntegerValue("repeat-numberoftimes-textbox")) { setElementValue("repeat-numberoftimes-warning", false, "hidden"); missingField = true; } else setElementValue("repeat-numberoftimes-warning", true, "hidden"); if (get...
function checkSetRecur(){ var endDate = getElementValue("end-datetime"); var recur = getElementValue("repeat-checkbox", "checked"); var recurUntil = getElementValue("repeat-until-radio", "selected"); var recurUntilDate = getElementValue("repeat-end-date-picker"); var untilDateIsBefore...
dump(firstMisspelledWord+"\n"); if( firstMisspelledWord == "") {
} catch(ex) { dump("*** Exception error: StartSpellChecking\n"); return; } if( firstMisspelledWord == "") { try {
function CheckSpelling(){ var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word try { firstMisspelledWord = spellChecker.StartSpellChecking();...
editorShell.Alert(editorShell.GetString("CheckSpelling"), editorShell.GetString("NoMisspelledWord")); } else { dump("We found a MISSPELLED WORD\n"); window.spellChecker = spellChecker;
} catch(ex) { dump("*** Exception error: CloseSpellChecking\n"); return; } editorShell.AlertWithTitle(editorShell.GetString("CheckSpelling"), editorShell.GetString("NoMisspelledWord")); } else { window.spellChecker = spellChecker; try {
function CheckSpelling(){ var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word try { firstMisspelledWord = spellChecker.StartSpellChecking();...
editorShell.Alert(editorShell.GetString("CheckSpelling"), editorShell.GetString("CheckSpellingDone"));
function CheckSpelling(){ var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word try { firstMisspelledWord = spellChecker.StartSpellChecking();...
} catch(ex) { dump("*** Exception error from Spell Checker\n");
catch(ex) { dump("*** Exception error: SpellChecker Dialog Closing\n"); return; }
function CheckSpelling(){ var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word try { firstMisspelledWord = spellChecker.StartSpellChecking();...
if(!standardName || standardName == summerTZName)
if(!standardName || standardName == summerTZname)
function checkTZ(someTZ) { var comp = icssrv.getTimezone(someTZ); var subComp = comp.getFirstSubcomponent("VTIMEZONE"); var standard = subComp.getFirstSubcomponent("STANDARD"); var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").stringValue; var standardName = standa...
gPref.setBoolPref(PREF_UPDATE_NOTIFYUSER, false);
function checkUpdatesAll() { if (isOffline("offlineUpdateMsg")) return; if (!isXPInstallEnabled()) return; // To support custom views we check the add-ons displayed in the list var items = []; var children = gExtensionsView.children; for (var i = 0; i < children.length; ++i) items.push(gExtensionManager....
net.lastWhoCheckTime = Date.now();
net.lastWhoCheckTime = Number(new Date());
function checkWho() { var checkNext = (net.lastWhoCheckChannel == null); for (var c in net.primServ.channels) { var chan = net.primServ.channels[c]; if (checkNext && chan.active && chan.getUsersLength() < client.prefs["autoAwayCap"]) { ...
AppendStringToList(dialog.suggestedList, editorShell.GetString("CorrectSpelling"));
AppendStringToList(dialog.suggestedList, GetString("CorrectSpelling"));
function CheckWord(){ dump("SpellCheck: CheckWord\n"); word = dialog.wordInput.value; if (word != "") { dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); misspelledWord = word; ...
toolkit.CloseWindow( window );
window.close();
function choose() { /* Use existing browser "open" logic. */ browser.openWindow(); toolkit.CloseWindow( window );}
this.choseApp = true; this.chosenApp = fp.file;
this.chosenApp = fp.file;
chooseApp: function() { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( nsIFilePicker ); fp.init( this.mDialog, this.getString( "chooseAppFilePickerTitle" ), nsIFilePicker.modeOpen ...
this.updateApplicationName(this.chosenApp.path);
this.dialogElement( "appPath" ).value = this.chosenApp.path;
chooseApp: function() { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( nsIFilePicker ); fp.init( this.mDialog, this.getString( "chooseAppFilePickerTitle" ), nsIFilePicker.modeOpen ...
var filePicker = Components.classes["component: if (filePicker) filePicker = filePicker.QueryInterface(Components.interfaces.nsIFilePicker);
const nsIFilePicker = Components.interfaces.nsIFilePicker; var filePicker = Components.classes["component:
function chooseApp(){ var filePicker = Components.classes["component://mozilla/filepicker"].createInstance(); if (filePicker) filePicker = filePicker.QueryInterface(Components.interfaces.nsIFilePicker); if (filePicker) { const FP = Components.interfaces.nsIFilePicker var windowTitle = gBundle.GetStringFromN...
var category = aNode.getAttribute("id"); if ((!category) || (category == "")) { category="NC:SearchEngineRoot"; } else { category = "NC:SearchCategory?category=" + category; } debug("chooseCategory: '" + category + "'\n");
var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.id;
function chooseCategory( aNode ){ var category = aNode.getAttribute("id"); if ((!category) || (category == "")) { category="NC:SearchEngineRoot"; } else { category = "NC:SearchCategory?category=" + category; } debug("chooseCategory: '" + category + "'\n"); if (pref) pref.SetCharPref( "browser.search.last_search_categ...
if (pref) pref.SetCharPref( "browser.search.last_search_category", category ); else debug("Unable to set browser.search.last_search_category pref.\n");
if (pref) pref.SetUnicharPref("browser.search.last_search_category", category);
function chooseCategory( aNode ){ var category = aNode.getAttribute("id"); if ((!category) || (category == "")) { category="NC:SearchEngineRoot"; } else { category = "NC:SearchCategory?category=" + category; } debug("chooseCategory: '" + category + "'\n"); if (pref) pref.SetCharPref( "browser.search.last_search_categ...
var treeNode = document.getElementById("searchengines"); if (treeNode) { treeNode.setAttribute( "ref", category ); } loadEngines( category ); return(true);
var treeNode = document.getElementById("searchengines"); if (treeNode) treeNode.setAttribute("ref", category); loadEngines(category); return(true);
function chooseCategory( aNode ){ var category = aNode.getAttribute("id"); if ((!category) || (category == "")) { category="NC:SearchEngineRoot"; } else { category = "NC:SearchCategory?category=" + category; } debug("chooseCategory: '" + category + "'\n"); if (pref) pref.SetCharPref( "browser.search.last_search_categ...
SetCheckbox("CellImageCheckbox");
function ChooseCellImage(){ fileName = GetLocalFileURL("img"); if (fileName && fileName.length > 0) { dialog.CellImageInput.setAttribute("value",fileName); } // Put focus into the input field dialog.CellImageInput.focus();}
fileName = editorShell.GetLocalFileURL(window, "img");
fileName = GetLocalFileURL("html");
function chooseFile(){ // Get a local file, converted into URL format fileName = editorShell.GetLocalFileURL(window, "img"); if (fileName && fileName != "") { dialog.urlInput.value = fileName; } // Put focus into the input field SetTextboxFocus(dialog.urlInput);}
doValueChanged();
doOverallEnabling();
function chooseFile(){ // Get a local file, converted into URL format fileName = editorShell.GetLocalFileURL(window, "img"); if (fileName && fileName != "") { dialog.srcInput.value = fileName;// imageTypeExtension = checkForImage(); doValueChanged(); } checkForImage( "srcInput" ); // Put focus into th...
checkForImage( "srcInput" );
function chooseFile(){ // Get a local file, converted into URL format fileName = editorShell.GetLocalFileURL(window, "img"); if (fileName && fileName != "") { dialog.srcInput.value = fileName;// imageTypeExtension = checkForImage(); doValueChanged(); } checkForImage( "srcInput" ); // Put focus into th...
checkForImage( "srcInput" );
function chooseFile(){ // Get a local file, converted into URL format fileName = editorShell.GetLocalFileURL(window, "img"); if (fileName && fileName != "") { dialog.srcInput.value = fileName;// imageTypeExtension = checkForImage(); doValueChanged();...
if ( aRootFolder != top.profile.defaultProfileParentDir.nativePath )
if ( aRootFolder != top.profile.defaultProfileParentDir.path )
function chooseProfileFolder( aRootFolder ){ if( !aRootFolder ) { try { var fp = Components.classes["component://mozilla/filepicker"].createInstance(Components.interfaces.nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); fp.a...
},
}
chooseServiceURL: function () { var signingCA = document.getElementById("signingCA"); var serviceURL = document.getElementById("serviceURL"); var CA = signingCA.value; const nsIOCSPResponder = Components.interfaces.nsIOCSPResponder; for (var i = 0; i < this._OCSPResponders.length; ++i) { var ...
SetCheckbox("TableImageCheckbox");
function ChooseTableImage(){ // Get a local file, converted into URL format fileName = GetLocalFileURL("img"); if (fileName && fileName.length > 0) { dialog.TableImageInput.setAttribute("value",fileName); } // Put focus into the input field dialog.TableImageInput.focus();}
function CIRCChannel (parent, name, charset)
function CIRCChannel (parent, encodedName, unicodeName)
function CIRCChannel (parent, name, charset){ var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase(); if (name in parent.channels) return parent.channels[name]; this.parent = parent; this.name = name; // used internally, lowercased this.unicodeName = un...
var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase();
this.normalizedName = encodedName.toLowerCase(); this.name = this.normalizedName;
function CIRCChannel (parent, name, charset){ var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase(); if (name in parent.channels) return parent.channels[name]; this.parent = parent; this.name = name; // used internally, lowercased this.unicodeName = un...
if (name in parent.channels) return parent.channels[name];
if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName];
function CIRCChannel (parent, name, charset){ var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase(); if (name in parent.channels) return parent.channels[name]; this.parent = parent; this.name = name; // used internally, lowercased this.unicodeName = un...
this.name = name; this.unicodeName = unicodeName; this.encodedName = encodedName; this.charset = charset;
this.encodedName = encodedName; if (unicodeName) this.unicodeName = unicodeName; else this.unicodeName = toUnicode(encodedName, this);
function CIRCChannel (parent, name, charset){ var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase(); if (name in parent.channels) return parent.channels[name]; this.parent = parent; this.name = name; // used internally, lowercased this.unicodeName = un...
parent.channels[name] = this;
this.parent.channels[this.normalizedName] = this;
function CIRCChannel (parent, name, charset){ var encodedName = name; var unicodeName = toUnicode(name, charset); name = name.toLowerCase(); if (name in parent.channels) return parent.channels[name]; this.parent = parent; this.name = name; // used internally, lowercased this.unicodeName = un...
this.sendChunk = 1024; this.maxUnAcked = 0;
this.sendChunk = 4096; this.maxUnAcked = 32;
function CIRCDCC(parent){ this.parent = parent; this.users = new Object(); this.chats = new Array(); this.files = new Array(); this.last = null; this.lastTime = null; this.sendChunk = 1024; this.maxUnAcked = 0; this.requestTimeout = 3 * 60 * 1000; // 3 minutes. // Can't do anything 'til th...
this.connecting = false;
this.state = NET_OFFLINE;
function CIRCNetwork (name, serverList, eventPump){ this.unicodeName = name; this.viewName = name; this.canonicalName = name; this.encodedName = name; this.servers = new Object(); this.serverList = new Array(); this.ignoreList = new Object(); this.ignoreMaskCache = new Object(); this.connecti...
this.serverList = serverList;
this.servers = new Object(); this.serverList = new Array(); this.connecting = false; for (var i = 0; i < serverList.length; ++i) { var server = serverList[i]; var password = ("password" in server) ? server.password : null; this.serverList.push(new CIRCServer(this, server.name, server.port, password)); }
function CIRCNetwork (name, serverList, eventPump){ this.name = name; this.serverList = serverList; this.eventPump = eventPump; this.servers = new Object(); if ("onInit" in this) this.onInit();}
this.servers = new Object();
function CIRCNetwork (name, serverList, eventPump){ this.name = name; this.serverList = serverList; this.eventPump = eventPump; this.servers = new Object(); if ("onInit" in this) this.onInit();}
this.ignoreList = new Object(); this.ignoreMaskCache = new Object();
function CIRCNetwork (name, serverList, eventPump){ this.name = name; this.servers = new Object(); this.serverList = new Array(); this.connecting = false; for (var i = 0; i < serverList.length; ++i) { var server = serverList[i]; var password = ("password" in server) ? server.password...
function CIRCServer (parent, connection, password)
function CIRCServer (parent, hostname, port, password)
function CIRCServer (parent, connection, password){ var serverName = connection.host + ":" + connection.port; var s; if (serverName in parent.servers) { s = parent.servers[serverName]; } else { s = this; s.channels = new Object(); s.users = new Object(); } s.na...
var serverName = connection.host + ":" + connection.port;
var serverName = hostname + ":" + port;
function CIRCServer (parent, connection, password){ var serverName = connection.host + ":" + connection.port; var s; if (serverName in parent.servers) { s = parent.servers[serverName]; } else { s = this; s.channels = new Object(); s.users = new Object(); } s.na...
s.connection = connection;
s.connection = null; s.isConnected = false;
function CIRCServer (parent, connection, password){ var serverName = connection.host + ":" + connection.port; var s; if (serverName in parent.servers) { s = parent.servers[serverName]; } else { s = this; s.channels = new Object(); s.users = new Object(); } s.na...
if (jsenv.HAS_NSPR_EVENTQ) connection.startAsyncRead(s); else s.parent.eventPump.addEvent(new CEvent ("server", "poll", s, "onPoll"));
function CIRCServer (parent, connection, password){ var serverName = connection.host + ":" + connection.port; var s; if (serverName in parent.servers) { s = parent.servers[serverName]; } else { s = this; s.channels = new Object(); s.users = new Object(); } s.na...
function CIRCUser (parent, nick, name, host)
function CIRCUser (parent, nick, name, host, desc)
function CIRCUser (parent, nick, name, host){ var properNick = nick; nick = nick.toLowerCase(); if (nick in parent.users) { var existingUser = parent.users[nick]; if (name) existingUser.name = name; if (host) existingUser.host = host; return existingUser; } this.parent ...
if (name) existingUser.name = name; if (host) existingUser.host = host;
if (name) existingUser.name = name; if (host) existingUser.host = host; if (desc) existingUser.desc = desc;
function CIRCUser (parent, nick, name, host){ var properNick = nick; nick = nick.toLowerCase(); if (nick in parent.users) { var existingUser = parent.users[nick]; if (name) existingUser.name = name; if (host) existingUser.host = host; return existingUser; } this.parent ...
(elements[i].nodeName == "checkbox") ||
function ClearAll(){ /* clear out all data */ var elements = this.opener.document.getElementsByAttribute("id", "*"); for (var i=0; i < elements.length; i++) { if ((elements[i].nodeName == "textbox") || (elements[i].nodeName == "radiogroup") || (elements[i].nodeName == "checkbox") || ...
} else if (elements[i].nodeName == "checkbox") { if (elements[i].id != "saveOnExit") elements[i].checked = false;
function ClearAll(){ /* clear out all data */ var elements = this.opener.document.getElementsByAttribute("id", "*"); for (var i=0; i < elements.length; i++) { if ((elements[i].nodeName == "textbox") || (elements[i].nodeName == "radiogroup") || (elements[i].nodeName == "checkbox") || ...
node = document.getElementById("fileAttachmentMenu"); if (node) node.setAttribute("disabled", "true");
function ClearAttachmentList() { // clear selection var list = document.getElementById('attachmentList'); list.clearSelection(); while (list.childNodes.length) list.removeItemAt(list.childNodes.length - 1);}
node = document.getElementById("fileAttachmentMenu"); if (node) node.setAttribute("disabled", "true");
function ClearAttachmentList() { // clear selection var list = document.getElementById('attachmentList'); while (list.hasChildNodes()) list.removeChild(list.lastChild);}
while ( popup.childNodes.length > 2 )
while ( popup.childNodes.length )
function ClearAttachmentMenu() { var popup = document.getElementById("attachmentPopup"); if ( popup ) { while ( popup.childNodes.length > 2 ) popup.removeChild(popup.childNodes[0]); } var attachBox = document.getElementById("attachmentBox"); if (attachBox) attachBox.setAttribute("hide", "true"...
attachmentUrlArray.length = 0; attachmentDisplayNameArray.length = 0; attachmentMessageUriArray.length = 0;
function ClearAttachmentMenu() { var popup = document.getElementById("attachmentPopup"); if ( popup ) { while ( popup.childNodes.length > 2 ) popup.removeChild(popup.childNodes[0]); } var attachBox = document.getElementById("attachmentBox"); if (attachBox) attachBox.setAttribute("hide", "true"...
while ( popup.childNodes.length > 4 )
while ( popup.childNodes.length > 2 )
function ClearAttachmentMenu(popup) { if ( popup ) { //Note: 4 == number of entries in attachmentMenuList definition in msgHdrViewOverlay.xul while ( popup.childNodes.length > 4 ) popup.removeChild(popup.childNodes[0]); } }
var sourceRecord = console.scripts[fileName];
function clearBreakpointByNumber (number){ var bpr = console.breakpoints.childData[number]; if (!bpr) { display (getMsg(MSN_ERR_BP_NOINDEX, number, MT_ERROR)); return null; } bpr.enabled = false; var fileName = bpr.fileName; var line = bpr.line; var sourceRecord = console.scripts[f...
if (sourceRecord.sourceText.isLoaded && sourceRecord.sourceText.lines[line - 1])
var sourceText; if (fileName in console.scripts) sourceText = console.scripts[fileName].sourceText; else if (fileName in console.files) sourceText = console.files[fileName]; if (sourceText && sourceText.isLoaded && sourceText.lines[line - 1])
function clearBreakpointByNumber (number){ var bpr = console.breakpoints.childData[number]; if (!bpr) { display (getMsg(MSN_ERR_BP_NOINDEX, number, MT_ERROR)); return null; } bpr.enabled = false; var fileName = bpr.fileName; var line = bpr.line; var sourceRecord = console.scripts[f...
delete sourceRecord.sourceText.lines[line - 1].bpRecord;
delete sourceText.lines[line - 1].bpRecord;
function clearBreakpointByNumber (number){ var bpr = console.breakpoints.childData[number]; if (!bpr) { display (getMsg(MSN_ERR_BP_NOINDEX, number, MT_ERROR)); return null; } bpr.enabled = false; var fileName = bpr.fileName; var line = bpr.line; var sourceRecord = console.scripts[f...
console.sourceView.outliner.invalidateRow (line - 1);
console.sourceView.tree.invalidateRow (line - 1);
function clearBreakpointByNumber (number){ var bpr = console.breakpoints.childData[number]; if (!bpr) { display (getMsg(MSN_ERR_BP_NOINDEX, number, MT_ERROR)); return null; } bpr.enabled = false; var fileName = bpr.fileName; var line = bpr.line; var sourceText; if (fileName ...
cvSetVisible(data.cvDepartment, false);
function ClearCardViewPane(){ // FIX ME - waiting for bug fix...cvSetVisible(data.CardViewBox, false); // HACK - we need to be able to set the entire box or div to display:none when bug fixed var data = top.cvData; // title cvSetVisible(data.CardTitle, false); // Name section cvSetVisible(data.cvhName, false); cvSetVis...
gDialog.AddCSSAttributeTree.clearSelection();
gDialog.AddCSSAttributeTree.treeBoxObject.selection.clearSelection();
function ClearCSSInputWidgets(){ gDialog.AddCSSAttributeTree.clearSelection(); gDialog.AddCSSAttributeNameInput.value =""; gDialog.AddCSSAttributeValueInput.value = ""; SetTextboxFocus(gDialog.AddCSSAttributeNameInput);}
console.onFrameChanged (null, 0);
function clearCurrentFrame (){ if (!console.frames) throw new BadMojo (ERR_NO_STACK); delete console.stopLine; delete console._pp_stopLine; delete console.stopFile; delete console._currentFrameIndex; console.onFrameChanged (null, 0);}
editBox.setAttribute("collapsed", "true");
editBox.collapsed = true;
function ClearEditMessageButton() { var editBox = document.getElementById("editMessageBox"); if (editBox) editBox.setAttribute("collapsed", "true");}
document.getElementById("filter").focus();
clearFilter: function () { // Revert to single-select in the tree this._tree.setAttribute("seltype", "single"); // Clear the Filter and the Tree Display document.getElementById("filter").value = ""; this._view._filtered = false; this._view._rowCount = 0; this._tree.treeBoxObject.rowCountChan...
document.getElementById("filter").focus();
clearFilter: function () { // Clear the Filter and the Tree Display document.getElementById("filter").value = ""; this._view._filtered = false; this._view._filterSet = []; // Just reload the list to make sure deletions are respected this._loadView(); this._updateRowCount(this._updateExclusio...
if (url.search(urlPattern) != -1)
if (url.indexOf(urlPattern) != -1)
function clearFutureBreakpoint (urlPattern, lineNumber){ var key = urlPattern + "#" + lineNumber; if (!(key in console.fbreaks)) return false; var i; var fbreak = console.fbreaks[key]; if ("propsWindow" in fbreak) fbreak.propsWindow.close(); delete console.fbreaks[key]; for (i in ...
for (var url in console.scriptManagers)
var url; for (url in console.scriptManagers)
function clearFutureBreakpoint (urlPattern, lineNumber){ var key = urlPattern + "#" + lineNumber; if (!(key in console.fbreaks)) return false; var i; var fbreak = console.fbreaks[key]; if ("propsWindow" in fbreak) fbreak.propsWindow.close(); delete console.fbreaks[key]; for (i in ...
} for (url in console.files) { if (url == urlPattern) console.files[url].noteFutureBreakpoint(lineNumber, false);
function clearFutureBreakpoint (urlPattern, lineNumber){ var key = urlPattern + "#" + lineNumber; if (!(key in console.fbreaks)) return false; var i; var fbreak = console.fbreaks[key]; if ("propsWindow" in fbreak) fbreak.propsWindow.close(); delete console.fbreaks[key]; for (i in ...
ClearEmailField(headerEntry.textNode); if (headerEntry.longTextNode) ClearEmailField(headerEntry.longTextNode);
headerEntry.enclosingBox.clearEmailAddresses();
function ClearHeaderView(headerTable){ for (index in headerTable) { var headerEntry = headerTable[index]; if (headerEntry.useToggle) { ClearEmailField(headerEntry.textNode); if (headerEntry.longTextNode) ClearEmailField(headerEntry.longTextNode); } headerEntry.valid = fa...
gDialog.AddHTMLAttributeTree.clearSelection();
gDialog.AddHTMLAttributeTree.treeBoxObject.selection.clearSelection();
function ClearHTMLInputWidgets(){ gDialog.AddHTMLAttributeTree.clearSelection(); gDialog.AddHTMLAttributeNameInput.value =""; gDialog.AddHTMLAttributeValueInput.value = ""; SetTextboxFocus(gDialog.AddHTMLAttributeNameInput);}
dump("Clear List: list="+list+"\n");
function ClearList(list){ if (list) { list.selectedIndex = -1; for( i=list.length-1; i >= 0; i--) list.remove(i); }}
dump("Clear List: list="+list+"\n");
function ClearList(list){ dump("Clear List: list="+list+"\n"); if (list) { list.selectedIndex = -1; for( i=list.length-1; i >= 0; i--) list.remove(i); }}
while (menulist.firstChild) menulist.removeChild(menulist.firstChild);
var popup = menulist.firstChild; if (popup) while (popup.firstChild) popup.removeChild(popup.firstChild);
function ClearMenulist(menulist){ // There is usually not more than 1 menupopup under a menulist, // but look for > 1 children anyway. // Note -- this doesn't remove menuitems from the menupopop -- SHOULD WE? if (menulist) { menulist.selectedItem = null; while (menulist.firstChild) menulist.removeChild(...
ClearPendingReadTimer();
function ClearMessagePane(){ if(gHaveLoadedMessage) { gHaveLoadedMessage = false; gCurrentDisplayedMessage = null; if (GetMessagePaneFrame().location.href != "about:blank") GetMessagePaneFrame().location.href = "about:blank"; // hide the message header view AND the message pane... HideMessag...
SetUpRemoteContentBar(null);
function ClearMessagePane(){ if(gHaveLoadedMessage) { gHaveLoadedMessage = false; gCurrentDisplayedMessage = null; if (GetMessagePaneFrame().location != "about:blank") GetMessagePaneFrame().location = "about:blank"; // hide the message header view AND the message pane... HideMessageHeaderPane();...
gCurrentDisplayedMessage = null;
function ClearMessagePane(){ if(gHaveLoadedMessage) { gHaveLoadedMessage = false; gCurrentDisplayedMessage = null; if (GetMessagePaneFrame().location.href != "about:blank") GetMessagePaneFrame().location.href = "about:blank"; // hide the message header view AND the message pane... HideMessag...