rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
this.mRecurrenceInfo = Components.classes["@mozilla.org/calendar/recurrence-info;1"]. createInstance(Components.interfaces.calIRecurrenceInfo); | this.mRecurrenceInfo = null; | initItemBase: function () { this.mCreationDate = new CalDateTime(); this.mAlarmTime = new CalDateTime(); this.mLastModifiedTime = new CalDateTime(); this.mCreationDate.jsDate = new Date(); this.mLastModifiedTime.jsDate = new Date(); this.mProperties = Components.classes["@m... |
this.initMetadataItems(); | initItems : function () { this.initOpenItems(); this.initNavigationItems(); this.initViewItems(); this.initMiscItems(); this.initSaveItems(); this.initClipboardItems(); }, | |
menuItem.setAttribute("value",menuText); | menuItem.setAttribute("label",menuText); | function InitJoinCellMenuitem(id){ // Change text on the "Join..." item depending if we // are joining selected cells or just cell to right // TODO: What to do about normal selection that crosses // table border? Try to figure out all cells // included in the selection? var menuText; var menuItem =... |
console.addPref ("services.source.sourceColoring", "false"); | console.addPref ("services.source.colorize", true); console.addPref ("services.source.colorizeLimit", 1500); | function initJSDURL(){ console.addPref ("services.help.css", "chrome://venkman/skin/venkman-help.css"); console.addPref ("services.help.template", "chrome://venkman/locale/venkman-help.tpl"); console.addPref ("services.source.css", "chrome://venkma... |
AppendValueAndDataToMenulist(dialog.LanguageMenulist, menuStr, dictList[i]); | AppendLabelAndValueToMenulist(dialog.LanguageMenulist, menuStr, dictList[i]); | function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var c... |
var languageMenuList = document.getElementById('LanguageMenulist'); | function initLanguageMenu(){ var spellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'].getService(Components.interfaces.mozISpellCheckingEngine); var o1 = {}; var o2 = {}; var languageMenuList = document.getElementById('LanguageMenulist'); // Get the list of dictionaries from // the spellchecke... | |
itemNode.setAttribute("observes", "cmd_renderedHTMLEnabler"); | function initLocalFontFaceMenu(menuPopup){ if (!gLocalFonts) { // Build list of all local fonts once per editor try { var enumerator = Components.classes["@mozilla.org/gfx/fontenumerator;1"] .getService(Components.interfaces.nsIFontEnumerator); var localFontCount = ... | |
for (var i = 0; i < gLocalFonts.length; ++i) { if (gLocalFonts[i] != "") { var itemNode = document.createElementNS(XUL_NS, "menuitem"); itemNode.setAttribute("label", gLocalFonts[i]); itemNode.setAttribute("value", gLocalFonts[i]); itemNode.setAttribute("type", "radio"); itemNode.setAttribute("name", "2"); itemNode.set... | function initLocalFontFaceMenu(menuPopup){ if (!gLocalFonts) { // Build list of all local fonts once per editor try { var enumerator = Components.classes["@mozilla.org/gfx/fontenumerator;1"] .getService(Components.interfaces.nsIFontEnumerator); var localFontCount = ... | |
var useRadioMenuitems = (menuPopup.parentNode.localName == "menu"); if (menuPopup.childNodes.length == kFixedFontFaceMenuItems) { if (gLocalFonts.length == 0) { menuPopup.childNodes[kFixedFontFaceMenuItems - 1].hidden = true; } for (var i = 0; i < gLocalFonts.length; ++i) { if (gLocalFonts[i] != "") { var itemNode = do... | function initLocalFontFaceMenu(menuPopup){ if (!gLocalFonts) { // Build list of all local fonts once per editor try { var enumerator = Components.classes["@mozilla.org/gfx/fontenumerator;1"] .getService(Components.interfaces.nsIFontEnumerator); var localFontCount = ... | |
for (var i = 1; i <= lastLabel; i++) | for (var i = 0; i <= lastLabel; i++) | function InitMessageLabel(){ /* this code gets the label strings and changes the menu labels */ var lastLabel = 5; // start with 1 because there is no None label (id 0) as an filtering // option to filter to. for (var i = 1; i <= lastLabel; i++) { setLabelAttributes(i, "labelMenuItem" + i); ... |
} | function InitMessageMenu(){ var aMessage = GetSelectedMessage(0); var isNews = false; if(aMessage) { isNews = GetMessageType(aMessage) == "news"; } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(repl... | |
client.name = MSG_CLIENT_NAME; | client.displayName = client.name = MSG_CLIENT_NAME; | function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(); client.defaultBundle = client.messageManager.addBundle(path); client.name = MSG_CLIENT_NAME; client.responseCodeMap = { "HELLO": MSG_RSP_HELLO, ... |
"DISCONNECT": MSG_RSP_DISCONNECT, | function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(); client.defaultBundle = client.messageManager.addBundle(path); client.viewName = client.unicodeName = MSG_CLIENT_NAME; client.responseCodeMap = { "HELLO... | |
while (menuPopup.firstChild && menuPopup.firstChild.localName != 'menuseparator') menuPopup.removeChild(menuPopup.firstChild); var menuSeparatorNode = menuPopup.firstChild; | var menuseparator = menuPopup.lastChild.previousSibling; for (var i = menuPopup.childNodes.length; i > 4; --i) menuPopup.removeChild(menuseparator.previousSibling); menuseparator.previousSibling.hidden = !allTags.hasMore(); var tagRemoveLabel = gMessengerBundle.getString("mailnews.tags.remove"); SetMessageTagLabel(... | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove existing entries up until the menuseparator which precedes t... |
var newMenuItem; | if (msgHdr.label) curKeys += " $label" + msgHdr.label; | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove existing entries up until the menuseparator which precedes t... |
var curMsgHdrKeyArray = curKeys.split(" "); if (msgHdr.label != 0) curMsgHdrKeyArray.push("$label" + msgHdr.label); | var index = 0; | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove existing entries up until the menuseparator which precedes t... |
newMenuItem = document.createElement('menuitem'); newMenuItem.setAttribute('label', tag); newMenuItem.setAttribute('value', key); newMenuItem.setAttribute('type', 'checkbox'); | var newMenuItem = document.createElement("menuitem"); SetMessageTagLabel(newMenuItem, ++index, tag); newMenuItem.setAttribute("value", key); newMenuItem.setAttribute("type", "checkbox"); | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove existing entries up until the menuseparator which precedes t... |
newMenuItem.setAttribute('oncommand', 'ToggleMessageTagCmd(event.target)'); menuPopup.insertBefore(newMenuItem, menuSeparatorNode); | newMenuItem.setAttribute('oncommand', 'ToggleMessageTagMenu(event.target);'); menuPopup.insertBefore(newMenuItem, menuseparator); | function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove existing entries up until the menuseparator which precedes t... |
this.showItem( "context-blockimage", this.onImage); | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "con... | |
var shortenedUriHost = uri.host.replace(/^www\./i,""); if (shortenedUriHost.length > 15) shortenedUriHost = shortenedUriHost.substr(0,15) + "..."; blockImage.label = gNavigatorBundle.getFormattedString ("blockImages", [shortenedUriHost]); | var hostLabel; try { hostLabel = uri.host; } catch (ex) { } | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "con... |
if (this.isImageBlocked()) { blockImage.setAttribute("checked", "true"); | if (hostLabel) { var shortenedUriHost = hostLabel.replace(/^www\./i,""); if (shortenedUriHost.length > 15) shortenedUriHost = shortenedUriHost.substr(0,15) + "..."; blockImage.label = gNavigatorBundle.getFormattedString("blockImages", [shortenedUriHost]); if (this.isImageBlocked()) blockImage.setAttribute("checked", "... | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "con... |
else blockImage.removeAttribute("checked"); | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "con... | |
this.showItem( "context-blockimage", this.onImage && hostLabel); | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "con... | |
this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput ) ); | this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onStandaloneImage ) ); | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "context-searchselect", this.isTextSel... |
gDialog.MoreFewerButton.setAttribute("accesskey",GetString("PropertiesAccessKey")); | function InitMoreFewer(){ // Set SeeMore bool to the OPPOSITE of the current state, // which is automatically saved by using the 'persist="more"' // attribute on the gDialog.MoreFewerButton button // onMoreFewer will toggle it and redraw the dialog SeeMore = (gDialog.MoreFewerButton.getAttribute("more") != "... | |
dump(SeeMore+"=SeeMore - InitMoreFewer\n"); | function InitMoreFewer(){ // Set SeeMore bool to the OPPOSITE of the current state, // which is automatically saved by using the 'persist="more"' // attribute on the dialog.MoreFewerButton button // onMoreFewer will toggle it and redraw the dialog SeeMore = (dialog.MoreFewerButton.getAttribute("more") != "1... | |
document.getElementById("messagepane").docShell.allowAuth = false; | getBrowser().docShell.allowAuth = false; | function InitMsgWindow(){ msgWindow.messagePaneController = new nsMessagePaneController(); msgWindow.statusFeedback = statusFeedback; msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.SetDOMWindow(window); mailSession.AddMsgWindow(msgWindow); document.getElementById("messagepane").docShell.allowAuth = false;... |
msgWindow.SetDOMWindow(window); | msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.SetDOMWindow(window); | function InitMsgWindow(){ msgWindow.statusFeedback = statusFeedback; msgWindow.messageView = messageView; msgWindow.SetDOMWindow(window);} |
/((\w[\w-]+):[^<>\[\]()\'\"\s\u201d]+|www(\.[^.<>\[\]()\'\"\s\u201d]+){2,})/; | /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^>)\].,!?\'\"\u201d])(?:\s|\W|$)/; | function initMunger(){ client.linkRE = /((\w[\w-]+):[^<>\[\]()\'\"\s\u201d]+|www(\.[^.<>\[\]()\'\"\s\u201d]+){2,})/; var munger = client.munger = new CMunger(); // Special internal munger! munger.addRule (".inline-buttons", /(\[\[.*?\]\])/, insertInlineButton, false); munger.addRule ("quote", ... |
munger.addRule ("mailto", | munger.addRule (".mailto", | function initMunger(){ /* linkRE: the general URL linkifier regular expression: * * - start with whitespace, non-word, or begining-of-line * - then match: * - EITHER scheme (word + hyphen), colon, then lots of non-whitespace * - OR "www" followed by at least 2 sets of: * - "." plus so... |
insertMailToLink); | insertMailToLink, false); | function initMunger(){ /* linkRE: the general URL linkifier regular expression: * * - start with whitespace, non-word, or begining-of-line * - then match: * - EITHER scheme (word + hyphen), colon, then lots of non-whitespace * - OR "www" followed by at least 2 sets of: * - "." plus so... |
this.showItem( "context-reload", !this.inFrame ); this.showItem( "context-reload-frame", this.inFrame ); | initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ... | |
client.addNetwork("moznet",[{name: "irc.mozilla.org", port: 6667}]); | client.addNetwork("moznet", [{name: "irc.mozilla.org", port:6667}, {name: "irc.mozilla.org", port:6697, isSecure:true}]); | function initNetworks(){ client.addNetwork("moznet",[{name: "irc.mozilla.org", port: 6667}]); client.addNetwork("hybridnet", [{name: "irc.ssc.net", port: 6667}]); client.addNetwork("slashnet", [{name: "irc.slashnet.org", port:6667}]); client.addNetwork("dalnet", [{name: "irc.dal.net", port:6667}]); clien... |
menuItem.setAttribute("value", menuStr); | menuItem.setAttribute("label", menuStr); | function InitObjectPropertiesMenuitem(id){ // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menuItem = document.getElementById(id); if (!menuItem) return null; var element = GetObject... |
console.sourceView.atomPrettyPrint = atomsvc.getAtom("prettyprint"); | function initOutliners(){ const ATOM_CTRID = "@mozilla.org/atom-service;1"; const nsIAtomService = Components.interfaces.nsIAtomService; var atomsvc = Components.classes[ATOM_CTRID].getService(nsIAtomService); console.sourceView.atomCurrent = atomsvc.getAtom("current-line"); console.sourceV... | |
BLRecord.prototype.property = console.projectView.atomBLItem; var enumerator = console.windowWatcher.getWindowEnumerator(); while (enumerator.hasMoreElements()) { var win = enumerator.getNext(); console.windows.appendChild (new WindowRecord(win)); } | BLRecord.prototype.property = console.projectView.atomBLItem; | function initOutliners(){ const ATOM_CTRID = "@mozilla.org/atom-service;1"; const nsIAtomService = Components.interfaces.nsIAtomService; var atomsvc = Components.classes[ATOM_CTRID].getService(nsIAtomService); console.sourceView.atomCurrent = atomsvc.getAtom("current-line"); console.sourceV... |
function InitPixelOrPercentCombobox(element, attribute, selectID) | function InitPixelOrPercentCombobox(elementForAtt, attribute, selectID) | function InitPixelOrPercentCombobox(element, attribute, selectID){ size = element.getAttribute(attribute); select = document.getElementById(selectID); if (select) { ClearList(select); AppendStringToList(select,GetString("Pixels")); AppendStringToList(select,GetAppropriatePercentString()); } // Search fo... |
size = element.getAttribute(attribute); | size = elementForAtt.getAttribute(attribute); | function InitPixelOrPercentCombobox(element, attribute, selectID){ size = element.getAttribute(attribute); select = document.getElementById(selectID); if (select) { ClearList(select); AppendStringToList(select,GetString("Pixels")); AppendStringToList(select,GetAppropriatePercentString()); } // Search fo... |
AppendStringToList(select,GetAppropriatePercentString()); | AppendStringToList(select,GetAppropriatePercentString(elementForAtt,window.editorShell.editorSelection.anchorNode)); | function InitPixelOrPercentCombobox(element, attribute, selectID){ size = element.getAttribute(attribute); select = document.getElementById(selectID); if (select) { ClearList(select); AppendStringToList(select,GetString("Pixels")); AppendStringToList(select,GetAppropriatePercentString()); } // Search fo... |
function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID) | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID, defaultIndex) | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID){ var size = elementForAtt.getAttribute(attribute); var menulist = document.getElementById(menulistID); var pixelItem; var percentItem; if (!menulist) { dump("NO MENULIST found for ID="+menulistID+"\n"); return size; }... |
percentIndex = size.search(/%/); if (percentIndex > 0) | if (size && size.length > 0) | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID){ var size = elementForAtt.getAttribute(attribute); var menulist = document.getElementById(menulistID); var pixelItem; var percentItem; if (!menulist) { dump("NO MENULIST found for ID="+menulistID+"\n"); return size; }... |
size = size.substr(0, percentIndex); if (percentItem) menulist.selectedItem = percentItem; } else if(pixelItem) menulist.selectedItem = pixelItem; | percentIndex = size.search(/%/); if (percentIndex > 0) { size = size.substr(0, percentIndex); if (percentItem) menulist.selectedItem = percentItem; } else menulist.selectedItem = pixelItem; } else menulist.selectedIndex = defaultIndex; | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID){ var size = elementForAtt.getAttribute(attribute); var menulist = document.getElementById(menulistID); var pixelItem; var percentItem; if (!menulist) { dump("NO MENULIST found for ID="+menulistID+"\n"); return size; }... |
pixelItem = menulist.appendItem(GetString("Pixels")); | pixelItem = AppendStringToMenulist(menulist, GetString("Pixels")); | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID, defaultIndex){ if (!defaultIndex) defaultIndex = gPixel; // var size = elementForAtt.getAttribute(attribute); var size = GetHTMLOrCSSStyleValue(elementForAtt, attribute, attribute) var menulist = document.getElementById(menulis... |
percentItem = menulist.appendItem(GetAppropriatePercentString(elementForAtt, elementInDoc)); | percentItem = AppendStringToMenulist(menulist, GetAppropriatePercentString(elementForAtt, elementInDoc)); | function InitPixelOrPercentMenulist(elementForAtt, elementInDoc, attribute, menulistID, defaultIndex){ if (!defaultIndex) defaultIndex = gPixel; // var size = elementForAtt.getAttribute(attribute); var size = GetHTMLOrCSSStyleValue(elementForAtt, attribute, attribute) var menulist = document.getElementById(menulis... |
btn.setAttribute("value",GetAppropriatePercentString()); | btn.setAttribute("value",GetAppropriatePercentString(element)); | function InitPixelOrPercentPopupButton(element, attribute, buttonID){ size = element.getAttribute(attribute); btn = document.getElementById(buttonID); // Search for a "%" character percentIndex = size.search(/%/); if (percentIndex > 0) { percentChar = "%"; // Strip out the % size = size.substr(0, percent... |
btn.setAttribute("value","percent"); | btn.setAttribute("value",GetAppropriatePercentString()); | function InitPixelOrPercentPopupButton(element, attribute, buttonID){ size = element.getAttribute(attribute); btn = document.getElementById(buttonID); // Search for a "%" character percentIndex = size.search(/%/); if (percentIndex > 0) { percentChar = "%"; // Strip o... |
btn.setAttribute("value","pixels"); | btn.setAttribute("value",GetString("Pixels")); | function InitPixelOrPercentPopupButton(element, attribute, buttonID){ size = element.getAttribute(attribute); btn = document.getElementById(buttonID); // Search for a "%" character percentIndex = size.search(/%/); if (percentIndex > 0) { percentChar = "%"; // Strip o... |
return; | initPopupURL: function() { // quick check: if no opener, it can't be a popup if (!window.content.opener) return; try { var show = false; // is it a popup window? const CI = Components.interfaces; var xulwin = window .QueryInterface(CI.nsIInterface... | |
console.addPref ("profile.template.html", "chrome: console.addPref ("profile.ranges", "1000000, 5000, 2500, 1000, 750, 500, 250, 100, 75, 50, " + "25, 10, 7.5, 5, 2.5, 1, 0.75, 0.5, 0.25"); | function initPrefs(){ console.prefs = new Object(); console.prefs.prefService = Components.classes[PREF_CTRID].getService(nsIPrefService); console.prefs.prefBranch = console.prefs.prefService.getBranch("extensions.venkman."); console.prefs.prefNames = new Array(); // console.addPref... | |
["toggle-ecmas", "show-ecma toggle", 0] | ["toggle-ecmas", "show-ecma toggle", 0], ["toggle-constants", "show-constants toggle", 0] | function initRecords(){ var cmdary = [/* "real" commands */ ["show-functions", cmdShowFunctions, CMD_CONSOLE], ["show-ecmas", cmdShowECMAs, CMD_CONSOLE], /* aliases */ ["toggle-functions", "show-functions toggle", ... |
["valueRecord.showConstants", false], | function initRecords(){ var cmdary = [/* "real" commands */ ["show-functions", cmdShowFunctions, CMD_CONSOLE], ["show-ecmas", cmdShowECMAs, CMD_CONSOLE], /* aliases */ ["toggle-functions", "show-functions toggle", ... | |
console.addPref ("valueRecord.showFunctions", false); console.addPref ("valueRecord.showECMAProps", false); | function initRecords(){ var atomsvc = console.atomService; WindowRecord.prototype.property = atomsvc.getAtom("item-window"); FileContainerRecord.prototype.property = atomsvc.getAtom("item-files"); FileRecord.prototype.property = atomsvc.getAtom("item-file"); FrameRecord.prototype.prope... | |
stylesItem.setAttribute("value", isCollapsed ? GetString("StopTextStyles") : GetString("RemoveTextStyles")); | stylesItem.setAttribute("label", isCollapsed ? GetString("StopTextStyles") : GetString("RemoveTextStyles")); | function InitRemoveStylesMenuitems(removeStylesId, removeLinksId){ // Change wording of menuitems depending on selection var stylesItem = document.getElementById(removeStylesId); var linkItem = document.getElementById(removeLinksId); var isCollapsed = editorShell.editorSelection.isCollapsed; if (stylesItem) { ... |
linkItem.setAttribute("value", isCollapsed ? GetString("StopLinks") : GetString("RemoveLinks")); | linkItem.setAttribute("label", isCollapsed ? GetString("StopLinks") : GetString("RemoveLinks")); | function InitRemoveStylesMenuitems(removeStylesId, removeLinksId){ // Change wording of menuitems depending on selection var stylesItem = document.getElementById(removeStylesId); var linkItem = document.getElementById(removeLinksId); var isCollapsed = editorShell.editorSelection.isCollapsed; if (stylesItem) { ... |
saveImageMenuItem.setAttribute( "value", caption ); | saveImageMenuItem.setAttribute( "label", caption ); | initSaveItems : function () { // Save page is always OK, unless in directory listing. this.showItem( "context-savepage", !this.inDirList ); // Save frame as depends on whether we're in a frame. this.showItem( "context-saveframe", this.inFrame ); // Save link depends on whe... |
this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput ) && !( this.onLink && this.onImage ) ); | this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage || (this.onLink && this.onImage))); | initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput ) && !( this.onLink && this.onImage ) ); // Save link depends on whether we're in a link. this.showItem( "context-savelink", this.onSaveableLink ); // Save image ... |
this.showItem( "context-saveimage", this.onImage ); | this.showItem( "context-saveimage", this.onImage || this.onStandaloneImage); | initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput ) && !( this.onLink && this.onImage ) ); // Save link depends on whether we're in a link. this.showItem( "context-savelink", this.onSaveableLink ); // Save image ... |
this.showItem( "context-sendimage", this.onImage ); | this.showItem( "context-sendimage", this.onImage || this.onStandaloneImage); | initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput ) && !( this.onLink && this.onImage ) ); // Save link depends on whether we're in a link. this.showItem( "context-savelink", this.onSaveableLink ); // Save image ... |
var stringBundle = document.getElementById("bundle_messenger"); var verboseName = stringBundle.getString(propertyName); | var messengerBundle = document.getElementById("bundle_messenger"); var verboseName = messengerBundle.getString(propertyName); | function initServerType() { var serverType = document.getElementById("server.type").getAttribute("value"); var propertyName = "serverType-" + serverType; var stringBundle = document.getElementById("bundle_messenger"); var verboseName = stringBundle.getString(propertyName); setDivText("servertype.verbose", verbos... |
if (index != undefined) { var deck = document.getElementById("serverdeck"); deck.setAttribute("index", index); } | function initServerType() { var serverType = document.getElementById("server.type").value; var verboseName; var index; if (serverType == "pop3") { verboseName = "POP Mail Server"; index = 0; } else if (serverType == "imap") { verboseName = "IMAP Mail Server"; index = 1; } else if (serverType... | |
var isSecureSelected = document.getElementById("server.isSecure").checked; var protocolInfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + serverType].getService(Components.interfaces.nsIMsgProtocolInfo); document.getElementById("defaultPort").value = protocolInfo.getDefaultServerPort(isSecureSel... | function initServerType() { var serverType = document.getElementById("server.type").getAttribute("value"); var propertyName = "serverType-" + serverType; var messengerBundle = document.getElementById("bundle_messenger"); var verboseName = messengerBundle.getString(propertyName); setDivText("servertype.verbose", ... | |
var elements = gSmtpTrySSL.getElementsByAttribute("data", server.trySSL); | var elements = gSmtpTrySSL.getElementsByAttribute("value", server.trySSL); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu... |
elements = gSmtpTrySSL.getElementsByAttribute("data", "1"); | elements = gSmtpTrySSL.getElementsByAttribute("value", "1"); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu... |
gSmtpTrySSL.getElementsByAttribute("data", "1")[0]; | gSmtpTrySSL.getElementsByAttribute("value", "1")[0]; | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpAuthMethod = docu... |
selectProtocol(); | selectProtocol(1); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpPort = document.getElementById("smtp.port"); gSmtpUseUsername = document.getEleme... |
if (server.username && server.username != "") gSmtpUseUsername.checked = true; | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpSavePassword = document.getElementById("smtp.savePassword") if (server) { ... | |
if (gSmtpAuthMethod.getAttribute("value") == "1") gSmtpUseUsername.checked = true; dump("gSmtpAuthMethod = <" + gSmtpAuthMethod.localName + ">\n"); dump("gSmtpAuthMethod.value = " + gSmtpAuthMethod.getAttribute("value") + "\n"); | function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpUseUsername = document.getElementById("smtp.useUsername"); gSmtpSavePassword = document.getElementById("smtp.savePassword") if (server) { ... | |
if (!jsenv.HAS_XPCOM) client.display ("ChatZilla was not given access to the XPConnect " + "service. You will not be able to connect to an " + "irc server. A workaround may be to set the " + "'security.checkxpconnect' pref to false in " + "all.js, or your user prefs.", "ERROR"); | function initStatic(){ var obj; obj = document.getElementById("input"); obj.onkeyup = onInputKeyUp; obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); var saveDir = client.PRINT_DIRECTION; client.PRINT_DIRECTION = 1; ... | |
const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); const nsIGlobalHistory = Components.interfaces.nsIGlobalHistory; const GHIST_CONTRACTID = "@mozilla.org/browser/global-history;1"; client.globalHistory = Components.classes[GHIST_CONTRAC... | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); const n... | |
Date.prototype.toStringInt = Date.prototype.toString; Date.prototype.toString = function() { var dtf = client.dtFormatter; return dtf.FormatDateTime("", dtf.dateFormatLong, dtf.timeFormatSeconds, this.getFullYear(), this.getMonth() + 1, this.getDate(), this.getHours(), this.getMinutes(), this.getSeconds() ); | try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { throw { summary: "IO service failed to initalize", exception: ex }; } try { const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozil... | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); const n... |
client.lineEnd = "\n"; if (navigator.platform.search(/win/i) >= 0) client.lineEnd = "\r\n"; | function initStatic(){ CIRCServer.prototype.VERSION_RPLY = getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]); client.mainWindow = window; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); const n... | |
setMenuCheck ("menu-dmessages", client.eventPump.getHook ("event-tracer").enabled); setMenuCheck ("menu-munger", client.munger.enabled); setMenuCheck ("menu-viewicons", client.ICONS_IN_TOOLBAR); | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quicklistC... | |
setMenuCheck ("menu-munger", client.munger.enabled); | setMenuCheck ("menu-munger-global", !client.munger.enabled); setupMungerMenu(client.munger); | function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) client.userAgent = "ChatZilla " + client.ver... |
client.display ("Welcome to ChatZilla...\n" + "Use /attach <network-name> connect to a network, or " + "click on one of the network names below.\n" + "For general IRC help and FAQs, please go to " + "<http: | client.display (getMsg("welcome"), "HELLO"); | function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) client.userAgent = "ChatZilla " + client.ver... |
window.onkeypress = onWindowKeyPress; | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); /* client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quic... | |
var saveDir = client.PRINT_DIRECTION; client.PRINT_DIRECTION = 1; | setMenuCheck ("menu-dmessages", client.eventPump.getHook ("event-tracer").enabled); setMenuCheck ("menu-munger", client.munger.enabled); setMenuCheck ("menu-viewicons", client.ICONS_IN_TOOLBAR); client.uiState["toolbar"] = setMenuCheck ("menu-view-toolbar", isVisible("views-tbar")); client.uiState["info"] = setMenuChe... | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); /* client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quic... |
client.PRINT_DIRECTION = saveDir; | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); /* client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quic... | |
if (!jsenv.HAS_XPCOM) client.display ("ChatZilla was not given access to the XPConnect " + "service. You will not be able to connect to an " + "irc server. A workaround may be to set the " + "'security.checkxpconnect' pref to false in " + "all.js, or your user prefs.", "ERROR"); window.onkeypress = onWindowKeyPress; | var ary = client.INITIAL_URLS.split(";"); for (var i in ary) { ary[i] = stringTrim(ary[i]); if (ary[i]) { if (ary[i].indexOf("irc: ary[i] = "irc: gotoIRCURL (ary[i]); } } | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); /* client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quic... |
setMenuCheck ("menu-dmessages", client.eventPump.getHook ("event-tracer").enabled); setMenuCheck ("menu-munger", client.munger.enabled); setMenuCheck ("menu-viewicons", client.ICONS_IN_TOOLBAR); client.uiState["toolbar"] = setMenuCheck ("menu-view-toolbar", isVisible("views-tbox")); client.uiState["info"] = setMenuChec... | ary = client.INITIAL_VICTIMS.split(";"); for (i in ary) { ary[i] = stringTrim(ary[i]); if (ary[i]) client.stalkingVictims.push (ary[i]); } | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); /* client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quic... |
onSortCol ("usercol-nick"); | var m = document.getElementById ("menu-settings-autosave"); m.setAttribute ("checked", String(client.SAVE_SETTINGS)); | function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); //obj = document.getElementById("tb[*client*]"); /* client.quickList = new CListBox(document.getElementById("quickList")); client.quickList.selectedItemCallback = quic... |
var wentSomewhere = false; if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { url = window.arguments[0].url; if (url.search(/^irc:\/?\/?$/i) == -1) { ary = client.INITIAL_URLS.split(/\s*;\s*/).reverse(); for (var i in ary) { if (ary[i] && ar... | function initStatic(){ var obj; const nsISound = Components.interfaces.nsISound; client.sound = Components.classes["@mozilla.org/sound;1"].createInstance(nsISound); if (client.CHARSET) setCharset(client.CHARSET); var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if... | |
window.onkeypress = onWindowKeyPress; | function initStatic(){ var obj; obj = document.getElementById("input"); obj.onkeyup = onInputKeyUp; obj = document.getElementById("tb[*client*]"); client.quickList = new CListBox(document.getElementById("quickList")); var saveDir = client.PRINT_DIRECTION; client.PRINT_DIRECTION = 1; clie... | |
this.showItem( "context-setWallpaper", this.onImage && navigator.appVersion.indexOf("Windows") != -1); | var isWin = navigator.appVersion.indexOf("Windows") != -1; this.showItem( "context-setWallpaper", isWin && this.onImage ); | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) ); this.showItem( "context-viewinfo", !( this.inDirList || this.onImage || t... |
if( isWin && this.onImage ) { var wallpaperItem = document.getElementById("context-setWallpaper"); if( !("complete" in this.target) || this.target.complete ) { wallpaperItem.removeAttribute("disabled"); } else { wallpaperItem.setAttribute("disabled", "true"); } } | initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) ); this.showItem( "context-viewinfo", !( this.inDirList || this.onImage || t... | |
this.showItem( "context-setWallpaper", isWin && this.onImage ); | this.showItem( "context-setWallpaper", isWin && (this.onImage || 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-sep-image", this.onImage ); | this.showItem( "context-sep-image", this.onImage || 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-viewbgimage", showView ); this.showItem( "context-sep-viewbgimage", showView ); | this.showItem( "context-viewbgimage", showView && !this.onStandaloneImage); this.showItem( "context-sep-viewbgimage", showView && !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... |
dump("init view messages\n"); | function InitViewMessagesMenu(){ dump("init view messages\n"); var allMenuItem = document.getElementById("viewAllMessagesMenuItem"); var viewFlags = gDBView.viewFlags; var viewType = gDBView.viewType; if(allMenuItem) allMenuItem.setAttribute("checked", (viewFlags & nsMsgViewFlagsType.kUnreadOnly) == 0 && (vi... | |
setSortByMenuItemCheckState("sortByScoreMenuitem", (sortType == nsMsgViewSortType.byScore)); | function InitViewSortByMenu(){ var sortType = gDBView.sortType; setSortByMenuItemCheckState("sortByDateMenuitem", (sortType == nsMsgViewSortType.byDate)); setSortByMenuItemCheckState("sortByFlagMenuitem", (sortType == nsMsgViewSortType.byFlagged)); setSortByMenuItemCheckState("sortByOrderReceivedMenuitem", ... | |
setSortByMenuItemCheckState("sortBySenderMenuitem", (sortType == nsMsgViewSortType.byAuthor)); | function InitViewSortByMenu(){ var sortType = gDBView.sortType; setSortByMenuItemCheckState("sortByDateMenuitem", (sortType == nsMsgViewSortType.byDate)); setSortByMenuItemCheckState("sortByFlagMenuitem", (sortType == nsMsgViewSortType.byFlagged)); setSortByMenuItemCheckState("sortByOrderReceivedMenuitem", ... | |
setSortByMenuItemCheckState("sortBySenderOrRecipientMenuitem", (sortType == nsMsgViewSortType.byAuthor) || (sortType == nsMsgViewSortType.byRecipient)); var senderOrRecipientMenuitem = document.getElementById("sortBySenderOrRecipientMenuitem"); if (senderOrRecipientMenuitem) { var currentFolder = gDBView.msgFolder; if ... | function InitViewSortByMenu(){ var sortType = gDBView.sortType; setSortByMenuItemCheckState("sortByDateMenuitem", (sortType == nsMsgViewSortType.byDate)); setSortByMenuItemCheckState("sortByFlagMenuitem", (sortType == nsMsgViewSortType.byFlagged)); setSortByMenuItemCheckState("sortByOrderReceivedMenuitem", ... | |
if (!eventData.network || matchText.search(bogusChannels) != -1) | if (!("network" in eventData) || matchText.search(bogusChannels) != -1) | 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; } ... |
"/" + escape (matchText)); | "/" + escape (encodedMatchText)); | function insertChannelLink (matchText, containerTag, eventData){ if (!("network" in eventData) || matchText.search (/^#(include|error|define|if|ifdef|else|elsif|endif|\d+)$/i) != -1) { containerTag.appendChild (document.createTextNode(matchText)); return; } var anchor = ... |
img.setAttribute ("title", matchText); | function insertEar (matchText, containerTag){ if (client.smileyText) containerTag.appendChild (document.createTextNode (matchText)); var img = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:img"); img.setAttribute ("src", client.IMAGEDIR + "face-ea... | |
if (includesToggleButton) | if (includesToggleButton && numOfEmailsInEnumerator < gNumOfEmailsToShowToggleButtonInFront) | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName) { if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { ... |
var item = document.createElement("html:a"); | var item = document.createElement("titledbutton"); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("html:a"); if ( item && parentDiv) { item.setAttribute('href', "mailto:" + emailAddress); item.appendChild(document.createTextNode(fullAddress));... |
item.setAttribute('href', "mailto:" + emailAddress); item.appendChild(document.createTextNode(fullAddress)); | item.setAttribute("class", "emailDisplayButton"); item.setAttribute("popup", "emailAddressPopup"); item.setAttribute("value", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("html:a"); if ( item && parentDiv) { item.setAttribute('href', "mailto:" + emailAddress); item.appendChild(document.createTextNode(fullAddress));... |
AddExtraAddressProcessing(emailAddress, item); var addressInfo = new Object; addressInfo.emailAddress = emailAddress; addressInfo.fullAddress = fullAddress; currentAddressData[item] = addressInfo; | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) { if ( parentBox ) { var item = document.createElement("html:a"); if ( item && parentDiv) { item.setAttribute('href', "mailto:" + emailAddress); item.appendChild(document.createTextNode(fullAddress));... | |
itemInDocument.setAttribute("value", fullAddress); | itemInDocument.setAttribute("label", fullAddress); | function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName) { if ( parentBox ) { var item = document.createElement("mail-emailaddress"); var itemInDocument; if ( item && parentDiv) { if (parentDiv.childNodes.length) { ... |
span.setAttribute ("title", emoticon); | function insertSmiley (emoticon, containerTag){ var type = "error"; if (emoticon.search (/\;[-^v]?[\)>\]]/) != -1) type = "face-wink"; else if (emoticon.search (/[=:;][-^v]?[\)>\]]/) != -1) type = "face-smile"; else if (emoticon.search (/[=:;][-^v]?[\/\\]/) != -1) type = "face-screw"; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.