rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var canDetach = !IsNewsMessage(uri) && (!IsImapMessage(uri) || CheckOnline()); | var canDetach = !IsNewsMessage(uri) && (!IsImapMessage(uri) || MailOfflineMgr.isOnline()); | function CanDetachAttachments(){ var uri = GetLoadedMessage(); var canDetach = !IsNewsMessage(uri) && (!IsImapMessage(uri) || CheckOnline()); if (canDetach && ("content-type" in currentHeaderData)) { var contentType = currentHeaderData["content-type"].headerValue; canDetach = contentType.indexOf("application/... |
canDrop: function(index) { return false; }, | canDrop: function(targetIndex, orientation) { var sourceIndex = this.getSourceIndexFromDrag(); return sourceIndex != -1 && sourceIndex != targetIndex && (orientation == Ci.nsITreeView.DROP_BEFORE || orientation == Ci.nsITreeView.DROP_AFTER); }, | canDrop: function(index) { return false; }, |
return false; var srcDirectory = GetDirectoryFromURI(srcURI); var dragSession = dragService.getCurrentSession(); if (!dragSession) return false; if (!(srcDirectory.operations & srcDirectory.opWrite) && dragSession.dragAction != Components.interfaces. nsIDragService.DRAGDROP_ACTION_COPY) | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... | |
return target.id && target.localName != "menupopup" && target.localName != "toolbar" && target.localName != "menuseparator" && target.localName != "toolbarseparator" & | var bt = document.getElementById("bookmarks-toolbar"); return bt.isBTBookmark(target.id) && | canDrop: function (aEvent, aDragSession) { var target = aEvent.originalTarget; return target.id && target.localName != "menupopup" && target.localName != "toolbar" && target.localName != "menuseparator" && target.localName != "toolbarseparator" & target.id != "NC:SystemBookmarksStaticRoot" ... |
target.id.substring(0,5) != "find:"; | target.id.substring(0,5) != "find:" || target.id == "bookmarks-menu" || target.getAttribute("class") == "chevron" || target.localName == "hbox"; | canDrop: function (aEvent, aDragSession) { var target = aEvent.originalTarget; return target.id && target.localName != "menupopup" && target.localName != "toolbar" && target.localName != "menuseparator" && target.localName != "toolbarseparator" & target.id != "NC:SystemBookmarksStaticRoot" ... |
canHandleContent: function(contentType, command, desiredContentType) | canHandleContent: function(contentType, isContentPreferred, desiredContentType) | canHandleContent: function(contentType, command, desiredContentType) { var docShell = this.contentWindow.docShell; var contentListener; try { contentListener = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.ns... |
return contentListener.canHandleContent(contentType, command, desiredContentType); | return contentListener.canHandleContent(contentType, isContentPreferred, desiredContentType); | canHandleContent: function(contentType, command, desiredContentType) { var docShell = this.contentWindow.docShell; var contentListener; try { contentListener = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.ns... |
optgroupObject.prototype.canMoveDown = function canMoveDown() { return gDialog.lastChild() > treeSelection.currentIndex; } | canMoveDown: function canMoveDown() { return false; }, | optgroupObject.prototype.canMoveDown = function canMoveDown(){ return gDialog.lastChild() > treeSelection.currentIndex;} |
gURLBar.value = "http: | url = "http: | function canonizeUrl(aTriggeringEvent){ if (!gURLBar) return; if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey) // Tack http://www. and .org on. gURLBar.value = "http://www." + gURLBar.value + ".org/";... |
gURLBar.value = "http: | url = "http: gURLBar.value = getShortcutOrURI(url); | function canonizeUrl(aTriggeringEvent){ if (!gURLBar) return; if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey) // Tack http://www. and .org on. gURLBar.value = "http://www." + gURLBar.value + ".org/";... |
url = "http: | var firstSlash = url.indexOf("/"); if (firstSlash >= 0) url = "http: url.substring(firstSlash + 1, url.length); else url = "http: | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null; | if (!/^(www|http)|\/\s*$/i.test(url) && (aTriggeringEvent instanceof KeyEvent)) { | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
var accelPressed = 'metaKey' in aTriggeringEvent && aTriggeringEvent.metaKey; | var accel = aTriggeringEvent.metaKey; | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
var accelPressed = 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey; | var accel = aTriggeringEvent.ctrlKey; | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
var shiftPressed = 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey; | var shift = aTriggeringEvent.shiftKey; | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
if (accelPressed && shiftPressed) suffix = ".org/"; | var suffix = ""; | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
else if (accelPressed) { try { suffix = gPrefService.getCharPref("browser.fixup.alternate.suffix"); if (suffix.charAt(suffix.length - 1) != '/') suffix += "/"; } catch(e) { suffix = ".com/"; } | switch (true) { case (accel && shift): suffix = ".org/"; break; case (shift): suffix = ".net/"; break; case (accel): try { suffix = gPrefService.getCharPref("browser.fixup.alternate.suffix"); if (suffix.charAt(suffix.length - 1) != "/") suffix += "/"; } catch(e) { suffix = ".com/"; } break; | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
else if (shiftPressed) suffix = ".net/"; | if (suffix) { url = url.replace(/^\s+/, "").replace(/\s+$/, ""); | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... |
if (suffix != null) { url = url.replace( /^\s+/, ""); url = url.replace( /\s+$/, ""); | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTrigger... | |
return true; } | return true; }, | canUnload: function(compMgr) { return true; } |
dump("*** Unloading Proxy Auto Config...\n"); | pacModule.canUnload = function (compMgr) { dump("*** Unloading Proxy Auto Config...\n"); return true; } | |
if ("parentNode" in aEvent.target && aEvent.target.parentNode.hasAttribute("message")) { alertMessage(aEvent.target.parentNode.getAttribute("message")); | if (aEvent.target.hasAttribute("message")) { alertMessage(aEvent.target.getAttribute("message")); return true; | function captureContentClick(aEvent){ if ("parentNode" in aEvent.target && aEvent.target.parentNode.hasAttribute("message")) { alertMessage(aEvent.target.parentNode.getAttribute("message")); }} |
return contentAreaClick(aEvent); | function captureContentClick(aEvent){ if ("parentNode" in aEvent.target && aEvent.target.parentNode.hasAttribute("message")) { alertMessage(aEvent.target.parentNode.getAttribute("message")); }} | |
failures.innerHTML += "Unknown Test<br/> Error: " + data + "<br/>"; | failures.innerHTML += "Unknown Failure: " + data + "<br/>"; | function catchFailure(data) { // which test have we just run? failures.innerHTML += "Unknown Test<br/> Error: " + data + "<br/>"; failcount++; failreport.innerHTML = failcount;} |
return this; | function CBSConnection (binary){ /* Since 2003-01-17 18:14, Mozilla has had this contract ID for the STS. * Prior to that it didn't have one, so we also include the CID for the * STS back then - DO NOT UPDATE THE ID if it changes in Mozilla. */ const sockClassByName = Components.classes["@mozil... | |
str = str.replace(/%descrptionline%/g, ""); | str = str.replace(/%descriptionline%/g, ""); | function CCKWriteInstallRDF(destdir){ var idline = "<em:id>%id%</em:id>"; var nameline = "<em:name>%name%</em:name>"; var versionline = "<em:version>%version%</em:version>"; var descriptionline = "<em:description>%description%</em:description>"; var creatorline = "<em:creator>%creator%</em:... |
s.left = parseInt(($.css(p,"width") - $.css(this,"width"))/2, 10) + "px"; s.top = parseInt(($.css(p,"height") - $.css(this,"height"))/2, 10) + "px"; | s.left = (($.css(p,"width") - $.css(this,"width"))/2) + "px"; s.top = (($.css(p,"height") - $.css(this,"height"))/2) + "px"; | $.fn.center = function(f) { return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){ $(self).center(true); }, 13); } else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ... |
return this.users[this.parent.me.canonicalName].isHalfOp; | return this.active && this.users[this.parent.me.canonicalName].isHalfOp; | function chan_amhalfop(){ return this.users[this.parent.me.canonicalName].isHalfOp;} |
return this.users[this.parent.me.canonicalName].isOp; | return this.active && this.users[this.parent.me.canonicalName].isOp; | function chan_amop(){ return this.users[this.parent.me.canonicalName].isOp;} |
return this.parent.users[this.parent.parent.me.canonicalName].isVoice; | return this.active && this.users[this.parent.me.canonicalName].isVoice; | function chan_amvoice(){ return this.parent.users[this.parent.parent.me.canonicalName].isVoice;} |
if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; | msg = msg || ""; type = type || "PRIVMSG"; | function chan_ctcpto (code, msg, type){ if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; this.parent.messageTo(type, this.encodedName, fromUnicode(msg, this), code);} |
this.parent.messageTo (type, this.encodedName, msg, code); | this.parent.messageTo(type, this.encodedName, fromUnicode(msg, this), code); | function chan_ctcpto (code, msg, type){ if (typeof msg == "undefined") msg = ""; if (typeof type == "undefined") type = "PRIVMSG"; this.parent.messageTo (type, this.encodedName, msg, code);} |
return this.parent.parent.getURL() + this.name + "/"; | var target; if (this.name[0] == "#") target = this.name.substr(1); else target = escape(this.name); return this.parent.parent.getURL() + target; | function chan_geturl (){ return this.parent.parent.getURL() + this.name + "/";} |
target = escape(this.normalizedName.substr(1)); | target = ecmaEscape(this.normalizedName.substr(1)); | function chan_geturl (){ var target; if (this.normalizedName[0] == "#") target = escape(this.normalizedName.substr(1)); else target = escape(this.normalizedName); return this.parent.parent.getURL(target);} |
target = escape(this.normalizedName); | target = ecmaEscape(this.normalizedName); | function chan_geturl (){ var target; if (this.normalizedName[0] == "#") target = escape(this.normalizedName.substr(1)); else target = escape(this.normalizedName); return this.parent.parent.getURL(target);} |
if (this.key) str += "k"; if (this.limit != -1) str += "l " + this.limit; | function chan_modestr (f){ var str = ""; if (this.invite) str += "i"; if (this.moderated) str += "m"; if (!this.publicMessages) str += "n"; if (!this.publicTopic) str += "t"; if (this.pvt) str += "p"; if (str) str = "+" + str; return str; } | |
this.parent.noticeTo (this.encodedName, msg); | this.parent.noticeTo(this.encodedName, fromUnicode(msg, this)); | function chan_notice (msg){ this.parent.noticeTo (this.encodedName, msg);} |
this.parent.actTo (this.encodedName, msg); | this.parent.actTo(this.encodedName, fromUnicode(msg, this)); | function chan_say (msg){ this.parent.actTo (this.encodedName, msg);} |
modifier + "p\n"); | modifier + "s\n"); | function chan_secret (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "+" : "-"; this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + modifier + "p\n"); return true; } |
this.parent.sendData ("TOPIC " + this.encodedName + " :" + str + "\n"); | this.parent.sendData ("TOPIC " + this.encodedName + " :" + fromUnicode(str, this) + "\n"); | function chan_topic (str){ this.parent.sendData ("TOPIC " + this.encodedName + " :" + str + "\n");} |
this.opCount = 0; this.voiceCount = 0; | function chan_userslen (){ var i = 0; for (var p in this.users) i++; return i; } | |
} | function chan_userslen (){ var i = 0; for (var p in this.users) i++; return i; } | |
window.title = aCaption; | function ChangeCaption( aCaption ){ var caption = document.getElementById( "header" ); caption.setAttribute( "value", aCaption );} | |
node.setAttribute("id", "main-css"); | node.setAttribute("id", id); | function changeCSS(url, id){ if (!id) id = "main-css"; node = document.getElementById(id); if (!node) { node = document.createElement("link"); node.setAttribute("id", "main-css"); node.setAttribute("rel", "stylesheet"); node.setAttribute("type", "text/css"); var... |
document.getElementById("allowWindowOpen").disabled = state; | function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScripts").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowWindowOpen").disabled = sta... | |
document.getElementById("allowHideStatusBar").disabled = state; | function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScripts").disabled = state; document.getElementById("allowTargetNew").disabled = state; document.getElementById("allowWindowMoveResize").disabled = stat... | |
document.getElementById("allowTargetNew").disabled = state; | function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScripts").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowWindowOpen").disabled = sta... | |
document.getElementById("allowContextmenuDisable").disabled = state; | function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScripts").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowImageSrcChange").disabled =... | |
document.getElementById('allowScriptsDescription').disabled = state; document.getElementById('allowWindowMoveResize').disabled = state; document.getElementById('allowWindowOpen').disabled = state; document.getElementById('allowImageSrcChange').disabled = state; document.getElementById('allowDocumentCookieSet').disabled... | document.getElementById("allowScriptsDescription").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowWindowOpen").disabled = state; document.getElementById("allowImageSrcChange").disabled = state; document.getElementById("allowDocumentCookieSet").disabled... | function changeDisabledState(state){ // set the groupbox children's state based on the "javascript enabled" checkbox value document.getElementById('allowScriptsDescription').disabled = state; document.getElementById('allowWindowMoveResize').disabled = state; document.getElementById('allowWindowOpen').disabled = sta... |
ChangeFolderByURI(uri, isThreaded == "true", sortResource, sortDirection); | ChangeFolderByURI(uri, isThreaded == "true", sortResource, sortDirection, viewType); | function ChangeFolderByDOMNode(folderNode){ if (folderNode.getAttribute('NoSelect') == "true" ) { ClearThreadPane(); return; } var uri = folderNode.getAttribute('id'); dump(uri + "\n"); var isThreaded = folderNode.getAttribute('threaded'); if ((isThreaded == "") && isNewsURI(uri)) { isThreaded = "true"; } ... |
SetBusyCursor(window, false); | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection, viewType){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleF... | |
if(msgfolder.manyHeadersToDownload) | var showMessagesAfterLoading; try { var server = msgfolder.server; if (server.redirectorType) { var prefString = server.type + "." + server.redirectorType + ".showMessagesAfterLoading"; showMessagesAfterLoading = gPrefs.getBoolPref(prefString); } else showMessagesAfterLoading = false; } catch (ex) { showMessagesAfterLo... | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFol... |
if(msgfolder.isServer) { ClearThreadPane(); return; } | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(msgfolder, null); } catch (ex) { dump("error setting title: "... | |
viewDebug("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); | function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; // hook for extra toolbar items var observerService = Components.classes["@mozilla.org/observer-service;1"].getSe... | |
SetBusyCursor(window, true); | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(msgfolder, null); } catch (ex) { dump("error setting title: "... | |
function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection) | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection, viewType) | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(... |
RerootFolder(uri, msgfolder, isThreaded, sortID, sortDirection); | gCurrentLoadingFolderViewType = ""; RerootFolder(uri, msgfolder, isThreaded, sortID, sortDirection, viewType); | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(... |
UnselectNamedAnchor(); UnselectHeadings(); | if (gClearListSelections) { UnselectNamedAnchor(); UnselectHeadings(); } | function ChangeLocation(){ // Unselect the treelists UnselectNamedAnchor(); UnselectHeadings(); // Set OK button enable state ChangeText();} |
val /= gDoingMetric ? 100 : 10; var style = attr + ":" + val + unitString() + ";"; | var style = attr + ":" + (val/10) + unitString() + ";"; | function changeMargin( node ){ // Correct invalid input. checkDouble(node); // Reset the margin height/width for this node. var val = node.value; var nodeToStyle; var attr="width"; if ( node == gDialog.topInput ) { nodeToStyle = gDialog.marginTop; val = checkMargin( val, gPageHeight, gDialog.bottomInput );... |
gDBView.reloadMessage(); | gDBView.loadMessageByUrl("about:blank"); gDBView.selectionChanged(); | function ChangeMessagePaneVisibility(now_hidden){ // we also have to hide the File/Attachments menuitem var node = document.getElementById("fileAttachmentMenu"); if (node) node.hidden = now_hidden; if (gDBView) { // clear the subject, collapsing won't automatically do this setTitleFromFolder(GetThreadPaneF... |
var mimeSource = gRDF.GetResource(aMIMEString); var valueProperty = gRDF.GetResource(NC_RDF(aPropertyString)); | var mimeSource = gRDF.GetUnicodeResource(aMIMEString); var valueProperty = gRDF.GetUnicodeResource(NC_RDF(aPropertyString)); | function changeMIMEStuff(aMIMEString, aPropertyString, aValueString){ var mimeSource = gRDF.GetResource(aMIMEString); var valueProperty = gRDF.GetResource(NC_RDF(aPropertyString)); var mimeLiteral = gRDF.GetLiteral(aValueString); var currentValue = gDS.GetTarget(mimeSource, valueProperty, true); if (currentValue) ... |
nameInput.value = PrepareStringForURL(nameInput.value.replace(/\s+/g, "_")); | nameInput.value = ConvertToCDATAString(nameInput.value); | function ChangeName(){ if (nameInput.value.length > 0) { // Replace spaces with "_" and strip other non-URL characters // Note: we could use ConvertAndEscape, but then we'd // have to UnEscapeAndConvert beforehand - too messy! nameInput.value = PrepareStringForURL(nameInput.value.replace(/\s+/g, "_")); ... |
wallet = Components.classes['component: | wallet = Components.classes['@mozilla.org/wallet;1']; | function changePasswords(){ wallet = Components.classes['component://netscape/wallet']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); wallet.WALLET_ChangePassword();} |
timeout = "0"; | timeout = "1"; | function changePasswordSettings(){ var askTimes = 0; var timeout = internal_token.getAskPasswordTimeout(); var timeoutField = document.getElementById("passwordTimeout"); var radiogroup = document.getElementById("passwordAskTimes"); switch ( radiogroup.value ) { case "0": timeoutField.setAttribute("disabled", ... |
{ if (gHighlightedMessageText) removeHighlighting(); | function changeQuickSearchMode(aMenuItem){ viewDebug("changing quick search mode\n"); // extract the label and set the search input to match it var oldSearchMode = gSearchInput.searchMode; gSearchInput.searchMode = aMenuItem.value; if (gSearchInput.value == "" || gSearchInput.showingSearchCriteria) { gSearchIn... | |
} | function changeQuickSearchMode(aMenuItem){ viewDebug("changing quick search mode\n"); // extract the label and set the search input to match it var oldSearchMode = gSearchInput.searchMode; gSearchInput.searchMode = aMenuItem.value; if (gSearchInput.value == "" || gSearchInput.showingSearchCriteria) { gSearchIn... | |
SetElementEnabledById("ok", enable); | SetElementEnabled(gDialog.OkButton, enable); | function ChangeRowOrColumn(id){ // Allow only integers forceInteger(id); // Enable OK only if both rows and columns have a value > 0 var enable = gDialog.rowsInput.value.length > 0 && gDialog.rowsInput.value > 0 && gDialog.columnsInput.value.length > 0 && ... |
var rv = { newdpi : 0 }; | var rv = { newdpi : -1 }; | function changeScreenResolution() { var screenResolution = document.getElementById("screenResolution"); var userResolution = document.getElementById("userResolution"); var previousSelection = screenResolution.getElementsByAttribute("current", "true")[0]; if (screenResolution.value == "other") { ... |
calscreen = window.openDialog("chrome: | var calscreen = window.openDialog("chrome: | function changeScreenResolution() { var screenResolution = document.getElementById("screenResolution"); var userResolution = document.getElementById("userResolution"); var previousSelection = screenResolution.getElementsByAttribute("current", "true")[0]; if (screenResolution.value == "other") { ... |
if(messageView.viewType == viewShowUnread) return; | function ChangeThreadView(){ var folder = GetSelectedFolder(); var threadColumn = document.getElementById('ThreadColumnHeader'); if(threadColumn) { var currentView = threadColumn.getAttribute('currentView'); if(currentView== 'threaded') { ShowThreads(false); if(folder) folder.setAttribute('threaded', "false... | |
var title; | function changeTitleBar(componentType){ // Sanity check input if ( componentType == "event" || componentType == "todo" ) { var args = window.arguments[0]; // Is this a NEW event/todo, or are we EDITing an existing event/todo? if( "new" == args.mode ) title = document.getElementById( ... | |
if($.inArray(OSC.state.sel_sig_name, ['ch1', 'ch2', 'math']) < 0) { | if($.inArray(OSC.state.sel_sig_name, ['ch1', 'ch2', 'math', 'output1', 'output2']) < 0) { | OSC.changeYZoom = function(direction, curr_scale, send_changes) { // Output 1/2 signals do not have zoom if($.inArray(OSC.state.sel_sig_name, ['ch1', 'ch2', 'math']) < 0) { return; } var curr_scale = (curr_scale === undefined ? OSC.params.orig['OSC_' + OSC.state.sel_sig_name.toUpperCase() + '... |
gPrevCharset = gLastBrowserCharset; | function charsetLoadListener (event){ var charset = window._content.document.characterSet; if (charset.length > 0 && (charset != gLastBrowserCharset)) { gCharsetMenu.SetCurrentCharset(charset); gLastBrowserCharset = charset; }} | |
var charset = window.content.document.characterSet; | var charset = window._content.document.characterSet; | function charsetLoadListener (event){ var menu = Components.classes['component://netscape/rdf/datasource?name=charset-menu']; if (menu) { menu = menu.getService(); menu = menu.QueryInterface(Components.interfaces.nsICurrentCharsetListener); } var charset = window.content.document.characterSet;... |
var menu = Components.classes['component: | var menu = Components.classes['@mozilla.org/rdf/datasource;1?name=charset-menu']; | function charsetLoadListener (event){ var menu = Components.classes['component://netscape/rdf/datasource?name=charset-menu']; if (menu) { menu = menu.getService(); menu = menu.QueryInterface(Components.interfaces.nsICurrentCharsetListener); } var charset = window._content.document.characterSet... |
if(document.formmsg.all) | if(document.cmd.all) | function CheckAll(){ if(document.formmsg.all) { var c = document.formmsg.all.checked; } for (var i=0;i<document.formmsg.elements.length;i++) { var e = document.formmsg.elements[i]; if(e.name != 'all') e.checked = c; }} |
var c = document.formmsg.all.checked; | var c = document.cmd.all.checked; | function CheckAll(){ if(document.formmsg.all) { var c = document.formmsg.all.checked; } for (var i=0;i<document.formmsg.elements.length;i++) { var e = document.formmsg.elements[i]; if(e.name != 'all') e.checked = c; }} |
for (var i=0;i<document.formmsg.elements.length;i++) | for (var i=0;i<document.cmd.elements.length;i++) | function CheckAll(){ if(document.formmsg.all) { var c = document.formmsg.all.checked; } for (var i=0;i<document.formmsg.elements.length;i++) { var e = document.formmsg.elements[i]; if(e.name != 'all') e.checked = c; }} |
var e = document.formmsg.elements[i]; | var e = document.cmd.elements[i]; | function CheckAll(){ if(document.formmsg.all) { var c = document.formmsg.all.checked; } for (var i=0;i<document.formmsg.elements.length;i++) { var e = document.formmsg.elements[i]; if(e.name != 'all') e.checked = c; }} |
promptService.confirmEx(window, dialogTitle, dialogMsg, promptFlags, button1Title, null, button3Title, null, {value:0}, result); | result = promptService.confirmEx( window, dialogTitle, dialogMsg, promptFlags, button1Title, null, button3Title, null, {value:0} ); | function CheckAndSaveDocument(command, allowDontSave){ try { // if we don't have an editorShell or an editorDocument, bail if (!window.editorShell && !window.editorShell.editorDocument) return true; } catch (e) { return true; } var document = editorShell.editorDocument; if (!editorShell.documentModified ... |
commonDialogsService.UniversalDialog( | promptService.UniversalDialog( | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit... |
promptService.universalDialog( window, null, dialogTitle, dialogMsg, null, window.editorShell.GetString("Save"), window.editorShell.GetString("Cancel"), (allowDontSave ? window.editorShell.GetString("DontSave") : null), null, null, null, {value:0}, {value:0}, "question-icon", {value:"false"}, (allowDontSave ? 3 : 2), 0... | promptService.confirmEx(window, dialogTitle, dialogMsg, (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1), (allowDontSave ? window.editorShell.GetString("DontSave") : null), null, {value:0}, result); | function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit... |
if (gHTMLSourceChanged) FinishHTMLSource(); | if (gHTMLSourceChanged) { try { FinishHTMLSource(); } catch (e) { return false;} } | function CheckAndSaveDocument(command, allowDontSave){ var document; try { // if we don't have an editor or an document, bail if (!gEditor) return true; document = gEditor.document; if (!document) return true; } catch (e) { return true; } if (!gEditor.documentModified && !gHTMLSourceChanged) ... |
if( ThisToDo.percent == 0 ) ThisToDo.status = ThisToDo.ICAL_STATUS_NEEDSACTION; else ThisToDo.status = ThisToDo.ICAL_STATUS_INPROCESS; } | function checkboxClick( event ){ var ThisToDo = event.currentTarget.parentNode.parentNode.toDo; if( event.currentTarget.checked == true ) { var completedTime = new Date(); ThisToDo.completed.setTime( completedTime ); } else ThisToDo.completed.clear(); gICalLib.modifyTodo( ThisToDo );... | |
#else finishText.firstChild.data = gProfileManagerBundle.getString("profileFinishTextMac"); #endif | function checkCurrentInput(currentInput){ var finishButton = document.documentElement.getButton("finish"); var finishText = document.getElementById("finishText"); var canAdvance; var errorMessage = checkProfileName(currentInput); if (!errorMessage) { finishText.className = ""; finishText.firstChild.data = gP... | |
globals.debug( "checkData" ); | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
globals.debug( "not editing" ); | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
globals.debug( "top case" ); | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
globals.debug( "selectedISP: " + globals.selectedISP ); globals.debug( "selectedIndex: " + selectedIndex ); | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
globals.debug( "areaCode: " + areaCode );s | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
globals.debug( "calling createConfigIAS" ); | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
globals.debug( "opening support window" ); | function checkData(){ netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" ); globals.debug( "checkData" ); // * skip if we're in edit mode if ( globals.document.vars.editMode.value != "yes" ) { globals.debug( "not editing" ); if ( document.forms != null && document.forms[ 0 ] != null && document.form... | |
var brandShortName = this.mBrandBundle.getString("brandRealShortName"); | var brandShortName = this.mBrandBundle.getString("brandShortName"); | checkDefaultMailNow: function (isNews) { var mapiReg = Components.classes["@mozilla.org/mapiregistry;1"] .getService(Components.interfaces.nsIMapiRegistry); var brandShortName = this.mBrandBundle.getString("brandRealShortName"); var promptTitle = this.mMapiBundle.getFormattedString("dialo... |
var startDate = document.getElementById( "start-date-picker" ).value; var dueDate = document.getElementById( "due-date-picker" ).value; | var startDate = document.getElementById( "start-datetime" ).value; var dueDate = document.getElementById( "due-datetime" ).value; | function checkDueDate(){ // Bad to get into floats. var startDate = document.getElementById( "start-date-picker" ).value; var dueDate = document.getElementById( "due-date-picker" ).value; if( startDate.getFullYear() == dueDate.getFullYear() && startDate.getMonth() == dueDate.getMonth() && start... |
var startDate = document.getElementById( "start-date-picker" ).value; var endDate = document.getElementById( "end-date-picker" ).value; | var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value; | function checkEndDate(){ // Bad to get into floats. var startDate = document.getElementById( "start-date-picker" ).value; var endDate = document.getElementById( "end-date-picker" ).value; if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && start... |
var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value; if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && startDate.getDay() == endDate.getDay() ) return( 0 ); else if ( endDate < startDate) | if( gStartDate.getFullYear() == gEndDate.getFullYear() && gStartDate.getMonth() == gEndDate.getMonth() && gStartDate.getDay() == gEndDate.getDay() ) { if( getFieldValue( "all-day-event-checkbox", "checked" ) ) { return( -1 ) } else { return( 0 ); } } else if ( gEndDate < gStartDate) { | function checkEndDate(){ var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value; if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && startDate.getDay() == endDate.getDay() )... |
else if (endDate > startDate) | } else if ( gEndDate > gStartDate) { | function checkEndDate(){ var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value; if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && startDate.getDay() == endDate.getDay() )... |
} | function checkEndDate(){ var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value; if( startDate.getFullYear() == endDate.getFullYear() && startDate.getMonth() == endDate.getMonth() && startDate.getDay() == endDate.getDay() )... | |
var prefInt = null; var strDefaultSearchEngineName; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); strDefaultSearchEngineName = prefInt.getLocalizedUnicharPref("browser.search.defaultenginename"); } | var strDefaultSearchEngineName = parent.hPrefWindow.getPref("localizedstring", "browser.search.defaultenginename"); | function checkEngine(){ var engineList = document.getElementById("engineList"); var engineValue = engineList.label; //nothing is selected if (!engineValue) { try { var prefInt = null; //Preferences Interface var strDefaultSearchEngineName; prefInt = Components.classes["@mozilla... |
var prefInt = null; var strDefaultSearchEngineName; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); strDefaultSearchEngineName = prefInt.getLocalizedUnicharPref("browser.search.defaultenginename"); } | var strDefaultSearchEngineName = parent.hPrefWindow.pref.getLocalizedUnicharPref("browser.search.defaultenginename"); | function checkEngine(){ var engineList = document.getElementById("engineList"); var engineValue = engineList.label; //nothing is selected if (!engineValue) { try { var prefInt = null; //Preferences Interface var strDefaultSearchEngineName; prefInt = Components.classes["@mozilla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.