rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
aPane.notifyViewerReady(this);
initialize: function(aPane) { //this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), false); this.setAccessibleNodes(PrefUtils.getPref("inspector.dom.showAccessibleNodes"), false); this.setWhitespaceNodes(PrefUtils....
aPane.notifyViewerReady(this);
initialize: function(aPane) { //this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), false); this.setAccessibleNodes(PrefUtils.getPref("inspector.dom.showAccessibleNodes"), false); this.setWhitespaceNodes(PrefUtils....
this.initPrefs();
PrefUtils.addObserver("inspector", PrefChangeObserver);
initialize: function() { this.loadViewerRegistry(); this.installNavObserver(); this.initPrefs(); this.setFlashSelected(PrefUtils.getPref("inspector.blink.on")); },
el.addEventListener("load", BrowserLoadListener, true);
el.addEventListener("PageShow", BrowserPageShowListener, true);
initialize: function(aTarget, aURI) { this.mInitTarget = aTarget; //this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.setBrowser(false, true); //this.setSearch(false, true); this.mClipboardHelper = XPCU.getService(k...
var firstTerm = gSearchTerms[0].obj;
var firstTerm = gSearchTerms[0].searchTerm;
function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0].obj; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" var targetValue = "or"; if (booleanAnd) target...
initializeSearchRows(scope, filter.searchTerms)
initializeSearchRows(scope, filter.searchTerms); if (filter.searchTerms.Count() > 1) gSearchLessButton.removeAttribute("disabled", "false");
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { dump("pre-selecting t...
gChangeJunkScoreCheckbox.checked = true;
gJunkScoreCheckbox.checked = true;
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf...
} else if (filterAction.type == nsMsgFilterAction.CopyToFolder) { gCopyToFolderCheckbox.checked = true; var target = filterAction.targetFolderUri; if (target) SetFolderPicker(target, gActionTargetCopyElement.id);
function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf...
gArrayHdrs = hdrs.split(": ");
hdrs = hdrs.replace(/\s+/g,''); gArrayHdrs = hdrs.split(":"); for (var i = 0; i< gArrayHdrs.length; i++) if (!gArrayHdrs[i]) gArrayHdrs.splice(i,1);
function initializeDialog(hdrs){ if (hdrs) { gArrayHdrs = hdrs.split(": "); initializeRows(); }}
gChangeJunkScoreCheckbox = document.getElementById("setJunkScore");
function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetElement = document.getElementById("actionTargetFolder"); gActionValueDeck = document.getElementById("actionValueDeck"); gActionPriority = document.getElementById("actionValuePriority"); gActionJun...
gCopyToFolderCheckbox = document.getElementById("copyToFolder");
function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetElement = document.getElementById("actionTargetFolder"); gActionValueDeck = document.getElementById("actionValueDeck"); gActionPriority = document.getElementById("actionValuePriority"); gActionJun...
gLabelCheckbox = document.getElementById("label");
gJunkScoreCheckbox = document.getElementById("setJunkScore");
function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetMoveElement = document.getElementById("actionTargetFolder"); gActionTargetCopyElement = document.getElementById("actionTargetFolder2"); gActionValueDeck = document.getElementById("actionValueDeck"); ...
gJunkScoreCheckbox = document.getElementById("setJunkScore");
function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetMoveElement = document.getElementById("actionTargetFolder"); gActionTargetCopyElement = document.getElementById("actionTargetFolder2"); gActionValueDeck = document.getElementById("actionValueDeck"); ...
gDeleteFromServerCheckbox = document.getElementById("deleteFromServer"); gFetchBodyFromServerCheckbox = document.getElementById("fetchBodyFromServer");
function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionTargetMoveElement = document.getElementById("actionTargetFolder"); gActionTargetCopyElement = document.getElementById("actionTargetFolder2"); gActionValueDeck = document.getElementById("actionValueDeck"); ...
gSearchSession.addFolderListener(folderListener);
function initializeGlobalListeners(){ gSearchSession.addFolderListener(folderListener); // Setup the javascript object as a listener on the search results gSearchSession.registerListener(gSearchNotificationListener);}
try { gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService(); gLDAPPrefsService = gLDAPPrefsService.QueryInterface( Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP service\n" + ex + "\n");}
gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"]; if (gLDAPPrefsService) { try { gLDAPPrefsService = gLDAPPrefsService .getService(Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");} }
function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen...
} catch (ex) {dump ("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");}
} catch (ex) {Components.utils.reportError("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");} if (gLDAPPrefsService) { gLDAPPrefsService.migratePrefsIfNeeded(); }
function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen...
try { gLDAPPrefsService = gLDAPPrefsService.getService().gLDAPPrefsService .QueryInterface( Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");}
try { gLDAPPrefsService = gLDAPPrefsService .getService(Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");}
function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen...
try { gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService(); gLDAPPrefsService = gLDAPPrefsService.QueryInterface( Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP service\n" + ex + "\n");}
gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"]; if (gLDAPPrefsService) { try { gLDAPPrefsService = gLDAPPrefsService.getService().gLDAPPrefsService .QueryInterface( Components.interfaces.nsILDAPPrefsService); } catch (ex) {dump ("ERROR: Cannot get the LDAP prefs service\n" + ex + "\n");} }
function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen...
if (!gCollapsedHeaderView.length) for (var index = 0; index < gCollapsedHeaderList.length; index++)
var index; for (index = 0; index < gCollapsedHeaderList.length; index++)
function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table if (!gCollapsedHeaderView.length) // if we haven't already initialized the collapsed view... for (var index ...
if (!gExpandedHeaderView.length) {
function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table if (!gCollapsedHeaderView.length) // if we haven't already initialized the collapsed view... for (var index ...
}
function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table if (!gCollapsedHeaderView.length) // if we haven't already initialized the collapsed view... for (var index ...
gTotalSearchTerms = searchTerms.Count(); for (var i=0; i<gTotalSearchTerms; i++) {
for (i = 0; i < searchTerms.Count(); i++) {
function initializeSearchRows(scope, searchTerms){ gTotalSearchTerms = searchTerms.Count(); for (var i=0; i<gTotalSearchTerms; i++) { var searchTerm = searchTerms.QueryElementAt(i, nsIMsgSearchTerm); createSearchRow(i, scope, searchTerm); } initializeBooleanWidgets();}
if (gTotalSearchTerms == 1) document.getElementById("less0").setAttribute("disabled", "true");
function initializeSearchRows(scope, searchTerms){ gTotalSearchTerms = searchTerms.Count(); for (var i=0; i<gTotalSearchTerms; i++) { var searchTerm = searchTerms.QueryElementAt(i, nsIMsgSearchTerm); createSearchRow(i, scope, searchTerm); } initializeBooleanWidgets();}
hideMatchAllItem();
function initializeSearchWindowWidgets(){ gSearchStopButton = document.getElementById("search-button"); gPropertiesButton = document.getElementById("propertiesButton"); gComposeButton = document.getElementById("composeButton"); gStatusText = document.getElementById('statusText');}
gComposeButton = document.getElementById("composeButton");
function initializeSearchWindowWidgets(){ gSearchStopButton = document.getElementById("search-button"); gPropertiesButton = document.getElementById("propertiesButton"); gStatusText = document.getElementById('statusText');}
gStatusBar = document.getElementById('statusbar-icon');
function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gThreadTree = document.getElementById("threadTree"); gButton = document.getElementById("search-button"); msgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow); msgWindow.stat...
msgWindow.domWindow = window;
function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gSearchStopButton = document.getElementById("search-button"); gStatusBar = document.getElementById('statusbar-icon'); hideMatchAllItem(); msgWindow = Components.classes[msgWindowContractID].createI...
if (client.host != "Firefox")
var sourceDir; if (client.host == "Firefox") { sourceDir = getSpecialDirectory("ProfD"); sourceDir.append("extensions"); sourceDir.append("{" + __cz_guid + "}"); sourceDir.append("defaults"); } else if (client.host == "XULrunner") { sourceDir = getSpecialDirectory("resource:app"); sourceDir.append("chrome"); sourceDir....
function initIcons(){ // Make sure we got the ChatZilla icon(s) in place first. const iconName = "chatzilla-window"; const suffixes = [".ico", ".xpm", "16.xpm"]; /* when installing on Mozilla, the XPI has the power to put the icons where * they are needed - in Firefox, it doesn't. So we move them here, ...
var sourceDir = getSpecialDirectory("ProfD"); sourceDir.append("extensions"); sourceDir.append("{" + __cz_guid + "}"); sourceDir.append("defaults");
}
function initIcons(){ // Make sure we got the ChatZilla icon(s) in place first. const iconName = "chatzilla-window"; const suffixes = [".ico", ".xpm", "16.xpm"]; /* when installing on Mozilla, the XPI has the power to put the icons where * they are needed - in Firefox, it doesn't. So we move them here, ...
if (client.host == "Firefox")
if ((client.host == "Firefox") || (client.host == "Flock"))
function initIcons(){ // Make sure we got the ChatZilla icon(s) in place first. const iconName = "chatzilla-window"; const suffixes = [".ico", ".xpm", "16.xpm"]; /* when installing on Mozilla, the XPI has the power to put the icons where * they are needed - in Firefox, it doesn't. So we move them here, ...
this.mMemoryCalendar.wrappedJSObject.calendarToReturn = this;
initICSCalendar: function() { this.mMemoryCalendar = Components.classes["@mozilla.org/calendar/calendar;1?type=memory"] .createInstance(Components.interfaces.calICalendar); this.mICSService = Components.classes["@mozilla.org/calendar/ics-service;1"] ...
var fileURL = url.QueryInterface( Components.interfaces.nsIFileURL); if (fileURL.schemeIs("file"))
var fileURL = url.QueryInterface(Components.interfaces.nsIFileURL); if (fileURL)
initIntro: function(url) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this...
initIntro: function() {
initIntro: function(url) {
initIntro: function() { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this.mLaunc...
modified = this.replaceInsert( modified, 3, this.mSourcePath );
var pathString = this.mSourcePath; try { var fileURL = url.QueryInterface( Components.interfaces.nsIFileURL); if (fileURL) { var fileObject = fileURL.file; if (fileObject) { var parentObject = fileObject.parent; if (parentObject) { pathString = parentObject.unicodePath; } } } } catch(ex) {} modified = this.replaceIns...
initIntro: function() { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this.mLaunc...
this.mCreationDate = createCalDateTime(); this.mAlarmTime = createCalDateTime(); this.mLastModifiedTime = createCalDateTime();
this.mCreationDate = new CalDateTime(); this.mAlarmTime = new CalDateTime(); this.mLastModifiedTime = new CalDateTime();
initItemBase: function () { this.mCreationDate = createCalDateTime(); this.mAlarmTime = createCalDateTime(); this.mLastModifiedTime = createCalDateTime(); this.mProperties = Components.classes["@mozilla.org/hash-property-bag;1"]. createInstance(Components.interf...
this.initSpellingItems();
initItems : function () { this.initOpenItems(); this.initNavigationItems(); this.initViewItems(); this.initMiscItems(); this.initSaveItems(); this.initClipboardItems(); this.initMetadataItems(); },
var tagNameObj = new Object; var countObj = new Object;
var tagNameObj = new Object(); var numSelected;
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 =...
var tableEd = gEditor.QueryInterface(Components.interfaces.nsITableEditor); tableEd.getSelectedOrParentTableElement(foundElement, tagNameObj, countObj); if (foundElement && countObj.value > 1)
try { var elt = new Object(); numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj); foundElement = elt.value; } catch(e) {} if (foundElement && numSelected > 1)
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 =...
var elt = { value: null };
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 =...
numSelected = gEditor.getSelectedOrParentTableElement(elt, tagNameObj); foundElement = elt.value;
var countObj = {value:0} foundElement = gEditor.getSelectedOrParentTableElement(tagNameObj, countObj); numSelected = countObj.value
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 =...
var languageMenuList = document.getElementById('LanguageMenulist');
initLanguageMenu: function () { this.mSpellChecker = 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 ...
var regionBundle;
var regionBundle = null;
initLanguageMenu: function () { this.mSpellChecker = 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 ...
var defaultItem = null;
initLanguageMenu: function () { this.mSpellChecker = 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 ...
for (i = 0; i < dictList.length; i++)
for (i = 0; i < count; i++)
initLanguageMenu: function () { this.mSpellChecker = 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 ...
dictList[i] = new Array(2); dictList[i][1] = langId;
if (languageBundle && isoStrArray[0]) langLabel = languageBundle.getString(isoStrArray[0].toLowerCase());
initLanguageMenu: function () { this.mSpellChecker = 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 ...
if (languageBundle && isoStrArray[0]) dictList[i][0] = languageBundle.getString(isoStrArray[0].toLowerCase()); if (regionBundle && dictList[i][0] && isoStrArray.length > 1 && isoStrArray[1])
if (regionBundle && langLabel && isoStrArray.length > 1 && isoStrArray[1])
initLanguageMenu: function () { this.mSpellChecker = 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 ...
dictList[i][0] = dictList[i][0] + "/" + menuStr2;
langLabel += "/" + menuStr2;
initLanguageMenu: function () { this.mSpellChecker = 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 ...
if (!dictList[i][0]) dictList[i][0] = dictList[i][1];
if (!langLabel) langLabel = langId;
initLanguageMenu: function () { this.mSpellChecker = 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 ...
dictList[i][0] = dictList[i][1];
langLabel = langId;
initLanguageMenu: function () { this.mSpellChecker = 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 ...
dictList.sort();
dictList.sort( function compareFn(a, b) { return a[0].localeCompare(b[0]); } ); var languageMenuList = document.getElementById("languageMenuList"); var languageMenuPopup = languageMenuList.firstChild; while (languageMenuPopup.hasChildNodes()) languageMenuPopup.removeChild(languageMenuPopup.firstChild);
initLanguageMenu: function () { this.mSpellChecker = 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 ...
function InitLanguageMenu(curLang)
function InitLanguageMenu(aCurLang)
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 regionBundle;
var 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 ...
var defaultItem = 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 ...
for (i = 0; i < dictList.length; i++)
for (i = 0; i < count; i++)
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] = new Array(2); dictList[i][1] = langId;
if (languageBundle && isoStrArray[0]) langLabel = 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 ...
if (languageBundle && isoStrArray[0]) dictList[i][0] = languageBundle.getString(isoStrArray[0].toLowerCase()); if (regionBundle && dictList[i][0] && isoStrArray.length > 1 && isoStrArray[1])
if (regionBundle && langLabel && isoStrArray.length > 1 && isoStrArray[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 ...
dictList[i][0] = dictList[i][0] + "/" + menuStr2;
langLabel += "/" + menuStr2;
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 ...
if (!dictList[i][0]) dictList[i][0] = dictList[i][1]; } catch (ex) { dictList[i][0] = dictList[i][1];
if (!langLabel) langLabel = langId;
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.sort();
dictList.sort( function compareFn(a, b) { return a[0].localeCompare(b[0]); } );
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 ...
for (i = 0; i < dictList.length; i++)
var languageMenuPopup = gDialog.LanguageMenulist.firstChild; while (languageMenuPopup.firstChild.localName != "menuseparator") languageMenuPopup.removeChild(languageMenuPopup.firstChild); var defaultItem = null; for (i = 0; i < count; i++)
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 item = gDialog.LanguageMenulist.appendItem(dictList[i][0], dictList[i][1]); if (curLang && dictList[i][1] == curLang)
var item = gDialog.LanguageMenulist.insertItemAt(i, dictList[i][0], dictList[i][1]); if (aCurLang && dictList[i][1] == aCurLang)
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 ...
spellChecker.GetDictionaryList(o1, o2);
try { spellChecker.GetDictionaryList(o1, o2); } catch(ex) { dump("Failed to get DictionaryList!\n"); return; }
function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. spellChecker.GetDictionaryList(o1, o2); var dictList = o1.value; var count = o2.value; // Load the string bundles that will help us map // RFC 1766...
var bundle = srGetStrBundle("resource:/res/acceptlanguage.properties");
var languageBundle; var regionBundle;
function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. spellChecker.GetDictionaryList(o1, o2); var dictList = o1.value; var count = o2.value; // Load the string bundle that will help us map // RFC 1766 ...
menuStr = bundle.GetStringFromName(dictList[i]+".title");
isoStrArray = dictList[i].split("-"); if (languageBundle && isoStrArray[0]) menuStr = languageBundle.GetStringFromName(isoStrArray[0].toLowerCase()); if (regionBundle && menuStr && isoStrArray.length > 1 && isoStrArray[1]) { menuStr2 = regionBundle.GetStringFromName(isoStrArray[1].toLowerCase()); if (menuStr2) menuSt...
function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. spellChecker.GetDictionaryList(o1, o2); var dictList = o1.value; var count = o2.value; // Load the string bundle that will help us map // RFC 1766 ...
if (curLang && dictList[i] == curLang) defaultIndex = i;
function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. spellChecker.GetDictionaryList(o1, o2); var dictList = o1.value; var count = o2.value; // Load the string bundle that will help us map // RFC 1766 ...
if (curLang && dictList[i] == curLang) defaultIndex = i;
function InitLanguageMenu(curLang){ ClearMenulist(dialog.LanguageMenulist); var o1 = {}; var o2 = {}; // Get the list of dictionaries from // the spellchecker. spellChecker.GetDictionaryList(o1, o2); var dictList = o1.value; var count = o2.value; // Load the string bundle that will help us map // RFC 1766 ...
gLDAPPrefsService.migratePrefsIfNeeded(); }
function initLDAPPrefsService(){ if (gLDAPPrefsService) return; const LDAP_PREF_CONTRACT="@mozilla.org/ldapprefs-service;1"; if (LDAP_PREF_CONTRACT in Components.classes) gLDAPPrefsService = Components.classes[LDAP_PREF_CONTRACT].getService(Components.interfaces.nsILDAPPrefsService);}
var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = htmlEditor.getListItemState(mixedObj);
if (!gIsHTMLEditor) return;
function InitListMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = htmlEditor.getListItemState(mixedObj); if (state) IDSu...
if (state) IDSuffix = state; }
var IDSuffix = GetListStateString();
function InitListMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = htmlEditor.getListItemState(mixedObj); if (state) IDSu...
goSetCommandEnabled("cmd_removeList", state);
goSetCommandEnabled("cmd_removeList", IDSuffix != "noList");
function InitListMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = htmlEditor.getListItemState(mixedObj); if (state) IDSu...
if (!menuItem) return; menuItem.setAttribute("checked", "true"); if (mixedObj.value) menuItem.setAttribute("checked", "false");
if (menuItem) menuItem.setAttribute("checked", "true");
function InitListMenu(){ var mixedObj = new Object(); var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); var state = htmlEditor.getListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = htmlEditor.getListItemState(mixedObj); if (state) IDSu...
function initMashUp() {
function initMashUp(lat, lng) {
function initMashUp() { map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(0, -5.25), 1); addParties();}
GEvent.addDomListener(document.getElementById("map"), "DOMMouseScroll", wheelZoom); GEvent.addDomListener(document.getElementById("map"), "mousewheel", wheelZoom); GEvent.addListener(map, "mousemove", function(point) { mouseloc = point; }); GEvent.addListener(map, "click", function(overlay, point) { if (overlay) { ...
function initMashUp() { map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(0, -5.25), 1); addParties();}
this.setTarget( document.popupNode );
this.setTarget( document.popupNode, document.popupEvent );
initMenu : function ( popup ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode ); this.isTextSelected = this.isTextSelection(); this.isContentSelected = this.isContentSelection(); // Initialize (disable/remove) menu items....
this.setTarget( document.popupNode, document.popupEvent );
this.setTarget( document.popupNode, document.popupRangeParent, document.popupRangeOffset );
initMenu : function ( popup ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode, document.popupEvent ); this.isTextSelected = this.isTextSelection(); this.isContentSelected = this.isContentSelection(); // Initialize (disabl...
this.initPopupURL();
initMenu : function ( popup ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode ); this.isTextSelected = this.isTextSelection(); // Initialize (disable/remove) menu items. this.initItems(); },
for (var i = 0;i <= 5; i++)
try { var msgFolder = GetLoadedMsgFolder(); var msgDatabase = msgFolder.getMsgDatabase(msgWindow); var numSelected = GetNumSelectedMessages(); var indices = GetSelectedIndices(gDBView); var isChecked = true; var checkedLabel; var msgKey; if (numSelected > 0) { msgKey = gDBView.getKeyAt(indices[0]); checkedLabel = msgD...
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
var prefString = prefs.getComplexValue("mailnews.labels.description." + i,
var prefString = prefs.getComplexValue("mailnews.labels.description." + label,
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
var formattedPrefString = gMessengerBundle.getFormattedString("labelMenuItemFormat" + i,
var formattedPrefString = gMessengerBundle.getFormattedString("labelMenuItemFormat" + label,
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
SetMenuItemLabel(menuType + '-labelMenuItem' + i, formattedPrefString);
var menuItemId = menuType + "-labelMenuItem" + label; var menuItem = document.getElementById(menuItemId); SetMenuItemLabel(menuItemId, formattedPrefString); if (isChecked && label == checkedLabel) menuItem.setAttribute("checked", "true"); else menuItem.setAttribute("checked", "false");
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
if (i != 0)
if (label != 0)
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
color = prefBranch.getCharPref("mailnews.labels.color." + i);
color = prefBranch.getCharPref("mailnews.labels.color." + label);
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
document.getElementById(menuType + "-labelMenuItem" + i).setAttribute("style", ("color: " + color));
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
dump("bad! " + ex + "\n");
function InitMessageLabel(menuType){ /* this code gets the label strings and changes the menu labels */ var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { ...
var msgFolder = GetLoadedMsgFolder();
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 msgFolder = GetLoadedMsgFolder(); markMenu.setAttribute("disabled", !msgFolder); }
markMenu.setAttribute("disabled", !msgFolder);
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 labelMenu = document.getElementById("labelMenu"); if(labelMenu) labelMenu.setAttribute("disabled", !aMessage);
var tagMenu = document.getElementById("tagMenu"); if(tagMenu) tagMenu.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) { ...
client.displayName = client.name = MSG_CLIENT_NAME;
client.viewName = client.unicodeName = MSG_CLIENT_NAME;
function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(); client.defaultBundle = client.messageManager.addBundle(path); client.displayName = client.name = MSG_CLIENT_NAME; client.responseCodeMap = { "HELLO": M...
"DCC-CHAT": "[DCC]", "DCC-FILE": "[DCC]",
function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(); client.defaultBundle = client.messageManager.addBundle(path); client.displayName = client.name = MSG_CLIENT_NAME; client.responseCodeMap = { "HELLO": M...
var localeVer = getMsg("locale.version"); if (compareVersions(__cz_locale, localeVer) < 0) { var selectedLocale = MSG_UNKNOWN; try { var chromeReg = getService("@mozilla.org/chrome/chrome-registry;1", "nsIXULChromeRegistry"); selectedLocale = chromeReg.getSelectedLocale("chatzilla"); } catch (ex) {} var msg = getMsg("...
function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(client.entities); client.messageManager.loadBrands(); client.defaultBundle = client.messageManager.addBundle(path); client.viewName = client.unicodeName = MSG_CLIENT_NAME; ...
var color = taginfo.color; if (color) newMenuItem.setAttribute("class", "lc-" + color.substr(1));
function InitMessageTags(menuPopup){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var tagArray = tagService.getAllTags({}); var tagCount = tagArray.length; // remove any existing non-static entries... var...
this.setItemAttr( "context-metadata", "disabled", this.inDirList ? "true" : null );
this.showItem( "context-metadata", this.onMetaDataItem ); this.showItem( "context-sep-clip", this.onMetaDataItem );
initMetadataItems : function () { // Show unless in directory listing. // Metadata for directory listings could ofcource be added if wanted this.setItemAttr( "context-metadata", "disabled", this.inDirList ? "true" : null ); },
blockImage.checked = this.isImageBlocked();
if (this.isImageBlocked()) { blockImage.setAttribute("checked", "true"); } else blockImage.removeAttribute("checked");
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-sep-bidi", gShowBiDi); this.showItem( "context-bidi-text-direction-toggle", this.onTextInput && gShowBiDi); this.showItem( "context-bidi-page-direction-toggle", !this.onTextInput && gShowBiDi);
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...
var blocking = true; if (this.popupURL) try { const PM = Components.classes["@mozilla.org/PopupWindowManager;1"] .getService(Components.interfaces.nsIPopupWindowManager); blocking = PM.testPermission(this.popupURL) == Components.interfaces.nsIPopupWindowManager.eDisallow; } catch (e) { } this.showItem( "popupwindow-re...
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...
msgWindow.windowCommands = new nsMsgWindowCommands();
msgWindow.windowCommands = new nsMsgWindowCommands(); msgWindow.domWindow = window;
function InitMsgWindow(){ msgWindow.windowCommands = new nsMsgWindowCommands(); msgWindow.statusFeedback = statusFeedback; msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.domWindow = window; mailSession.AddMsgWindow(msgWindow); getBrowser().docShell.allowAuth = false; msgWindow.rootDocShell.allowAuth = ...
msgWindow.domWindow = window;
function InitMsgWindow(){ msgWindow.windowCommands = new nsMsgWindowCommands(); msgWindow.statusFeedback = statusFeedback; msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.domWindow = window; mailSession.AddMsgWindow(msgWindow); getBrowser().docShell.allowAuth = false; msgWindow.rootDocShell.allowAuth = ...
msgWindow.domWindow = window;
function InitMsgWindow(){ msgWindow.windowCommands = new nsMsgWindowCommands(); msgWindow.statusFeedback = statusFeedback; msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.domWindow = window; mailSession.AddMsgWindow(msgWindow); var messagepane = document.getElementById("messagepane"); messagepane.docShell...
/((^|\s)[\<\>]?[\;\=\:]\~?[\-\^\v]?[\)\|\(pP\<\>oO0\[\]\/\\](\s|$))/,
/((^|\s)(?:[>]?[B8=:;(xX]\~?[-^v"]?[)|(PpDSs0oO\?\[\]\/\\]|[oO9][._][oO9])(\s|$))/,
function initMunger(){ client.linkRE = /((\w[\w-]+):[^<>\[\]()\'\"\s\u201d]+|www(\.[^.<>\[\]()\'\"\s\u201d]+){2,})/; var munger = client.munger = new CMunger(); munger.addRule ("quote", /(``|'')/, insertQuote); munger.addRule ("bold", /(?:\s|^)(\*[^*()]*\*)(?:[\s.,]|$)/, "chat...