rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (addInterface.BeginImport( success, error)) {
if (addInterface.BeginImport( success, error, selLocIsHome)) {
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"...
importType = importTypeRadioGroup.selectedItem.getAttribute("data"); var index = tree.selectedItems[0].getAttribute('list-index'); var module = importService.GetModule(importType, index); var name = importService.GetModuleName(importType, index); selectedModuleName = name; if (module) { var meterText = ""; switch(impor...
importType = importTypeRadioGroup.selectedItem.getAttribute("value"); var index = tree.selectedItems[0].getAttribute('list-index'); var module = importService.GetModule(importType, index); var name = importService.GetModuleName(importType, index); selectedModuleName = name; if (module) { var meterText = ""; switch(impo...
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
progressStatusEl.setAttribute("value", ""); progressTitleEl.setAttribute("value", meterText);
progressStatusEl.setAttribute("label", ""); progressTitleEl.setAttribute("label", meterText);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
return( true); } } else { ShowImportResults(false, 'Address'); return( false); } break;
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
case "settings": var error = new Object(); error.value = null; var newAccount = new Object(); if (!ImportSettings( module, newAccount, error)) { if (error.value)
return( true); } } else { ShowImportResults(false, 'Address'); return( false); } break; case "settings": var error = new Object(); error.value = null; var newAccount = new Object(); if (!ImportSettings( module, newAccount, error)) { if (error.value)
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
var meterText = GetBundleString( 'MailProgressMeterText') + " " + name;
var meterText = GetFormattedBundleString( 'MailProgressMeterText', name);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
var meterText = GetBundleString( 'AddrProgressMeterText') + " " + name;
var meterText = GetFormattedBundleString( 'AddrProgressMeterText', name); var titleText = GetBundleString( 'AddrProgressTitle');
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
{windowTitle: GetBundleString( 'AddrProgressTitle'),
{windowTitle: titleText,
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
alert( GetBundleString( 'ImportSettingsError') + name + ":\n" + error.value);
alert( GetBundleString( 'ImportSettingsFailed'));
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
alert( GetBundleString( 'ImportSettingsSuccess') + name);
alert( GetFormattedBundleString( 'ImportSettingsSuccess', name));
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
CIRCDCCChat.prototype.__defineGetter__(method, import_wrapper);
function importFromFrame(method){ client.__defineGetter__(method, import_wrapper); CIRCNetwork.prototype.__defineGetter__(method, import_wrapper); CIRCChannel.prototype.__defineGetter__(method, import_wrapper); CIRCUser.prototype.__defineGetter__(method, import_wrapper); function import_wrapper() { ...
if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false;
if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); }
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInter...
var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != null) mailInterface = mailInterface.QueryInterface( Components.interfaces.nsIImportGeneric); if (mailInterface == null) { error.data = gImportMsgsBundle.getString('ImportMailBadModule'); return( false); } var loc = mailInterface.GetData( "mai...
top.progressInfo.importSuccess = false;
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInter...
if (mailInterface.WantsProgress()) { if (mailInterface.BeginImport( success, error)) { top.progressInfo.importInterface = mailInterface; return true; } else return false; } else
var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != null) mailInterface = mailInterface.QueryInterface( Components.interfaces.nsIImportGeneric); if (mailInterface == null) { error.data = gImportMsgsBundle.getString('ImportMailBadModule'); return( false); } var loc = mailInterface.GetData( "mai...
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInter...
filePicker.chooseDirectory( "Select mail directory");
filePicker.chooseDirectory( GetBundleString( 'ImportSelectMailDir'));
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul...
if (mailInterface.BeginImport( success, error)) {
if (mailInterface.BeginImport( success, error, false)) {
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (m...
return mailInterface.BeginImport( success, error) ? true : false;
return mailInterface.BeginImport( success, error, false) ? true : false;
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (m...
var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = gImportMsgsBundle.getString('ImportSettingsBadModule'); return( false); } var location = new Object(); var description = new Objec...
var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = gImportMsgsBundle.getString('ImportSettingsBadModule'); return( false); }
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = gImportMsgsBundle.getString('ImportSettingsBadModule'); return( false); } ...
result = setIntf.Import( newAccount); if (result == false) { error.value = gImportMsgsBundle.getString('ImportSettingsFailed'); } return( result);
var location = new Object(); var description = new Object(); var result = setIntf.AutoLocate( description, location); if (result == false) { if (location.value != null) { var filePicker = Components.classes["@mozilla.org/filepicker;1"].createInstance(); if (filePicker != null) { filePicker = filePicker.QueryInterfac...
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = gImportMsgsBundle.getString('ImportSettingsBadModule'); return( false); } ...
filePicker.chooseInputFile( "Select settings file", filePicker.eAllFiles, null, null);
filePicker.chooseInputFile( GetBundleString( 'ImportSelectSettings'), filePicker.eAllFiles, null, null);
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin...
BrowserViewDownload();
BrowserViewDownload(true);
init: function (aSource, aTarget, aDisplayName, aMIMEInfo, startTime, aTempFile, aCancelable) { // document.getElementById("statusbar").hidden=false; BrowserViewDownload(); document.getElementById("toolbar-download-tag").cachedCancelable=aCancelable; },
document.getElementById("download-button-stop").disabled=false;
init: function (aSource, aTarget, aDisplayName, aMIMEInfo, startTime, aTempFile, aCancelable) { // document.getElementById("statusbar").hidden=false; BrowserViewDownload(); document.getElementById("toolbar-download-tag").cachedCancelable=aCancelable; },
oURL = createInstance('component:
var oURL = createInstance('component:
init: function(serverURL) { oURL = createInstance('component://netscape/network/standard-url', 'nsIURL'); oURL.spec = serverURL; // Make sure it is a complete spec // Note that we don't care what the scheme is otherwise. // Should we care? POST works only on http and ht...
this.mPrefs = XPCU.getService("@mozilla.org/preferences;1", "nsIPref");
var prefService = XPCU.getService("@mozilla.org/preferences-service;1", "nsIPrefService"); this.mPrefs = prefService.getBranch(null);
init: function() { this.mPrefs = XPCU.getService("@mozilla.org/preferences;1", "nsIPref"); },
if (DEBUG) { this.kRasputin = rdfSvc.GetResource("ldap: this.kElvis = rdfSvc.GetResource("ldap: }
Init: function(aServer, aPort, aBindname) { // XXX - if this a "single-connection" datasource; we should figure // that out here by noticing that there is a ; after "rdf:ldap", and // that after that there is a cookie which happens to be an LDAP URL // designating the connection. for now, we just assume that th...
this.inlineSpellChecker = editor.inlineSpellChecker;
this.inlineSpellChecker = editor.getInlineSpellChecker(true);
Init : function (editor, enable) { this.editor = editor; this.inlineSpellChecker = editor.inlineSpellChecker; this.inlineSpellChecker.enableRealTimeSpell = enable; },
this.transferCount=0;
this.refTab = null; this.transferCount = 0;
init : function() { this.urlBar = document.getElementById("urlbar"); this.statusbarText = document.getElementById("statusbar-text"); this.stopreloadButton = document.getElementById("reload-stop-button"); this.statusbar = document.getElementById("statusbar"); this.transferCount=0; ...
var formatter = Cc["@mozilla.org/browser/URLFormatterService;1"].
var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].
init: function () { const Cc = Components.classes, Ci = Components.interfaces; var providerNum = window.arguments[0].providerNum; var phishBefore = document.getElementById("phishBefore"); var prefb = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefService). ge...
var privacyURL = prefb.getComplexValue(providerNum + ".privacy.url", Ci.nsISupportsString).data;
var formatter = Cc["@mozilla.org/browser/URLFormatterService;1"]. getService(Ci.nsIURLFormatter); var privacyURL = formatter.formatURLPref("browser.safebrowsing.provider." + providerNum + ".privacy.url", null); var fallbackURL = formatter.formatURLPref("browser.safebrowsing.provider." + providerNum + ".privacy.fallback...
init: function () { const Cc = Components.classes, Ci = Components.interfaces; var providerNum = window.arguments[0].providerNum; var phishBefore = document.getElementById("phishBefore"); var prefb = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefService). ge...
this.translateMenu = document.getElementById("menuitem-translate");
this.isImage = document.getElementById("isImage");
init : function() { // XXXjag is this still needed? It's currently just "" this.defaultStatus = gNavigatorBundle.getString("defaultStatus"); this.urlBar = document.getElementById("urlbar"); this.throbberElement = document.getElementById("navigator-throbber"); this.statusMeter = document.g...
init : function(aLocalFile, aIsBaseline)
init : function(aLocalFile, aIsBaseline, aIsPrinting)
init : function(aLocalFile, aIsBaseline) { this.mIsBaseline = aIsBaseline; this.mURLs = new Array(); this.readFileList(aLocalFile); this.mRegressionTester = Components.classes["@mozilla.org/layout-debug/regressiontester;1"]. createInstance(nsILayoutRegressionTester) },
this.mIsPrinting = aIsPrinting;
init : function(aLocalFile, aIsBaseline) { this.mIsBaseline = aIsBaseline; this.mURLs = new Array(); this.readFileList(aLocalFile); this.mRegressionTester = Components.classes["@mozilla.org/layout-debug/regressiontester;1"]. createInstance(nsILayoutRegressionTester) },
#ifdef XP_WIN document.getElementById('mail.checkDefaultMail').valueFromPreferences = this.onReadDefaultMailPref(); document.getElementById('mail.checkDefaultNews').valueFromPreferences = this.onReadDefaultNewsPref(); document.getElementById('mail.checkDefaultFeed').valueFromPreferences = this.onReadDefaultFeedPref(); ...
init: function () { this.mPane = document.getElementById("paneGeneral"); this.startPageCheck(); this.mailSoundCheck(); #ifdef XP_WIN document.getElementById('mail.checkDefaultMail').valueFromPreferences = this.onReadDefaultMailPref(); document.getElementById('mail.checkDefaultNews').valueFromP...
this.onReadDefaultFeedPref(); #endif
init: function () { this.mPane = document.getElementById("paneGeneral"); this.mBrandBundle = document.getElementById("brandBundle"); this.mMapiBundle = document.getElementById("mapiBundle"); this.playSoundCheck(); this.onReadDefaultMailPref(); this.onReadDefaultNewsPref();#ifdef XP_MACOSX docum...
this.kNC_recursiveChild = this.mRdfSvc.GetResource(NC_NAMESPACE_URI + "recursiveChild");
Init: function() { if (this.kInited == -1) { this.kInited = 0; // get the RDF service // this.mRdfSvc = Components. classes["@mozilla.org/rdf/rdf-service;1"]. getService(Components.interfaces.nsIRDFService); this.mLD...
{
init: function () { if( window.queuedTag ) { this.onpageload( window.queuedTag ); } if( window.arguments[1] ) this.openBranch( window.arguments[1], window.arguments[2] ); },
}
init: function () { if( window.queuedTag ) { this.onpageload( window.queuedTag ); } if( window.arguments[1] ) this.openBranch( window.arguments[1], window.arguments[2] ); },
function init() { helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementById("help-glossary-panel"); helpBrowser = document.getElementById("help-conte...
init : function() {},
function init() { // Cache panel references. helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementById("help-glossary-panel"); helpBrowser = doc...
function init() { helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementById("help-glossary-panel"); hel...
init : function() { this.throbberElement = document.getElementById("navigator-throbber"); },
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementB...
initDebugger();
function init(){ initPrefs(); initCommands(); initDebugger(); initOutliners(); disableDebugCommands(); window._content = console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("outpu...
initDebugger();
function init(){ initPrefs(); initCommands(); initDebugger(); initOutliners(); disableDebugCommands(); window._content = console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("outpu...
pref.SetDefaultBoolPref('sidebar.open', true);
pref.SetDefaultBoolPref('sidebar.open', false);
function Init() { var pref = Components.classes['component://netscape/preferences'].getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref); if (pref) { pref.SetDefaultIntPref('sidebar.width', 170); // pref.SetIntPref(pref.GetIntPref('sidebar.width')); pref.SetDefaultBoolPref('sidebar.ope...
document.documentElement.getButton("accept").focus();
function init(aEvent) { if (aEvent.target != document) return; var userAgentField = document.getElementById("userAgent"); userAgentField.value = navigator.userAgent; var button = document.documentElement.getButton("extra2"); button.setAttribute("label", document.documentElement.getAttribute("creditslabel")); ...
SelectLanguage();
function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treer...
{name: "irc.idle.net", port: 6667},
{name: "irc.mcs.net", port: 6667},
function init(obj){ obj.eventPump = new CEventPump (100); obj.networks = new Object(); obj.networks["hybridnet"] = new CIRCNetwork ("hybridnet", [{name: "irc.ssc.net", port: 6667}], obj.eventPump); obj.networks["moznet"] = new CIRCNetwork ("moznet", [{name: "irc.mozilla.org", por...
gSelectedPage = 0;
function init(aEvent) { if (aEvent.target != document) return; var userAgentField = document.getElementById("userAgent"); userAgentField.value = navigator.userAgent; var button = document.documentElement.getButton("extra2"); button.setAttribute("label", document.documentElement.getAttribute("creditslabel")); g...
document.documentElement.setAttribute("title", extensionsStrings.getFormattedString("aboutWindowTitle", [name]));
document.title = extensionsStrings.getFormattedString("aboutWindowTitle", [name]);
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementById("help-glossary-tree");
helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementById("help-glossary-panel");
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
showPanel('help-toc');
function init() { //cache panel references. helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-tree"); helpIndexPanel = document.getElementById("help-index-tree"); helpGlossaryPanel = document.getElementByI...
client.dcc = new CIRCDCC(client);
function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types * (the 4th param inverts...
SelectLanguage();
function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treer...
description = description.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
if (description) description = description.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
creator = creator.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
if (creator) creator = creator.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
tree.database.AddDataSource(HTTPIndex.DataSource);
tree.database.AddDataSource(HTTPIndex);
function Init(){ debug("directory.js: Init()\n"); var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp://") == 0)) { // fix bug # 37102: if its a FTP directory ...
console.ui["menu_initAtStartup"] = document.getElementById ("menu_initAtStartup");
console.ui["menu_PrettyPrint"] = document.getElementById ("menu_PrettyPrint"); console.ui["menu_InitAtStartup"] = document.getElementById ("menu_InitAtStartup");
function init(){ initPrefs(); initCommands(); initOutliners(); disableDebugCommands(); console._outputDocument = document.getElementById("output-iframe").contentDocument; console._outputElement = console._outputDocument.getElementById("output-tbody"); console._slInpu...
setPageAccessKeys(document.getElementById("behaviourDeck").firstChild);
function init(){ var prefWindow = parent.hPrefWindow; gData = prefWindow.wsm.dataManager .pageData["chrome://communicator/content/pref/pref-navigator.xul"] gDefaultPage = getDefaultPage(); if ("navigatorData" in gData) return; var navigatorData = {}; navigatorData.groupIsSet = getGroupIs...
if (baseURI && (baseURI.indexOf("ftp: (baseURI.substr(baseURI.length - 1) != "/"))
if (baseURI && (baseURI.indexOf("ftp:
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
debug("append traiing slash to FTP directory URL\n"); baseURI += "/";
if (baseURI.substr(baseURI.length - 1) != "/") { debug("append traiing slash to FTP directory URL\n"); baseURI += "/"; } tree.database.AddDataSource(HTTPIndex.DataSource);
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
debug("base URL = " + baseURI + "\n"); var tree = document.getElementById('tree'); tree.database.AddDataSource(HTTPIndex.DataSource);
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
extensionHomepage.setAttribute("href", homepage);
extensionHomepage.setAttribute("onclick", "loadHomepage(\"" + homepage + "\");");
function init(){ gExtensionID = window.arguments[0]; gExtensionDB = window.arguments[1]; var extensionsStrings = document.getElementById("extensionsStrings"); var rdfs = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var extension = rd...
panel_title.setAttribute('value', panel_name);
panel_title.setAttribute('label', panel_name);
function Init(){ var panel_name = window.arguments[0]; var panel_URL = window.arguments[1]; var panel_title = document.getElementById('paneltitle'); var preview_frame = document.getElementById('previewframe'); panel_title.setAttribute('value', panel_name); preview_frame.setAttribute('src', panel_URL);}
console.pluginState = new Object();
function init(){ const WW_CTRID = "@mozilla.org/embedcomp/window-watcher;1"; const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher; console.windowWatcher = Components.classes[WW_CTRID].getService(nsIWindowWatcher); initPrefs(); initCommands(); initMenus(); initOutliners(); ...
pref.SetDefaultBoolPref('sidebar.open', false);
pref.SetDefaultBoolPref('sidebar.open', true);
function Init() { var pref = Components.classes['component://netscape/preferences']; if (pref) { pref = pref.getService(); } if (pref) { pref = pref.QueryInterface(Components.interfaces.nsIPref); } if (pref) { pref.SetDefaultIntPref('sidebar.width', 170); // pref.SetIntPref(pref.GetIntPref('sidebar...
active_languages = window.opener.document.getElementById('active_languages'); active_languages_treeroot = window.opener.document.getElementById('active_languages_root'); pref_string = window.opener.document.getElementById('intlAcceptLanguages').value;
active_languages = window.opener.document.getElementById('active_languages'); active_languages_treeroot = window.opener.document.getElementById('active_languages_root'); pref_string = window.opener.document.getElementById('intlAcceptLanguages').label;
function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); acti...
console.debuggerWindow = getBaseWindowFromWindow(window);
function init(){ var ary = navigator.userAgent.match (/;\s*([^;\s]+\s*)\).*\/(\d+)/); if (ary) { console.userAgent = "Venkman " + console.version + " [Mozilla " + ary[1] + "/" + ary[2] + "]"; } else { console.userAgent = "Venkman " + console.version + " [" + n...
debug("base URL = " + HTTPIndex.BaseURL + "\n"); tree.setAttribute('ref', HTTPIndex.BaseURL);
var baseURI = HTTPIndex.BaseURL; if (baseURI && (baseURI.indexOf("ftp: (baseURI.substr(baseURI.length - 1) != "/")) { debug("append traiing slash to FTP directory URL\n"); baseURI += "/"; } debug("base URL = " + baseURI + "\n"); tree.setAttribute("ref", baseURI);
function Init(){ debug("directory.js: Init()\n"); // Add the HTTPIndex datasource into the tree var tree = document.getElementById('tree'); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at debug("base URL = " + HTTPIndex.BaseURL + "\n"); tree.setAttribute('ref', HTTPIndex.BaseU...
display (MSG_SLASH_REQUIRED, MT_ATTENTION);
display (MSG_TIP3_HELP);
function init(){ dd ("init {"); var i; const WW_CTRID = "@mozilla.org/embedcomp/window-watcher;1"; const nsIWindowWatcher = Components.interfaces.nsIWindowWatcher; console.windowWatcher = Components.classes[WW_CTRID].getService(nsIWindowWatcher); const UC_CTRID = "@mozilla.org/intl/scriptab...
importFromFrame("updateMotifSettings");
function init(){ if (("initialized" in client) && client.initialized) return; client.initialized = false; client.networks = new Object(); client.entities = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types ...
setPageAccessKeys(document.getElementById("behaviourDeck").firstChild);
function init(){ var prefWindow = parent.hPrefWindow; gData = prefWindow.wsm.dataManager .pageData["chrome://communicator/content/pref/pref-navigator.xul"] gDefaultPage = getDefaultPage(); if ("navigatorData" in gData) return; var navigatorData = {}; navigatorData.groupIsSet = getGroupIs...
if (window._content.defaultCharacterset) httpDS.encoding = window._content.defaultCharacterset;
function Init(){ debug("directory.js: Init()\n"); // Initialize the tree's base URL to whatever the HTTPIndex is rooted at var baseURI = HTTPIndex.BaseURL; // fix bug # 37102: if its a FTP directory // ensure it ends with a trailing slash if (baseURI && (baseURI.indexOf("ftp://") == 0) && (baseURI...
if (("initialized" in client) && client.initialized) return;
function init(){ client.initialized = false; client.networks = new Object(); client.eventPump = new CEventPump (200); if (DEBUG) { /* hook all events EXCEPT server.poll and *.event-end types * (the 4th param inverts the match) */ client.debugHook = client.eventPump.addHo...
doSetOKCancel(onOK, onCancel);
function Init() { sizeToContent(); doSetOKCancel(onOK, onCancel); document.getElementById("horizSize").focus(); }
LoadAvailableCharSets();
if (applicationArea.indexOf("mail") != -1) { LoadAvailableCharSets("NC:EncodersRoot"); } else { LoadAvailableCharSets("NC:DecodersRoot"); }
function Init(){ var applicationArea = ""; if ("arguments" in window && window.arguments[0]) applicationArea = window.arguments[0]; prefInt = Components.classes["@mozilla.org/preferences;1"]; if (prefInt) { prefInt = prefInt.getService(Components.interfaces.nsIPref); if (applicationArea.indexOf("mail") != ...
active_languages_treeroot = document.getElementById('active_languages_root');
function Init(){ try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treeroot = document.getElementById('act...
available_languages_treeroot = document.getElementById('available_languages_root');
function Init(){ try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treeroot = document.getElementById('act...
active_languages_treeroot = window.opener.document.getElementById('active_languages_root');
function Init(){ try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treeroot = document.getElementById('act...
try { pref_string = parent.hPrefWindow.getPref( "string", "intl.accept_languages"); } catch(ex) { }
pref_string = active_languages.getAttribute("prefvalue");
function Init(){ doSetOKCancel(AddAvailableLanguage); try { GetBundles(); } catch(ex) { } ReadAvailableLanguages(); if (!("arguments" in window)) { //no caller arguments - load base window try { active_languages = document.getElementById('active_languages'); active_languages_treer...
all_panels_datasources = all_panels_datasources.replace(/^\s+/,''); all_panels_datasources = all_panels_datasources.replace(/\s+$/,'');
function Init(){ var all_panels_datasources = window.arguments[0]; var all_panels_resource = window.arguments[1]; sidebarObj.datasource_uri = window.arguments[2]; sidebarObj.resource = window.arguments[3]; debug("Init: all panels datasources = " + all_panels_datasources); debug("Init: all panels ...
pref = Components.classes['component:
prefs = Components.classes['component:
function init_sidebar(name, uri, width) { sidebar_name = name; sidebar_uri = uri; sidebar_width = width; sidebar_pref = 'sidebar.' + name; // Open/close sidebar based on saved pref. // This may be replaced by another system by hyatt. pref = Components.classes['component://netscape/preferences']; if (prefs) ...
if (pref.GetBoolPref(sidebar_pref + '.open')) {
if (prefs.GetBoolPref(sidebar_pref + '.open')) {
function init_sidebar(name, uri, width) { sidebar_name = name; sidebar_uri = uri; sidebar_width = width; sidebar_pref = 'sidebar.' + name; // Open/close sidebar based on saved pref. // This may be replaced by another system by hyatt. pref = Components.classes['component://netscape/preferences']; if (prefs) ...
prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); }
prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function init_sidebar(name, uri, width) { sidebar_name = name; sidebar_uri = uri; sidebar_width = width; sidebar_pref = 'sidebar.' + name; // Open/close sidebar based on saved pref. // This may be replaced by another system by hyatt. prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { ...
if (prefs.GetBoolPref(sidebar_pref + '.open')) {
if (prefs.getBoolPref(sidebar_pref + '.open')) {
function init_sidebar(name, uri, width) { sidebar_name = name; sidebar_uri = uri; sidebar_width = width; sidebar_pref = 'sidebar.' + name; // Open/close sidebar based on saved pref. // This may be replaced by another system by hyatt. prefs = Components.classes['@mozilla.org/preferences;1']; if (prefs) { ...
if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useSystemDefault) {
if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useSystemDefault && !this.mForced) {
initAppAndSaveToDiskValues: function() { // Fill in helper app info, if there is any. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; // Initialize "default application" field. this.initDefaultApp(); // Fill application name textbox. if (this.c...
} else if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useHelperApp) {
} else if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useHelperApp && !this.mForced) {
initAppAndSaveToDiskValues: function() { // Fill in helper app info, if there is any. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; // Initialize "default application" field. this.initDefaultApp(); // Fill application name textbox. if (this.c...
if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useSystemDefault && !this.mForced) {
if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useSystemDefault && this.mReason != REASON_SERVERREQUEST) {
initAppAndSaveToDiskValues: function() { // Fill in helper app info, if there is any. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; // Initialize "default application" field. this.initDefaultApp(); // Fill application name textbox. if (this.chosenApp...
} else if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useHelperApp && !this.mForced) {
} else if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useHelperApp && this.mReason != REASON_SERVERREQUEST) {
initAppAndSaveToDiskValues: function() { // Fill in helper app info, if there is any. this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; // Initialize "default application" field. this.initDefaultApp(); // Fill application name textbox. if (this.chosenApp...
if ("getBrowserURL" in window)
var app = getService("@mozilla.org/xre/app-info;1", "nsIXULAppInfo"); if (app) { switch (app.ID) { case "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}": client.host = "Firefox"; if (compareVersions(app.version, "1.4") <= 0) client.hostCompat.typeChromeBrowser = true; break; case "{" + __cz_guid + "}": client.host = "XULrunn...
function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. // Set up simple host and platform information. client.host = "Unknown"; if ("getBrowserURL" in window) { var url = getBrowserURL(); if (url == "chrome://navigat...
} else { client.host = "XULrunner";
function initApplicationCompatibility(){ // This routine does nothing more than tweak the UI based on the host // application. // Set up simple host and platform information. client.host = "Unknown"; if ("getBrowserURL" in window) { var url = getBrowserURL(); if (url == "chrome://navigat...
var caption = document.getElementById("BackColorCaption"); if (caption) { var captionStr; var isSelectedObj = new Object(); var tagNameObj = new Object(); var element = editorShell.GetSelectedOrParentTableElement(tagNameObj, isSelectedObj); if (tagNameObj.value == "table") captionStr = editorShell.GetString("TableBack...
SetBackColorString("BackColorCaption");
function InitBackColorPopup(){ var caption = document.getElementById("BackColorCaption"); if (caption) { var captionStr; var isSelectedObj = new Object(); var tagNameObj = new Object(); var element = editorShell.GetSelectedOrParentTableElement(tagNameObj, isSelectedObj); if (tagNameObj.value == "ta...
function InitBackColorPopup()
function InitBackColorPopup(allowPageBackground)
function InitBackColorPopup(){ SetBackColorString("BackColorCaption"); }
SetBackColorString("BackColorCaption");
SetBackColorString("BackColorCaption", allowPageBackground);
function InitBackColorPopup(){ SetBackColorString("BackColorCaption"); }
var opacity = getSpecifiedStyle("-moz-opacity");
var opacity = getSpecifiedStyle("opacity");
function InitBackgroundTabPanel(){ gDialog.selectedTab = BACKGROUND_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; gDialog.opacityScrollbar.removeEventListener("DOMAttrModified", onOpacityScrollbarAttrModified, false); var opacity = getSpecifiedStyle("-moz-opacity"); if (opacity == "...
CalDuration = new Components.Constructor("@mozilla.org/calendar/duration;1", Components.interfaces.calIDateTime);
function initBaseComponent(){ CalRecurrenceInfo = new Components.Constructor(kCalRecurrenceInfoContractID, kCalIRecurrenceInfo); CalRecurrenceRule = new Components.Constructor(kCalRecurrenceRuleContractID, kCalIRecurrenceRule); CalRecurrenceDateSet = new Components.Constructor(kCalRecurrenceDateSetContractID, ...
var name = srGetStrBundle("chrome: .GetStringFromName("homeCalendarName");
var name = calGetString("calendar", "homeCalendarName");
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getCompositeCalendar(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); var name = s...
previousValue= dialog.CellHeightInput.value;
previousValue= dialog.CellWidthInput.value;
function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; var previousValue = dialog.CellHeightInput.value; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellEle...
dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits"); dialog.CellWidthInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "width", "CellWidthUnits");
dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits", gPercent); dialog.CellWidthInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "width", "CellWidthUnits", gPixel);
function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits"); d...
if (globalCellElement.background) dialog.CellImageInput.value = globalCellElement.background;
function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column dialog.SelectionList.selectedIndex = SelectedCellsType-1; dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits"); d...
var valign = globalCellElement.vAlign.toLowerCase();
var valign = GetHTMLOrCSSStyleValue(globalCellElement, "valign", "vertical-align").toLowerCase();
function InitCellPanel(){ // Get cell attributes if (globalCellElement) { // This assumes order of items is Cell, Row, Column gDialog.SelectionList.selectedIndex = SelectedCellsType-1; var previousValue = gDialog.CellHeightInput.value; gDialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCell...
this.showItem( "context-copyemail", this.onMailtoLink );
initClipboardItems : function () { // Select All is always OK, unless in directory listing. this.showItem( "context-selectall", !this.inDirList ); // Copy depends on whether there is selected text. // Enabling this context menu item is now done through the global // command updati...
this.setItemAttr( "context-copy", "disabled", this.isNoTextSelected() );
initClipboardItems : function () { // Select All is always OK. // Copy depends on whether there is selected text. this.setItemAttr( "context-copy", "disabled", this.isNoTextSelected() ); // Copy link location depends on whether we're on a link. this.showItem( "context-copy...