rem: function mailnewsOverlayStartup() { mailnewsOverlayInit(); if (!("mapiPref" in parent)) { parent.mapiPref = new Object; parent.mapiPref.isDefaultMailClient = document.getElementById("mailnewsEnableMapi").checked;  var mailnewsEnableNews = document.getElementById("mailnewsEnableNews"); if (mailnewsEnableNews) parent.mapiPref.isDefaultNewsClient = mailnewsEnableNews.checked; 
add: function mailnewsOverlayStartup() { if (!("mapiInitialized" in parent)) { parent.mapiDisabled = true; parent.newsDisabled = true; var mapiRegistry = getMapiRegistry(); parent.mapiInitialized = !!mapiRegistry; if (mapiRegistry) { var prefWindow = parent.hPrefWindow;    parent.mapiPref = {}; parent.mapiReg = {};    prefWindow.registerOKCallbackFunc(onOK);  var isDefault; const kPrefBase = "system.windows.lock_ui."; if (prefWindow.getPrefIsLocked(kPrefBase + "defaultMailClient")) { isDefault = prefWindow.getPref("bool", kPrefBase + "defaultMailClient"); mapiRegistry.isDefaultMailClient = isDefault; parent.mapiReg.isDefaultMailClient = isDefault; } else { parent.mapiReg.isDefaultMailClient = mapiRegistry.isDefaultMailClient; parent.mapiDisabled = false; } parent.mapiPref.isDefaultMailClient = parent.mapiReg.isDefaultMailClient;  if (prefWindow.getPrefIsLocked(kPrefBase + "defaultNewsClient")) { isDefault = prefWindow.getPref("bool", kPrefBase + "defaultNewsClient"); mapiRegistry.isDefaultNewsClient = isDefault; parent.mapiReg.isDefaultNewsClient = isDefault; } else { parent.mapiReg.isDefaultNewsClient = mapiRegistry.isDefaultNewsClient; parent.newsDisabled = false; } parent.mapiPref.isDefaultNewsClient = parent.mapiReg.isDefaultNewsClient; 
context: function mailnewsOverlayStartup() {    mailnewsOverlayInit();    if (!("mapiPref" in parent)) {        parent.mapiPref = new Object;        parent.mapiPref.isDefaultMailClient =                document.getElementById("mailnewsEnableMapi").checked;                var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");         if (mailnewsEnableNews)          parent.mapiPref.isDefaultNewsClient = mailnewsEnableNews.checked;    }    else {         // when we switch between different panes        // set the checkbox based on the saved state        var mailnewsEnableMapi = document.getElementById("mailnewsEnableMapi");        var mailnewsEnableNews = document.getElementById("mailnewsEnableNews");                 if (parent.mapiPref.isDefaultMailClient)            mailnewsEnableMapi.setAttribute("checked", "true");        else            mailnewsEnableMapi.setAttribute("checked", "false");                if (mailnewsEnableNews)        {          if (parent.mapiPref.isDefaultNewsClient)             mailnewsEnableNews.setAttribute("checked", "true");          else             mailnewsEnableNews.setAttribute("checked", "false");        }    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e809385aa0a88c0df640df244f8a706bc9b61141/pref-mailnewsOverlay.js/clean/mailnews/mapi/resources/content/pref-mailnewsOverlay.js