rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
try { languageBundle = srGetStrBundle("chrome: } catch(ex) { languageBundle = null; } if (languageBundle) { try { regionBundle = srGetStrBundle("chrome: } catch(ex) { regionBundle = null; } }
function InitLanguageMenu(curLang){ var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { gSpellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var count = o2.value; // Load the string ...
dictList[i][0] = languageBundle.GetStringFromName(isoStrArray[0].toLowerCase());
dictList[i][0] = languageBundle.getString(isoStrArray[0].toLowerCase());
function InitLanguageMenu(curLang){ var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { gSpellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var count = o2.value; // Load the string ...
menuStr2 = regionBundle.GetStringFromName(isoStrArray[1].toLowerCase());
menuStr2 = regionBundle.getString(isoStrArray[1].toLowerCase());
function InitLanguageMenu(curLang){ var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { gSpellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var count = o2.value; // Load the string ...
AppendLabelAndValueToMenulist(gDialog.LanguageMenulist, dictList[i][0], dictList[i][1]);
gDialog.LanguageMenulist.appendItem(dictList[i][0], dictList[i][1]);
function InitLanguageMenu(curLang){ var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. try { gSpellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; } var dictList = o1.value; var count = o2.value; // Load the string ...
var messages = GetSelectedMessages(); var numMessages = messages.length; var compositeDS = GetCompositeDataSource("MarkMessageFlagged"); var property = RDF.GetResource('http: var areMessagesFlagged = false; for(var i = 0; i < numMessages; i++) { var result = compositeDS.GetTarget(messages[i], property, true); result...
areMessagesFlagged = SelectedMessagesAreFlagged();
function InitMarkFlaggedMenuItem(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var compositeDS = GetCompositeDataSource("MarkMessageFlagged"); var property = RDF.GetResource('http://home.netscape.com/NC-rdf#Flagged'); var areMessagesFlagged = false; for(var i = 0; i < numMessages; i++) { ...
var messages = GetSelectedMessages(); var numMessages = messages.length;
function InitMarkReadMenuItem(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var compositeDS = GetCompositeDataSource("MarkMessageRead"); var property = RDF.GetResource('http://home.netscape.com/NC-rdf#IsUnread'); var areMessagesRead; if(numMessages == 0) areMessagesRead = false; else { a...
var compositeDS = GetCompositeDataSource("MarkMessageRead"); var property = RDF.GetResource('http: var areMessagesRead; if(numMessages == 0) areMessagesRead = false; else { areMessagesRead = true; for(var i = 0; i < numMessages; i++) { var result = compositeDS.GetTarget(messages[i], property, true); result = result.Q...
areMessagesRead = SelectedMessagesAreRead();
function InitMarkReadMenuItem(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var compositeDS = GetCompositeDataSource("MarkMessageRead"); var property = RDF.GetResource('http://home.netscape.com/NC-rdf#IsUnread'); var areMessagesRead; if(numMessages == 0) areMessagesRead = false; else { a...
this.isContentSelected = this.isContentSelection();
initMenu : function ( popup ) { // Save menu. this.menu = popup; const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; if ( document.popupNode.namespaceURI == xulNS ) { this.shouldDisplay = false; return; } // Get contextual info. ...
InitMarkReadItem("markReadMenuItem"); InitMarkReadItem("markReadToolbarItem"); InitMarkFlaggedItem("markFlaggedMenuItem"); InitMarkFlaggedItem("markFlaggedToolbarItem"); document.commandDispatcher.updateCommands('create-menu-mark');
var areMessagesRead = SelectedMessagesAreRead(); var readItem = document.getElementById("cmd_markAsRead"); if(readItem) readItem.setAttribute("checked", areMessagesRead); var areMessagesFlagged = SelectedMessagesAreFlagged(); var flaggedItem = document.getElementById("cmd_markAsFlagged"); if(flaggedItem) flaggedItem.s...
function InitMessageMark(){ InitMarkReadItem("markReadMenuItem"); InitMarkReadItem("markReadToolbarItem"); InitMarkFlaggedItem("markFlaggedMenuItem"); InitMarkFlaggedItem("markFlaggedToolbarItem"); document.commandDispatcher.updateCommands('create-menu-mark');}
var openMenu = document.getElementById("openMessageWindowMenuitem"); if (openMenu) openMenu.setAttribute("disabled", !aMessage);
function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ...
var replySenderAndNewsgroupMenuItem = document.getElementById("replySenderAndNewsgroupMainMenu"); if (replySenderAndNewsgroupMenuItem) replySenderAndNewsgroupMenuItem.hidden = !isNews; var replyAllMenuItem = document.getElementById("replyallMainMenu"); if (replyAllMenuItem) replyAllMenuItem.hidden = isNews; var repl...
function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ...
var messages = GetSelectedMessages(); var numMessages = messages.length;
var aMessage = GetSelectedMessage(0);
function InitMessageMenu(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var isNews = false; if(numMessages > 0) { isNews = GetMessageType(messages[0]) == "news"; } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMain...
if(numMessages > 0)
if(aMessage)
function InitMessageMenu(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var isNews = false; if(numMessages > 0) { isNews = GetMessageType(messages[0]) == "news"; } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMain...
isNews = GetMessageType(messages[0]) == "news";
isNews = GetMessageType(aMessage) == "news";
function InitMessageMenu(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var isNews = false; if(numMessages > 0) { isNews = GetMessageType(messages[0]) == "news"; } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMain...
var moveMenu = document.getElementById("moveMenu"); if(moveMenu) moveMenu.setAttribute("disabled", !aMessage); var copyMenu = document.getElementById("copyMenu"); if(copyMenu) copyMenu.setAttribute("disabled", !aMessage);
function InitMessageMenu(){ var messages = GetSelectedMessages(); var numMessages = messages.length; var isNews = false; if(numMessages > 0) { isNews = GetMessageType(messages[0]) == "news"; } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMain...
function InitMessageTags(menuType)
function InitMessageTags(menuPopup)
function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing entries... var menuItemId = menuType + "-tagpopu...
var menuItemId = menuType + "-tagpopup"; var menupopupNode = document.getElementById(menuItemId); for (var i = menupopupNode.childNodes.length - 1; i >= 0; --i) menupopupNode.removeChild(menupopupNode.childNodes[i]);
while (menuPopup.firstChild && menuPopup.firstChild.localName != 'menuseparator') menuPopup.removeChild(menuPopup.firstChild); var menuSeparatorNode = menuPopup.firstChild;
function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing entries... var menuItemId = menuType + "-tagpopu...
menupopupNode.appendChild(newMenuItem);
menuPopup.insertBefore(newMenuItem, menuSeparatorNode);
function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing entries... var menuItemId = menuType + "-tagpopu...
var menuseparator = document.createElement('menuseparator'); menupopupNode.appendChild(menuseparator); newMenuItem = document.createElement('menuitem'); newMenuItem.setAttribute('label', gMessengerBundle.getString("newTag")); newMenuItem.setAttribute('oncommand', "AddTag()"); menupopupNode.appendChild(newMenuItem);
function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing entries... var menuItemId = menuType + "-tagpopu...
if (msgHdr.label != 0) curMsgHdrKeyArray.push("$label" + msgHdr.label);
function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing entries... var menuItemId = menuType + "-tagpopu...
this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink ) );
this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink || this.onImage ) );
initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "context-searchselect",...
this.showItem( "context-searchselect", this.isTextSelected );
this.showItem( "context-searchselect", this.isTextSelected && !this.onTextInput );
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...
if (this.inFrame) goSetMenuValue( "saveframeas", this.autoDownload ? "valueSave" : "valueSaveAs" );
initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onStandaloneImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "context-sea...
this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onStandaloneImage ) );
this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onStandaloneImage ) );
initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onStandaloneImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "context-sea...
this.showItem( "context-searchselect", this.isTextSelected() );
initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !this.onLink ); this.showItem( "context-bookmarklink", this.onLink ); // Send Page not working yet. this.showItem( "context-sendpage", false ); },
munger.addRule("talkback-link", /(?:\W|^)(TB\d+[A-Z]?)(?:\W|$)/,
munger.addRule("talkback-link", /(?:\W|^)(TB\d{8,}[A-Z]?)(?:\W|$)/,
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-sep-stop", !( this.isTextSelected || this.onLink || this.onTextInput ) );
this.showItem( "context-sep-stop", !( this.isTextSelected || this.onLink || this.onTextInput || this.onImage ) );
initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ...
this.showItem( "context-back", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-forward", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
this.showItem( "context-back", showNav ); this.showItem( "context-forward", showNav );
initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ...
this.showItem( "context-reload", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
this.showItem( "context-reload", showNav );
initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ...
this.showItem( "context-stop", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-sep-stop", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
this.showItem( "context-stop", showNav ); this.showItem( "context-sep-stop", showNav );
initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ...
var showNav = !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput );
var showNav = !( this.isContentSelected || this.onLink || this.onImage || this.onTextInput );
initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); var s...
this.showItem( "context-openlink", this.onSaveableLink || ( this.inDirList && this.onLink ) ); this.showItem( "context-openlinkintab", this.onSaveableLink || ( this.inDirList && this.onLink ) );
var showOpen = this.onSaveableLink || ( this.inDirList && this.onLink );
initOpenItems : function () { this.showItem( "context-openlink", this.onSaveableLink || ( this.inDirList && this.onLink ) ); this.showItem( "context-openlinkintab", this.onSaveableLink || ( this.inDirList && this.onLink ) ); this.showItem( "context-sep-open", this.onSaveableLink || ( this.inDir...
this.showItem( "context-sep-open", this.onSaveableLink || ( this.inDirList && this.onLink ) );
this.showItem( "context-openlink", showOpen ); this.showItem( "context-openlinkintab", showOpen ); this.showItem( "context-sep-open", showOpen );
initOpenItems : function () { this.showItem( "context-openlink", this.onSaveableLink || ( this.inDirList && this.onLink ) ); this.showItem( "context-openlinkintab", this.onSaveableLink || ( this.inDirList && this.onLink ) ); this.showItem( "context-sep-open", this.onSaveableLink || ( this.inDir...
this.showItem( "context-showonlythisframe", this.inFrame );
initOpenItems : function () { // Remove open/edit link if not applicable. this.showItem( "context-openlink", this.onSaveableLink || ( this.inDirList && this.onLink ) ); this.showItem( "context-editlink", this.onSaveableLink && !this.inDirList ); // Remove open frame if not applicable...
else queuedTag = aPageTag;
else { dump("*** queueing up a panel...\n"); queuedTag = aPrefTag; }
function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ) else queuedTag = aPageTag; }
queuedTag = aPrefTag;
window.queuedTag = aPrefTag;
function initPanel ( aPrefTag ) { if( hPrefWindow ) hPrefWindow.onpageload( aPrefTag ) else { dump("*** queueing up a panel...\n"); queuedTag = aPrefTag; } }
top.controllers.appendController(DefaultController); SetupCommandUpdateHandlers();
function InitPanes(){ var mailsidebar = new Object mailsidebar.db = 'chrome://messenger/content/sidebar-messenger.rdf' mailsidebar.resource = 'NC:MessengerSidebarRoot' var threadTree = GetThreadTree(); if(threadTree); OnLoadThreadPane(threadTree); var folderTree = GetFolderTree(); if(folderTree) OnLoadFolderPan...
var element = document.getElementById("PhoneticLastName"); element.setAttribute("hidden", "false"); element = document.getElementById("PhoneticLabel1"); element.setAttribute("hidden", "false"); element = document.getElementById("PhoneticSpacer1"); element.setAttribute("hidden", "false"); element = document.getElementB...
for (var i = kPhoneticFields.length; i-- > 0; ) document.getElementById(kPhoneticFields[i]).hidden = false;
function InitPhoneticFields(){ var showPhoneticFields = gPrefs.getComplexValue("mail.addr_book.show_phonetic_fields", Components.interfaces.nsIPrefLocalizedString).data; // hide phonetic fields if indicated by the pref if (showPhoneticFields == "true") { var element = docume...
var percentIndex = size.search(/%/); var pxIndex = size.search(/px/); if (percentIndex > 0)
if (/%/.test(size))
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...
size = size.substr(0, percentIndex);
size = RegExp.leftContext;
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...
else if (pxIndex > 0)
else
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...
size = size.substr(0, pxIndex);
if (/px/.test(size)) size = RegExp.leftContext;
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...
else menulist.selectedItem = pixelItem;
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...
return;
initPopupURL: function() { return; // remove this line to reenable the context menu // 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 xulw...
show = !PB.getBoolPref("dom.disable_open_during_load") && PB.getIntPref("privacy.popups.policy") == CI.nsIPopupWindowManager.ALLOW_POPUP && PB.getBoolPref("privacy.popups.usecustom");
show = !PB.getBoolPref("dom.disable_open_during_load");
initPopupURL: function() { return; // remove this line to reenable the context menu // 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 xulw...
try { if (prefsTreeNode.hasAttribute('tabnavpref')) gTabNavPref = prefsTreeNode.getAttribute('tabnavpref'); else gTabNavPref = pref.GetIntPref('accessibility.tabfocus'); gTabNavPref |= 1;
gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome:
function initPrefs(){ try { if (prefsTreeNode.hasAttribute('tabnavpref')) gTabNavPref = prefsTreeNode.getAttribute('tabnavpref'); else gTabNavPref = pref.GetIntPref('accessibility.tabfocus'); gTabNavPref |= 1; // Textboxes are always part of the tab order document.getElementById('tabNavigationLi...
document.getElementById('tabNavigationLinks').setChecked((gTabNavPref & kTabToLinks) != 0); document.getElementById('tabNavigationForms').setChecked((gTabNavPref & kTabToForms) != 0);
if (!("tabNavPref" in gData)) { gData.tabNavPref = parent.hPrefWindow.getPref('int', 'accessibility.tabfocus') | 1; gData.linksOnlyPref = parent.hPrefWindow.getPref('bool', 'accessibility.typeaheadfind.linksonly')? 1: 0; }
function initPrefs(){ try { if (prefsTreeNode.hasAttribute('tabnavpref')) gTabNavPref = prefsTreeNode.getAttribute('tabnavpref'); else gTabNavPref = pref.GetIntPref('accessibility.tabfocus'); gTabNavPref |= 1; // Textboxes are always part of the tab order document.getElementById('tabNavigationLi...
document.getElementById('tabNavigationLinks').setChecked((gData.tabNavPref & kTabToLinks) != 0); document.getElementById('tabNavigationForms').setChecked((gData.tabNavPref & kTabToForms) != 0);
function initPrefs(){ try { if (prefsTreeNode.hasAttribute('tabnavpref')) gTabNavPref = prefsTreeNode.getAttribute('tabnavpref'); else gTabNavPref = pref.GetIntPref('accessibility.tabfocus'); gTabNavPref |= 1; // Textboxes are always part of the tab order document.getElementById('tabNavigationLi...
if (prefsTreeNode.hasAttribute('linksonlypref')) linksOnlyPref = prefsTreeNode.getAttribute('linksonlypref'); else linksOnlyPref = pref.GetBoolPref('accessibility.typeaheadfind.linksonly')? 1: 0; var radioGroup = document.getElementById('findAsYouTypeAutoWhat'); radioGroup.selectedIndex = linksOnlyPref; setLinksOnlyDis...
var radioGroup = document.getElementById('findAsYouTypeAutoWhat'); radioGroup.selectedIndex = gData.linksOnlyPref; setLinksOnlyDisabled();
function initPrefs(){ try { if (prefsTreeNode.hasAttribute('tabnavpref')) gTabNavPref = prefsTreeNode.getAttribute('tabnavpref'); else gTabNavPref = pref.GetIntPref('accessibility.tabfocus'); gTabNavPref |= 1; // Textboxes are always part of the tab order document.getElementById('tabNavigationLi...
console.addPref ("enableChromeFilter", false);
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...
var statusFeedback = window.arguments[2];
var statusFeedback = window.arguments[2]; printSettings = window.arguments[3].QueryInterface(Components.interfaces.nsIPrintSettings);
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.SetWindow(window); // See if we got arguments. // Window was opened via window.openDialog. Copy argument // and perform compose initialization // if ( window.arguments && window.arguments[0] !=...
doingPrintPreview = window.arguments[4]; printEngine.doPrintPreview = doingPrintPreview;
printEngine.doPrintPreview = window.arguments[4];
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.setWindow(window); /* hide the printEngine window. see bug #73995 */ /* See if we got arguments. * Window was opened via window.openDialog. Copy argument * and perform compose initialization ...
gStartupPPObserver.printengine = this;
function InitPrintEngineWindow(){ /* Tell the nsIPrintEngine object what window is rendering the email */ printEngine.setWindow(window); /* hide the printEngine window. see bug #73995 */ /* See if we got arguments. * Window was opened via window.openDialog. Copy argument * and perform compose initialization ...
document.getElementById("dontShowPrivacyStatement").setAttribute("checked", "true");
function initPrivacyNotice() { var reportWizard = document.getElementById('reportWizard'); // If they agreed, we continue on if (getBoolPref("hidePrivacyStatement", false)) { reportWizard.advance(); } else { // Don't let users rewind, and default to checked. reportWizard.canRewind = false; document.getE...
if (gSearchInput.searchMode == 4 || gSearchInput.value == "" || gSearchInput.showingSearchCriteria)
GetSearchInput(); if (!gSearchInput ||gSearchInput.value == "" || gSearchInput.showingSearchCriteria)
function InitQuickSearchPopup(){ // disable the create virtual folder menu item if the current radio // value is set to Find in message since you can't really create a VF from find // in message if (gSearchInput.searchMode == 4 /* find in page */ || gSearchInput.value == "" || gSearchInput.showingSearchCriteria) ...
if (this.onImage){ var saveImageMenuItem = document.getElementById( 'context-saveimage' ); var imageName = extractFileNameFromUrl(this.imageURL); var bundle = srGetStrBundle("chrome: var caption = bundle.formatStringFromName("saveImageAs",[imageName],1); saveImageMenuItem.setAttribute( "value", 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.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink ));
this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage )); this.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink || this.onImage ));
initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink )); this.showItem( "context-sendpage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onLink )); // Save link depends on whether we'...
var caption = bundle.formatStringFromName("saveImageAs",[imageName],1);
var caption; if (imageName) { caption = bundle.formatStringFromName("saveImageAs", [imageName], 1); } else { caption = bundle.GetStringFromName("saveImageAsNoFilename"); }
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 whether we'...
this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage || (this.onLink && this.onImage)));
var showSave = !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage || ( this.onLink && this.onImage ) ); if (showSave) goSetMenuValue( "context-savepage", this.autoDownload ? "valueSave" : "valueSaveAs" ); this.showItem( "context-savepage", showSave );
initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage || (this.onLink && this.onImage))); // Save link depends on whether we're in a link. this.showIt...
this.showItem( "context-saveimage", this.onImage || this.onStandaloneImage); this.showItem( "context-sendimage", this.onImage || this.onStandaloneImage);
showSave = this.onImage || this.onStandaloneImage; if (showSave) goSetMenuValue( "context-saveimage", this.autoDownload ? "valueSave" : "valueSaveAs" ); this.showItem( "context-saveimage", showSave ); this.showItem( "context-sendimage", showSave );
initSaveItems : function () { this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage || (this.onLink && this.onImage))); // Save link depends on whether we're in a link. this.showIt...
var showSave = !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage ||
var showSave = !( this.inDirList || this.isContentSelected || this.onTextInput || this.onStandaloneImage ||
initSaveItems : function () { var showSave = !( this.inDirList || this.isTextSelected || this.onTextInput || this.onStandaloneImage || ( this.onLink && this.onImage ) ); if (showSave) goSetMenuValue( "context-savepage", this.autoDownload ? "valueSave" : "valueSaveAs" ); ...
onLockPreference();
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 (gSmtpAuthMethod.getAttribute("value") == "1") gSmtpUseUsername.checked = true;
gSmtpUseUsername.checked = (gSmtpAuthMethod.getAttribute("value") == "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...
gSmtpDescription.value = server.description;
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...
updateControls();
function initSmtpSettings(server) { gSmtpUsername = document.getElementById("smtp.username"); gSmtpDescription = document.getElementById("smtp.description"); gSmtpUsernameLabel = document.getElementById("smtpusernamelabel"); gSmtpHostname = document.getElementById("smtp.hostname"); gSmtpPort = document.g...
var suggestionsSeparator = document.getElementById("spell-add-to-dictionary");
var suggestionsSeparator = document.getElementById("spell-add-separator");
initSpellingItems : function () { var canSpell = InlineSpellCheckerUI.canSpellCheck; var onMisspelling = InlineSpellCheckerUI.overMisspelling; this.showItem("spell-check-enabled", canSpell); this.showItem("spell-separator", canSpell || this.possibleSpellChecking); if (canSpell) ...
var ary = navigator.userAgent.match (/(rv:[^;)\s]+).*?Gecko\/(\d+)/);
function initStatic(){ client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { dd("IO service failed to initalize: " + ex); } try { const ns...
if (ary)
var app = getService("@mozilla.org/xre/app-info;1", "nsIXULAppInfo"); if (app)
function initStatic(){ client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { dd("IO service failed to initalize: " + ex); } try { const ns...
if (navigator.vendor) ua = navigator.vendor + " " + navigator.vendorSub; else ua = client.entities.brandShortName + " " + ary[1]; ua = ua + "/" + ary[2];
ua = app.name + " " + app.version + "/" + app.geckoBuildID; CIRCServer.prototype.HOST_RPLY = app.vendor + " " + app.name + " " + app.version + ", " + client.platform;
function initStatic(){ client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { dd("IO service failed to initalize: " + ex); } try { const ns...
CIRCServer.prototype.HOST_RPLY = client.entities.brandShortName + ", " + client.platform;
function initStatic(){ client.mainWindow = window; try { var io = Components.classes['@mozilla.org/network/io-service;1']; client.iosvc = io.getService(Components.interfaces.nsIIOService); } catch (ex) { dd("IO service failed to initalize: " + ex); } try { const ns...
ary = client.INITIAL_VICTIMS.split(";");
ary = client.INITIAL_VICTIMS.split(/\s*;\s*/);
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...
ary[i] = stringTrim(ary[i]);
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...
ary = client.INITIAL_URLS.split(";");
ary = client.INITIAL_URLS.split(/\s*;\s*/).reverse();
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...
if ((ary[i] = stringTrim(ary[i])) && ary[i] != "irc: {
if (ary[i] && ary[i] != "irc:
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...
}
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...
obj.addEventListener("keyup", onInputKeyUp, false);
obj.addEventListener("keypress", onInputKeyPress, false);
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...
obj.addEventListener("keyup", onMultilineInputKeyUp, false);
obj.addEventListener("keypress", onMultilineInputKeyPress, false); obj = document.getElementById("channel-topicedit"); obj.addEventListener("keypress", onTopicKeyPress, false); obj.active = false;
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...
setMenuCheck ("menu-view-status", isVisible("status-bar-tbar"));
setMenuCheck ("menu-view-status", isVisible("status-bar"));
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.statusBar["net-name"] = document.getElementById ("net-name"); client.statusBar["server-name"] = document.getElementById ("server-name");
client.statusBar["header-url"] = document.getElementById ("header-url");
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.statusBar["server-lag"] = document.getElementById ("server-lag"); client.statusBar["last-ping"] = document.getElementById ("last-ping"); client.statusBar["channel-name"] = document.getElementById ("channel-name"); client.statusBar["channel-limit"] = document.getElementById ("channel-limit"); client.statusBar["ch...
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.statusBar["channel-topicby"] = document.getElementById ("channel-topicby");
client.statusBar["channel-topicedit"] = document.getElementById ("channel-topicedit");
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...
if (window.arguments && window.arguments[0] && window.arguments[0].url)
if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0])
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...
var ary = client.INITIAL_URLS.split(";");
ary = client.INITIAL_URLS.split(";");
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...
if ((ary[i] = stringTrim(ary[i])))
{ if ((ary[i] = stringTrim(ary[i])) && ary[i] != "irc: {
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...
if (client.viewsArray.length > 1 && !isStartupURL("irc: { var tb = getTabForObject (client); deleteTab(tb); }
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...
setMenuCheck ("menu-viewicons", client.ICONS_IN_TOOLBAR);
function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); window.onkeypress = onWindowKeyPress; setMenuCheck ("menu-dmessages", client.eventPump.getHook ("event-tracer").enabled); setMenuCheck ("menu-munger", clien...
"Use /attach <network-name> connect to a network.\n" + "Where <network-name> is one of [" + keys (client.networks) + "]\n" + "More help is available with /help [<command-name>]", "HELLO");
"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:
function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); window.onkeypress = onWindowKeyPress; setMenuCheck ("menu-dmessages", client.eventPump.getHook ("event-tracer").enabled); setMenuCheck ("menu-munger", clien...
gotoIRCURL (document.location.search.substr(1));
gotoIRCURL (document.location.search.substr(1)); setInterval ("onNotifyTimeout()", client.NOTIFY_TIMEOUT);
function initStatic(){ var obj; obj = document.getElementById("input"); obj.addEventListener("keyup", onInputKeyUp, false); window.onkeypress = onWindowKeyPress; setMenuCheck ("menu-dmessages", client.eventPump.getHook ("event-tracer").enabled); setMenuCheck ("menu-munger", clien...
client.onInputNetworks(); client.onInputCommands(); ary = client.INITIAL_VICTIMS.split(/\s*;\s*/); for (i in ary) { if (ary[i]) client.stalkingVictims.push (ary[i]); }
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...
this.mPercentComplete = 0;
this.mPercentComplete = undefined;
initTodo: function () { this.mEntryDate = new CalDateTime(); this.mDueDate = new CalDateTime(); this.mCompletedDate = new CalDateTime(); this.mPercentComplete = 0; },
this.showItem( "context-blockimage", this.onImage && this.isBlockingImages() ); this.showItem( "context-capture", this.okToCapture() ); this.setItemAttr( "context-capture", "disabled", this.disableCapture); this.showItem( "context-prefill", this.okToPrefill() ); this.setItemAttr( "context-prefill", "disabled", this...
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !this.inDirList ); // View frame source depends on whether we're in a frame. this.showItem( "context-viewframesource", this.inFrame ); // View Info ...
this.showItem( "context-viewpartialsource-selection", this.isTextSelected );
this.showItem( "context-viewpartialsource-selection", this.isTextSelected && !this.onTextInput );
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewpartialsource-selection", this.isTextSelected ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected ); this.showItem( "context-viewsou...
this.showItem( "context-viewsource", !this.inDirList );
this.showItem( "context-viewsource", !( this.inDirList || this.onImage ) );
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !this.inDirList ); // View frame source depends on whether we're in a frame. this.showItem( "context-viewframesource", this.inFrame ); // View Info is avail...
this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) ); this.showItem( "context-viewinfo", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
var showView = !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ); this.showItem( "context-viewsource", showView ); this.showItem( "context-viewinfo", showView );
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 ); this.showI...
this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) ); this.showItem( "context-sep-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
this.showItem( "context-viewbgimage", showView ); this.showItem( "context-sep-viewbgimage", showView );
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 ); this.showI...
this.showItem( "context-blockimage", this.onImage && this.isBlockingImages() );
initViewItems : function () { // View source is always OK. // View frame source depends on whether we're in a frame. this.showItem( "context-viewframesource", this.inFrame ); // View Info don't work no way no how. this.showItem( "context-viewinfo", false ); // V...
else if (makeURI(this.target.src).scheme == "javascript") disableDesktopBackground = 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.setItemAttr( "context-capture", "disabled", this.disableCapture);
initViewItems : function () { // View source is always OK, unless in directory listing. this.showItem( "context-viewsource", !this.inDirList ); // View frame source depends on whether we're in a frame. this.showItem( "context-viewframesource", this.inFrame ); // View Info ...
this.showItem( "context-viewpartialsource-selection", this.isTextSelected && !this.onTextInput ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected );
this.showItem( "context-viewpartialsource-selection", this.isContentSelected && !this.onTextInput ); this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isContentSelected );
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 showView = !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput );
var showView = !( this.inDirList || this.onImage || this.isContentSelected || this.onLink || 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...