rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
this.showItem( "context-sep-properties", !( this.inDirList || this.isTextSelected || this.onTextInput ) ); | this.showItem( "context-sep-properties", !( this.inDirList || this.isContentSelected || this.onTextInput ) ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected && !this.onTextInput ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); var showVi... |
var haveSetWallpaper = false; | var haveSetDesktopBackground = false; | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isContentSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected ); this.showItem( "context-v... |
haveSetWallpaper = true; | haveSetDesktopBackground = true; | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isContentSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected ); this.showItem( "context-v... |
this.showItem( "context-setWallpaper", haveSetWallpaper && this.onImage ); | this.showItem( "context-setDesktopBackground", haveSetDesktopBackground && this.onImage ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isContentSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected ); this.showItem( "context-v... |
if( haveSetWallpaper && this.onImage ) this.setItemAttr( "context-setWallpaper", "disabled", (("complete" in this.target) && !this.target.complete) ? "true" : null ); | if( haveSetDesktopBackground && this.onImage ) this.setItemAttr( "context-setDesktopBackground", "disabled", (("complete" in this.target) && !this.target.complete) ? "true" : null ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isContentSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected ); this.showItem( "context-v... |
this.showItem( "context-sep-image", this.onImage || this.onStandaloneImage); | this.showItem( "context-sep-image", this.onLoadedImage || this.onStandaloneImage); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected && !this.onTextInput ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); var showVi... |
this.showItem( "context-viewimage", this.onImage && !this.onStandaloneImage ); | this.showItem( "context-viewimage", this.onImage && ( !this.onStandaloneImage || this.inFrame ) ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isContentSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected ); this.showItem( "context-v... |
allMenuItem.setAttribute("checked", messageView.viewType == viewShowAll); | allMenuItem.setAttribute("checked", messageView.viewType == nsMsgViewType.eShowAll); | function InitViewMessagesMenu(){ var allMenuItem = document.getElementById("viewAllMessagesMenuItem"); var hidden = allMenuItem.getAttribute("hidden") == "true"; if(allMenuItem && !hidden) allMenuItem.setAttribute("checked", messageView.viewType == viewShowAll); var unreadMenuItem = document.getEleme... |
unreadMenuItem.setAttribute("checked", messageView.viewType == viewShowUnread); | unreadMenuItem.setAttribute("checked", messageView.viewType == nsMsgViewType.eShowUnread); | function InitViewMessagesMenu(){ var allMenuItem = document.getElementById("viewAllMessagesMenuItem"); var hidden = allMenuItem.getAttribute("hidden") == "true"; if(allMenuItem && !hidden) allMenuItem.setAttribute("checked", messageView.viewType == viewShowAll); var unreadMenuItem = document.getEleme... |
setSortByMenuItemCheckState("sortByAttachmentsMenuitem", (sortType == nsMsgViewSortType.byAttachments)); | function InitViewSortByMenu(){ var sortType = gDBView.sortType; setSortByMenuItemCheckState("sortByDateMenuitem", (sortType == nsMsgViewSortType.byDate)); setSortByMenuItemCheckState("sortByFlagMenuitem", (sortType == nsMsgViewSortType.byFlagged)); setSortByMenuItemCheckState("sortByOrderReceivedMenuitem", ... | |
$.fn.innerHeight = function() { | jQuery.fn.innerHeight = function() { | $.fn.innerHeight = function() { return this.get(0) == window || this.get(0) == document ? this.height() : this.get(0).offsetHeight - parseInt(this.css("borderTop") || 0) - parseInt(this.css("borderBottom") || 0);}; |
this.get(0).offsetHeight - parseInt(this.css("borderTop")) - parseInt(this.css("borderBottom")); | this.get(0).offsetHeight - parseInt(this.css("borderTop") || 0) - parseInt(this.css("borderBottom") || 0); | $.fn.innerHeight = function() { return this.get(0) == window || this.get(0) == document ? this.height() : this.get(0).offsetHeight - parseInt(this.css("borderTop")) - parseInt(this.css("borderBottom"));}; |
$.fn.innerWidth = function() { | jQuery.fn.innerWidth = function() { | $.fn.innerWidth = function() { return this.get(0) == window || this.get(0) == document ? this.width() : this.get(0).offsetWidth - parseInt(this.css("borderLeft") || 0) - parseInt(this.css("borderRight") || 0);}; |
this.get(0).offsetWidth - parseInt(this.css("borderLeft")) - parseInt(this.css("borderRight")); | this.get(0).offsetWidth - parseInt(this.css("borderLeft") || 0) - parseInt(this.css("borderRight") || 0); | $.fn.innerWidth = function() { return this.get(0) == window || this.get(0) == document ? this.width() : this.get(0).offsetWidth - parseInt(this.css("borderLeft")) - parseInt(this.css("borderRight"));}; |
browser.addEventListener("PageShow", inSearchService_LoadListener, true); | browser.addEventListener("pageshow", inSearchService_LoadListener, true); | function inSearchService() { this.mInstances = {}; this.mObservers = []; // the browser and webnav are a hack. We should be able to use // the xmlextras facility for loading xml, but it's broken, so // we use a browser for onw var browser = document.getElementById("inSearchServiceLoader"); browser.addEventL... |
kBMS.createBookmarkWithDetails(aTitle, aURL, aCharset, aFolderRes, aIndex); | kBMS.createBookmarkInContainer(aTitle, aURL, aCharset, aFolderRes, aIndex); | insertBookmarkAt: function (aURL, aTitle, aCharset, aFolderRes, aIndex) { const kBMSContractID = "@mozilla.org/browser/bookmarks-service;1"; const kBMSIID = Components.interfaces.nsIBookmarksService; const kBMS = Components.classes[kBMSContractID].getService(kBMSIID); kBMS.createBookmarkWithDetails(aTitl... |
kBMS.createBookmarkEx(aTitle, aURL, aCharset, aFolderRes, aIndex); | kBMS.createBookmarkWithDetails(aTitle, aURL, aCharset, aFolderRes, aIndex); | function insertBookmarkAt(aURL, aTitle, aCharset, aFolderRes, aIndex){ const kBMSContractID = "@mozilla.org/browser/bookmarks-service;1"; const kBMSIID = Components.interfaces.nsIBookmarksService; const kBMS = Components.classes[kBMSContractID].getService(kBMSIID); kBMS.createBookmarkEx(aTitle, aURL, aCharset, aFol... |
anchor.setAttribute ("href", "http: number); | anchor.setAttribute ("href", client.BUG_URL.replace("%s", number)); | function insertBugzillaLink (matchText, containerTag){ var number = matchText.match (/(\d+)/)[1]; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", "http://bugzilla.mozilla.org/sho... |
escape(encodedMatchText)); | ecmaEscape(encodedMatchText)); | function insertChannelLink (matchText, containerTag, eventData){ var bogusChannels = /^#(include|error|define|if|ifdef|else|elsif|endif|\d+)$/i; if (!eventData.network || matchText.search(bogusChannels) != -1) { containerTag.appendChild(document.createTextNode(matchText)); return; } ... |
if (!eventData.network || | if (!("network" in eventData) || | function insertChannelLink (matchText, containerTag, eventData){ if (!eventData.network || matchText.search (/^#(include|error|define|if|ifdef|else|elsif|endif)$/i) != -1) { containerTag.appendChild (document.createTextNode(matchText)); return; } var anchor = document.cr... |
(/^#(include|error|define|if|ifdef|else|elsif|endif)$/i) != -1) | (/^#(include|error|define|if|ifdef|else|elsif|endif|\d+)$/i) != -1) | function insertChannelLink (matchText, containerTag, eventData){ if (!eventData.network || matchText.search (/^#(include|error|define|if|ifdef|else|elsif|endif)$/i) != -1) { containerTag.appendChild (document.createTextNode(matchText)); return; } var anchor = document.cr... |
anchor.setAttribute ("href", "irc: matchText); | anchor.setAttribute ("href", "irc: "/" + escape (matchText)); | function insertChannelLink (matchText, containerTag, eventData){ if (!eventData.network || matchText.search (/^#(include|error|define|if|ifdef|else|elsif|endif)$/i) != -1) { containerTag.appendChild (document.createTextNode(matchText)); return; } var anchor = document.cr... |
item.setAttribute("class", "emailDisplayButton"); item.setAttribute("popup", "emailAddressPopup"); item.setAttribute("value", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("popup", "emailAddressPopup"); ... | |
parentDiv.appendChild(item); | parentDiv.appendChild(item); item.setAttribute("class", "emailDisplayButton"); item.setAttribute("popup", "emailAddressPopup"); item.setAttribute("value", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("popup", "emailAddressPopup"); ... |
var item = document.createElement("titledbutton"); | var item = document.createElement("mail-emailaddress"); var itemInDocument; | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); if (pa... |
item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); if (pa... | |
parentDiv.insertBefore(item, child); | itemInDocument = parentDiv.insertBefore(item, child); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); if (pa... |
parentDiv.appendChild(item); | { itemInDocument = parentDiv.appendChild(item); } | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); if (pa... |
item.setAttribute("class", "emailDisplayButton"); item.setAttribute("popup", "emailAddressPopup"); item.setAttribute("value", fullAddress); item.setAttribute("emailAddress", emailAddress); item.setAttribute("fullAddress", fullAddress); | itemInDocument.setAttribute("value", fullAddress); itemInDocument.setTextAttribute("emailAddress", emailAddress); itemInDocument.setTextAttribute("fullAddress", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); if (pa... |
AddExtraAddressProcessing(emailAddress, item); | AddExtraAddressProcessing(emailAddress, itemInDocument); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("titledbutton"); if ( item && parentDiv) { item.setAttribute("class", "emailDisplayButton"); item.setAttribute("value", fullAddress); if (pa... |
var img = document.createElementNS ("http: "html:img"); img.setAttribute ("style", "border: none; width: 0px; height: 0px;"); containerTag.appendChild (img); | var wbr = document.createElementNS ("http: "html:wbr"); containerTag.appendChild (wbr); | function insertHyphenatedWord (longWord, containerTag){ var wordParts = splitLongWord (longWord, client.MAX_WORD_DISPLAY); for (var i = 0; i < wordParts.length; ++i) { containerTag.appendChild (document.createTextNode (wordParts[i])); if (i != wordParts.length) { var img = docum... |
containerTag.appendChild (document.createTextNode (hyphenateWord(longWord, client.MAX_WORD_DISPLAY))); | var wordParts = splitLongWord (longWord, client.MAX_WORD_DISPLAY); for (var i = 0; i < wordParts.length; ++i) { containerTag.appendChild (document.createTextNode (wordParts[i])); if (i != wordParts.length) { var img = document.createElementNS ("http: "html:img"); img.setAttribute ("class", "spacer-image"); containerTag... | function insertHyphenatedWord (longWord, containerTag){ containerTag.appendChild (document.createTextNode (hyphenateWord(longWord, client.MAX_WORD_DISPLAY)));} |
if (matchText.length >= client.MAX_WORD_DISPLAY) matchText = hyphenateWord (matchText, client.MAX_WORD_DISPLAY); anchor.appendChild (document.createTextNode (matchText)); | insertHyphenatedWord (matchText, anchor); | function insertLink (matchText, containerTag){ var href; if (matchText.indexOf ("://") == -1) href = "http://" + matchText; else href = matchText; var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAt... |
anchor.setAttribute ("class", "rheet"); | anchor.setAttribute ("class", "chatzilla-rheet chatzilla-link"); | function insertRheet (matchText, containerTag){ var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", "ftp://ftp.mozilla.org/pub/mozilla/libraries/bonus-tracks/rheet.wav"); anchor.setAttri... |
if (matchText.length >= client.MAX_WORD_DISPLAY) matchText = hyphenateWord (matchText, client.MAX_WORD_DISPLAY); anchor.appendChild (document.createTextNode (matchText)); | insertHyphenatedWord (matchText, anchor); | function insertRheet (matchText, containerTag){ var anchor = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:a"); anchor.setAttribute ("href", "ftp://ftp.mozilla.org/pub/mozilla/libraries/bonus-tracks/rheet.wav"); anchor.setAttri... |
insertSelection: function (aAction, aSelection, aTarget, aDoCopy) | insertSelection: function (aAction, aSelection, aTarget) | insertSelection: function (aAction, aSelection, aTarget, aDoCopy) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "... |
if (aDoCopy && aSelection.isContainer[i]) { transaction.isValid[i]=false; SOUND.beep(); } | insertSelection: function (aAction, aSelection, aTarget, aDoCopy) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "... | |
if (aDoCopy && aSelection.isContainer[i]) rSource = BookmarksUtils.cloneFolder(rSource); | if (BMSVC.isBookmarkedInternal(rSource)) rSource = BMSVC.cloneResource(rSource); | insertSelection: function (aAction, aSelection, aTarget, aDoCopy) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "... |
var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "move") transaction.isValid = BookmarksUtils.isSelectionValidForInsertion(aSelection, a... | var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); | insertSelection: function (aAction, aSelection, aTarget) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "move") ... |
if (transaction.isValid[i]) { if (BMSVC.isBookmarkedResource(rSource)) rSource = BMSVC.cloneResource(rSource); transaction.item [i] = rSource; transaction.parent[i] = aTarget.parent; transaction.index [i] = index++; } else { transaction.item [i] = rSource; transaction.parent[i] = aSelection.parent[i]; } | if (BMSVC.isBookmarkedResource(rSource)) rSource = BMSVC.cloneResource(rSource); transaction.item [i] = rSource; transaction.parent[i] = aTarget.parent; transaction.index [i] = index++; | insertSelection: function (aAction, aSelection, aTarget) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "move") ... |
if (!BookmarksUtils.all(transaction.isValid)) SOUND.beep(); var isCancelled = !BookmarksUtils.any(transaction.isValid); if (!isCancelled) { BMSVC.transactionManager.doTransaction(transaction); BookmarksUtils.flushDataSource(); } return !isCancelled; | BMSVC.transactionManager.doTransaction(transaction); | insertSelection: function (aAction, aSelection, aTarget) { var transaction = new BookmarkInsertTransaction(aAction); transaction.item = new Array(aSelection.length); transaction.parent = new Array(aSelection.length); transaction.index = new Array(aSelection.length); if (aAction != "move") ... |
if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) | if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) | else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) | else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/[=:8]\~[-^v]?\(/) != -1) | else if (emoticon.search (/[=:;]\~[-^v]?\(/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/[=:8][-^v]?[(<\[]/) != -1) | else if (emoticon.search (/[=:;][-^v]?[\(<\[]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/\<?[=:8][-^v]?[0oO]/) != -1) | else if (emoticon.search (/\<?[=:;][-^v]?[0oO]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/[=;:8][-^v]?[pP]/) != -1) | else if (emoticon.search (/[=:;][-^v]?[pP]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
else if (emoticon.search (/\>?[\=\:\8][\-\^\v]?[\(\|]/) != -1) | else if (emoticon.search (/\>?[=:;][\-\^\v]?[\(\|]/) != -1) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
if (client.smileyText) | if (!src || client.smileyText) | function insertSmiley (emoticon, containerTag){ var src = ""; if (emoticon.search (/\;[-^v]?[)>\]]/) != -1) src = "face-wink.gif"; else if (emoticon.search (/[=:8][-^v]?[)>\]]/) != -1) src = "face-smile.gif"; else if (emoticon.search (/[=:8][-^v]?[\/\\]/) != -1) src = "face-screw.gif"; ... |
var txtarea = document.forms[0].contents; | var txtarea = document.form.contents; | function insertTags(tagOpen, tagClose, sampleText) { var txtarea = document.forms[0].contents; // IE if(document.selection && !is_gecko) { var theSelection = document.selection.createRange().text; if(!theSelection) { theSelection=sampleText;} txtarea.focus(); if(theSelection.charAt(theSelection.length - 1) == " ")... |
function install( aEvent, extName, iconURL) { | function install( aEvent, extName, iconURL, extHash) { | function install( aEvent, extName, iconURL) { if (aEvent.target.href.match(/^.+\.xpi$/)) { var params = new Array(); params[extName] = { URL: aEvent.target.href, IconURL: iconURL, toString: function () { return this.URL; } }; InstallTrigger.install(par... |
if (extHash) { params[extName][Hash] = extHash; } | function install( aEvent, extName, iconURL) { if (aEvent.target.href.match(/^.+\.xpi$/)) { var params = new Array(); params[extName] = { URL: aEvent.target.href, IconURL: iconURL, toString: function () { return this.URL; } }; InstallTrigger.install(par... | |
params[extName][Hash] = extHash; | params[extName].Hash = extHash; | function install( aEvent, extName, iconURL, extHash) { if (aEvent.target.href.match(/^.+\.xpi$/)) { var params = new Array(); params[extName] = { URL: aEvent.target.href, IconURL: iconURL, toString: function () { return this.URL; } }; // Only add the H... |
return true; | function install( aEvent, extName, iconURL, extHash) { if (aEvent.altKey) return true; if (aEvent.target.href.match(/^.+\.xpi$/)) { var params = new Array(); params[extName] = { URL: aEvent.target.href, IconURL: iconURL, toString: function () { return this... | |
var file = ''; file = encodeURI('file: doXPIInstall(file, getName(file)); | var ioService = Components.classes['@mozilla.org/network/io-service;1'].getService(nsIIOService); var fileProtocolHandler = ioService.getProtocolHandler("file").QueryInterface(nsIFileProtocolHandler); var url = fileProtocolHandler.newFileURI(fp.file).QueryInterface(nsIURL); var xpi = {}; xpi[decodeURIComponent(url.file... | function installExtension(){ // 1) Prompt the user for the location of the theme to install. Eventually we'll support web locations too. var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, document.getElementById("installExtensions").getAttribute("filepickertitle")... |
if (!this.isSidebarInstalled()) { this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "title"), gRDF.GetLiteral(kSidebarTitle), true); this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "content"), gRDF.GetLiteral(kSidebarURL), true); this.mPanelSeq.AppendElement(this.mPanelRes); this.forceSidebarRefresh()... | if (this.isSidebarInstalled()) { | installSidebar: function() { if (!this.isSidebarInstalled()) { this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "title"), gRDF.GetLiteral(kSidebarTitle), true); this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "content"), gRDF.GetLiteral(kSidebarURL), true); this.mPanelSeq.AppendE... |
} this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "title"), gRDF.GetLiteral(kSidebarTitle), true); this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "content"), gRDF.GetLiteral(kSidebarURL), true); this.mPanelSeq.AppendElement(this.mPanelRes); this.forceSidebarRefresh(); var msg = document.getElemen... | installSidebar: function() { if (!this.isSidebarInstalled()) { this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "title"), gRDF.GetLiteral(kSidebarTitle), true); this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "content"), gRDF.GetLiteral(kSidebarURL), true); this.mPanelSeq.AppendE... | |
chromeRegistry.installSkin( themeURL, DEBUG_USE_PROFILE ); | chromeRegistry.installSkin( themeURL, DEBUG_USE_PROFILE, false ); | function installSkin() { var themeURL = prompt( "Enter URL for a skin to install:",""); chromeRegistry.installSkin( themeURL, DEBUG_USE_PROFILE ); } |
dump(fp.file.path + '\n'); installTheme(fp.file.path); | var ioService = Components.classes['@mozilla.org/network/io-service;1'].getService(nsIIOService); var fileProtocolHandler = ioService.getProtocolHandler("file").QueryInterface(nsIFileProtocolHandler); var url = fileProtocolHandler.newFileURI(fp.file).QueryInterface(nsIURL); InstallTrigger.installChrome(InstallTrigger.S... | function installSkin(){ // 1) Prompt the user for the location of the theme to install. Eventually we'll support web locations too. var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, document.getElementById("installSkin").getAttribute("filepickertitle"), nsIFilePi... |
function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer) | function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition, aContentType, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer) | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); var saveMode = GetSaveModeForContentType(c... |
var contentType = (aDocument ? aDocument.contentType : null); var saveMode = GetSaveModeForContentType(contentType); | var saveMode = GetSaveModeForContentType(aContentType); | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); var saveMode = GetSaveModeForContentType(c... |
initFileInfo(fileInfo, aURL, aDocument, contentType); | initFileInfo(fileInfo, aURL, aDocument, aContentType, aContentDisposition); | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); var saveMode = GetSaveModeForContentType(c... |
contentType: contentType, | contentType: aContentType, | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); var saveMode = GetSaveModeForContentType(c... |
contentType : (!aChosenData && useSaveDocument && saveAsType == SAVETYPE_TEXT_ONLY) ? "text/plain" : contentType, | contentType : (!aChosenData && useSaveDocument && saveAsType == SAVETYPE_TEXT_ONLY) ? "text/plain" : aContentType, | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); var saveMode = GetSaveModeForContentType(c... |
if (!aChosenData) | if (aChosenData) file = aChosenData.file; else { | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); // Find the URI object for aURL and the Fi... |
var saveMode = GetSaveModeForContentType(contentType); var isDocument = aDocument != null && saveMode != SAVEMODE_FILEONLY; var fpParams = { fp: makeFilePicker(), fpTitleKey: aFilePickerTitleKey, isDocument: isDocument, fileInfo: fileInfo, contentType: contentType, saveMode: saveMode }; if (!aChosenData) { | var fpParams = { fpTitleKey: aFilePickerTitleKey, isDocument: isDocument, fileInfo: fileInfo, contentType: contentType, saveMode: saveMode, saveAsType: saveAsType, file: file, fileURL: fileURL }; | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); // Find the URI object for aURL and the Fi... |
(((fpParams.saveMode & SAVEMODE_COMPLETE_DOM) && (fpParams.fp.filterIndex == 0)) || ((fpParams.saveMode & SAVEMODE_COMPLETE_TEXT) && (fpParams.fp.filterIndex == 2))); | (((saveMode & SAVEMODE_COMPLETE_DOM) && (saveAsType == SAVETYPE_COMPLETE_PAGE)) || ((saveMode & SAVEMODE_COMPLETE_TEXT) && (saveAsType == SAVETYPE_TEXT_ONLY))); | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); // Find the URI object for aURL and the Fi... |
contentType : (!aChosenData && useSaveDocument && fpParams.fp.filterIndex == 2) ? "text/plain" : contentType, target : (aChosenData ? makeFileURI(aChosenData.file) : fpParams.fp.fileURL), | contentType : (!aChosenData && useSaveDocument && saveAsType == SAVETYPE_TEXT_ONLY) ? "text/plain" : contentType, target : fileURL, | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); // Find the URI object for aURL and the Fi... |
var destFile = (aChosenData ? aChosenData.file : fpParams.fp.file); filesFolder = destFile.clone(); | filesFolder = file.clone(); | function internalSave(aURL, aDocument, aDefaultFileName, aShouldBypassCache, aFilePickerTitleKey, aChosenData, aReferrer){ // Note: aDocument == null when this code is used by save-link-as... var contentType = (aDocument ? aDocument.contentType : null); // Find the URI object for aURL and the Fi... |
return expr ? jQuery.filter(expr,this).r.length > 0 : this.length > 0; | return expr ? jQuery.filter(expr,this).r.length > 0 : false; | is: function(expr) { return expr ? jQuery.filter(expr,this).r.length > 0 : this.length > 0; }, |
return jQuery.filter(expr,this).r.length > 0; | return expr ? jQuery.filter(expr,this).r.length > 0 : this.length > 0; | is: function(expr) { return jQuery.filter(expr,this).r.length > 0; }, |
return exclude && exclude != '' && exclude.indexOf(sidebar.component) != -1; | return exclude && exclude != '' && exclude.indexOf(sidebarObj.component) != -1; | function is_excluded(item) { var exclude = item.getAttribute('exclude'); var src = item.getAttribute('iframe-src'); debug("src="+src); debug("exclude="+exclude); return exclude && exclude != '' && exclude.indexOf(sidebar.component) != -1;} |
var pref = this.getService( 'component: | var pref = this.getService( '@mozilla.org/preferences;1', 'nsIPref' ); | isBlockingImages: function () { /* determine if "imageBlocker.enabled" pref is set */ var pref = this.getService( 'component://netscape/preferences', 'nsIPref' ); var result = false; try { result = pref.GetBoolPref( "imageblocker.enabled" ); } catch(e) { } ... |
("component: | ("@mozilla.org/cookieviewer/cookieviewer-world;1", "nsICookieViewer"); | isBlockingImages: function () { /* determine if "imageBlocker.enabled" pref is set */ var pref = this.getService( 'component://netscape/preferences', 'nsIPref' ); var result = false; try { result = pref.GetBoolPref( "imageblocker.enabled" ); } catch(e) { } ... |
result = pref.GetBoolPref( "imageBlocker.enabled" ); | result = pref.GetBoolPref( "imageblocker.enabled" ); | isBlockingImages: function () { var pref = this.getService( 'component://netscape/preferences', 'nsIPref' ); var result = false; try { result = pref.GetBoolPref( "imageBlocker.enabled" ); } catch(e) { } return result; }, |
var folderURI = GetSelectedFolderURI(); var server = GetServer(folderURI); return server.canSearchMessages; | var folder = GetMsgFolderFromUri(GetSelectedFolderURI(), false); var isVirtualFolder = folder.flags & MSG_FOLDER_FLAG_VIRTUAL; return folder.server.canSearchMessages && !isVirtualFolder; | function IsCanSearchMessagesEnabled(){ var folderURI = GetSelectedFolderURI(); var server = GetServer(folderURI); return server.canSearchMessages;} |
return IsInTableCell(); | if (window.editorShell && window.editorShell.documentEditable) { var cell = window.editorShell.GetElementOrParentByTagName("td", null); return (cell != null && (cell.colSpan > 1 || cell.rowSpan > 1)); } return false; | isCommandEnabled: function(aCommand, dummy) { //TODO: This should be allowed only if rowspan or colspan > 0; return IsInTableCell(); }, |
case "cmd_tag": | isCommandEnabled: function(command) { switch ( command ) { case "cmd_createFilterFromPopup": case "cmd_createFilterFromMenu": var loadedFolder = GetLoadedMsgFolder(); if (!(loadedFolder && loadedFolder.server.canHaveFilters)) return false; case "cmd_delete": UpdateDeleteComm... | |
case "cmd_markReadByDate": | isCommandEnabled: function(command) { switch (command) { case "cmd_createFilterFromPopup": case "cmd_createFilterFromMenu": var loadedFolder = GetLoadedMsgFolder(); if (!(loadedFolder && loadedFolder.server.canHaveFilters)) return false; case "cmd_delete": UpdateDeleteComman... | |
#ifdef MOZ_THUNDERBIRD case "cmd_install": return true; #endif | isCommandEnabled: function (aCommand) { var selectedItem = gExtensionsView.selected; switch (aCommand) { case "cmd_close": return true; case "cmd_useTheme": return selectedItem && gCurrentTheme != selectedItem.getAttribute("internalName"); case "cmd_options": return selectedItem && !sel... | |
var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } | var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; var isNotRef = !aSelection.isRef; | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
return length > 0; | return isNotRef; | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
return length > 0 && aSelection.containsMutable; | return isNotRef && aSelection.containsMutable; | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
return length == 1; | return isNotRef && length == 1; | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
return length > 0; | return true; | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
return isValidTarget && length <= 1; | return isValidTarget && length == 1; | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
if (length != 1) | if (!isNotRef || length != 1) | isCommandEnabled: function (aCommand, aSelection, aTarget) { var isValidTarget = BookmarksUtils.isValidTargetContainer(aTarget.parent) var length = aSelection.length; if (length > 0) { var item0 = aSelection.item[0].Value; var type0 = aSelection.type[0]; } switch(aCommand) { case "cmd_und... |
return false; | return true; | isCommandEnabled: function (aCommand, aSelection, aTarget) { if (aTarget.parent.Value == "NC:BookmarksTopRoot") return false; var item0, type0; var length = aSelection.length; if (length != 0) { item0 = aSelection.item[0].Value; type0 = aSelection.type[0]; } var i; switch(aCommand... |
case "cmd_getNewMessages": return IsGetNewMessagesEnabled(); | isCommandEnabled: function(command) { switch ( command ) { case "cmd_delete": case "button_delete": case "cmd_shiftDelete": case "cmd_print": case "cmd_saveAsFile": case "cmd_saveAsTemplate": case "cmd_viewPageSource": case "cmd_reload": if ( command == "cmd_delete") { goSetMenuValue(comman... | |
return this.mAttrTree.view.selection.count == 1; | return this.mAttrTree.currentIndex >= 0 && this.mAttrTree.view.selection.count == 1; | isCommandEnabled: function(aCommand) { switch (aCommand) { case "cmdEditPaste": var flavor = this.mPanel.panelset.clipboardFlavor; return (flavor == "inspector/dom-attribute" || flavor == "inspector/dom-attributes"); case "cmdEditInsert": return true; case "cmdEd... |
return true; else return false; | numSelected = resultsTree.selectedItems.length; if ( command == "cmd_delete" ) { if ( numSelected < 2 ) goSetMenuValue(command, 'valueCard'); else goSetMenuValue(command, 'valueCards'); } return ( numSelected > 0 ); | isCommandEnabled: function(command) { dump('ResultsPaneController::isCommandEnabled(' + command + ')\n'); switch ( command ) { case "cmd_selectAll": return true; case "cmd_delete": var resultsTree = document.getElementById('resultsTree'); if ( resultsTree && resultsTree.selectedItems ) return tr... |
return DoesAccountHaveOfflineSupport(); | return IsOfflineSettingsEnabled(); | isCommandEnabled: function(command) { var enabled = new Object(); var checkStatus = new Object(); switch ( command ) { case "cmd_delete": if (isNewsURI(gCurrentMessageUri)) { goSetMenuValue(command, 'valueNewsMessage'); goSetAccessKey(command, 'valueNewsMessageAccessKey'); } else { ... |
case "cmdEditNodeValue": if (this.subject) { if (this.subject.nodeType == Node.TEXT_NODE || this.subject.nodeType == Node.CDATA_SECTION_NODE || this.subject.nodeType == Node.COMMENT_NODE || this.subject.nodeType == Node.PROCESSING_INSTRUCTION_NODE) { return this.subject.nodeValue != document.getElementById("txbTextN... | isCommandEnabled: function(aCommand) { switch (aCommand) { case "cmdEditPaste": var canPaste = this.mPanel.panelset.clipboardFlavor == "inspector/dom-node"; if (canPaste) { var node = this.mPanel.panelset.getClipboardData(); canPaste = node ? node.nodeType == Node.ATTRIBUTE_NO... | |
case "cmd_replySenderAndGroup": case "cmd_replyAllRecipients": | isCommandEnabled: function(command) { var loadedFolder; switch (command) { case "cmd_createFilterFromPopup": case "cmd_createFilterFromMenu": loadedFolder = GetLoadedMsgFolder(); return (loadedFolder && loadedFolder.server.canHaveFilters); case "cmd_delete": UpdateDeleteCommand();... | |
goSetMenuValue(command, 'valueMessage'); return true; | case "button_delete": var threadTree = GetThreadTree(); dump("threadTree = " + threadTree + "\n"); var numSelected = 0; if ( threadTree && threadTree.selectedItems ) numSelected = threadTree.selectedItems.length; if ( command == "cmd_delete" ) { if ( numSelected < 2 ) goSetMenuValue(command, 'valueMessage'); else goSet... | isCommandEnabled: function(command) { dump("ThreadPaneController.isCommandEnabled\n"); switch ( command ) { case "cmd_selectAll": return true; case "cmd_delete": goSetMenuValue(command, 'valueMessage'); return true; default: return false; } }, |
var stringId; | isCommandEnabled: function(command) { var enabled = false; var stringId; var text; switch(command) { case "cmd_deleteByHostname": if (gLastHostname) { stringId = "deleteHost"; enabled = true; } else { stringId =... | |
stringId = "deleteHost"; | text = gHistoryBundle.getFormattedString("deleteHost", [ gLastHostname ]); | isCommandEnabled: function(command) { var enabled = false; var stringId; var text; switch(command) { case "cmd_deleteByHostname": if (gLastHostname) { stringId = "deleteHost"; enabled = true; } else { stringId =... |
stringId = "deleteHostNoSelection"; | text = gHistoryBundle.getString("deleteHostNoSelection"); | isCommandEnabled: function(command) { var enabled = false; var stringId; var text; switch(command) { case "cmd_deleteByHostname": if (gLastHostname) { stringId = "deleteHost"; enabled = true; } else { stringId =... |
text = gHistoryBundle.getFormattedString(stringId, [ gLastHostname ]); gDeleteByHostname.setAttribute("label", text); | gDeleteByHostname.label = text; | isCommandEnabled: function(command) { var enabled = false; var stringId; var text; switch(command) { case "cmd_deleteByHostname": if (gLastHostname) { stringId = "deleteHost"; enabled = true; } else { stringId =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.