rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
gUpdates.wiz.getButton("next").disabled = false; gUpdates.wiz.getButton("next").focus();
document.getElementById("acceptDeclineLicense").disabled = (gLicensePage._licenseContent.getAttribute("state") == "error");
onLicenseLoad: function() { // Now that the license text is available, the user is in a position to // agree to it, so enable the Agree button. gUpdates.wiz.getButton("next").disabled = false; gUpdates.wiz.getButton("next").focus(); },
var listFormat = theButton.getAttribute("format"); if (listFormat == listType) { theButton.setAttribute("toggled", 1);
var isOn = theButton.getAttribute(listType); if (isOn == "true") { theButton.setAttribute("toggled", "true");
function onListFormatChange(listType){ var theButton = document.getElementById(listType + "Button"); if (theButton) { var listFormat = theButton.getAttribute("format"); if (listFormat == listType) { theButton.setAttribute("toggled", 1); } else { theButton.setAttribute("toggled", 0); } }}
theButton.setAttribute("toggled", 0);
theButton.setAttribute("toggled", "false");
function onListFormatChange(listType){ var theButton = document.getElementById(listType + "Button"); if (theButton) { var listFormat = theButton.getAttribute("format"); if (listFormat == listType) { theButton.setAttribute("toggled", 1); } else { theButton.setAttribute("toggled", 0); } }}
this._buttonLabel_back = this.wiz.getButton("back").label; this._buttonLabel_next = this.wiz.getButton("next").label; this._buttonLabel_finish = this.wiz.getButton("finish").label; this._buttonLabel_cancel = this.wiz.getButton("cancel").label; this._buttonLabel_hide = this.strings.getString("hideButtonLabel"); this.wiz...
this._cacheButtonStrings("back"); this._cacheButtonStrings("next"); this._cacheButtonStrings("finish"); this._cacheButtonStrings("cancel"); this._cacheButtonStrings("extra1");
onLoad: function() { this.wiz = document.documentElement; gPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); gConsole = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components....
var pref; pref = Components.classes['@mozilla.org/preferences;1']; pref = pref.getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref);
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
if (pref.GetBoolPref("wallet.namePanel.hide")) {
if (pref.getBoolPref("wallet.namePanel.hide")) {
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
if (pref.GetBoolPref("wallet.addressPanel.hide")) {
if (pref.getBoolPref("wallet.addressPanel.hide")) {
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
if (pref.GetBoolPref("wallet.phonePanel.hide")) {
if (pref.getBoolPref("wallet.phonePanel.hide")) {
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
if (pref.GetBoolPref("wallet.creditPanel.hide")) {
if (pref.getBoolPref("wallet.creditPanel.hide")) {
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
if (pref.GetBoolPref("wallet.employPanel.hide")) {
if (pref.getBoolPref("wallet.employPanel.hide")) {
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
if (pref.GetBoolPref("wallet.miscPanel.hide")) {
if (pref.getBoolPref("wallet.miscPanel.hide")) {
onload: function() { walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance(); walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor); walletServiceInterface = Components.classes['@mozilla.org...
refreshEventTree( false );
refreshEventTree( getAndSetEventTable() );
onLoad : function() { if( !gICalLib.batchMode ) { refreshEventTree( false ); } },
this._children = document.getElementById("historyChildren");
this._view = document.getElementById("historyItems");
onLoad: function() { this._children = document.getElementById("historyChildren"); var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); var uc = um.updateCount; if (uc) { while (this._children.hasChildNodes()) ...
while (this._children.hasChildNodes()) this._children.removeChild(this._children.firstChild);
while (this._view.hasChildNodes()) this._view.removeChild(this._view.firstChild);
onLoad: function() { this._children = document.getElementById("historyChildren"); var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); var uc = um.updateCount; if (uc) { while (this._children.hasChildNodes()) ...
var treeitem = document.createElementNS(NS_XUL, "treeitem"); var treerow = document.createElementNS(NS_XUL, "treerow"); var nameCell = document.createElementNS(NS_XUL, "treecell"); nameCell.setAttribute("label", update.name); var dateCell = document.createElementNS(NS_XUL, "treecell"); var formattedDate = this._formatD...
var element = document.createElementNS(NS_XUL, "update"); this._view.appendChild(element); element.name = update.name; element.type = bundle.getString("updateType_" + update.type); element.installDate = this._formatDate(update.installDate); element.detailsURL = update.detailsURL; element.status = update.statusText;
onLoad: function() { this._children = document.getElementById("historyChildren"); var um = Components.classes["@mozilla.org/updates/update-manager;1"]. getService(Components.interfaces.nsIUpdateManager); var uc = um.updateCount; if (uc) { while (this._children.hasChildNodes()) ...
this._cacheButtonStrings("extra2");
onLoad: function() { this.wiz = document.documentElement; gPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); gConsole = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components....
checkSelectedException();
function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarEvent = args.calendarEvent; window.originalRecurrenceInfo = args.recurrenceInfo; window.removedExceptions = []; window.addedExceptions = []; loadDialog(); updateDeck(); updateDuration(); ...
moveToAlertPosition();
function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);...
window.arguments[0](window);
setTimeout(window.arguments[0], 500, window);
function onLoad(){ var ary = document.location.search.match(/(?:\?|&)id=([^&]+)/); if (!ary) { dd ("No window id in url " + document.location); return; } windowId = ary[1]; if (console.prefs["menubarInFloaters"]) console.createMainMenu (window.document); if ("arguments"...
gPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);
gPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
function onLoad(){ gPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var hdrs; try { hdrs = gPrefs.GetCharPref("mailnews.customHeaders"); } catch(ex) { hdrs =null; } gHeaderInputElement = document.getElementById("headerInput"); ...
hdrs = gPrefs.GetCharPref("mailnews.customHeaders");
hdrs = gPrefs.getCharPref("mailnews.customHeaders");
function onLoad(){ gPrefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var hdrs; try { hdrs = gPrefs.GetCharPref("mailnews.customHeaders"); } catch(ex) { hdrs =null; } gHeaderInputElement = document.getElementById("headerInput"); ...
document.documentElement.getButton("accept").disabled = true;
function onLoad(){ pw1 = document.getElementById("pw1"); try { params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); } catch(exception) { // this should not happen. // previously we had self.name, but self.name was a bad idea // as window name must ...
if (params) { params.SetInt(1, 0); } if (params) { params.SetInt(1, 0); }
function onLoad(){ pw1 = document.getElementById("pw1"); if ("arguments" in window) { params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); } else { tokenName = self.name; } // Set token name in display var t = document.getElementById("tokenName"); t.setAttri...
dialog.find.value = document.getElementById("fBLT").getAttribute("value");
dialog.find.label = document.getElementById("fBLT").getAttribute("label");
function onLoad(){ initDialogObject(); // Get find component. finder = Components.classes["@mozilla.org/appshell/component/find;1"].getService(); finder = finder.QueryInterface(Components.interfaces.nsIFindComponent); // Change "OK" to "Find". dialog.find.value = document.getElementById("fBLT").getAttribute("valu...
registry = registry.QueryInterface(Components.interfaces.nsIRegistryViewer);
registry = registry.QueryInterface(Components.interfaces.nsIRegistryDataSource);
function OnLoad(){ var registry = Components.classes['component://netscape/registry-viewer'].createInstance(); registry = registry.QueryInterface(Components.interfaces.nsIRegistryViewer); registry.openWellKnownRegistry(1); // application component registry dump('registry opened\n'); var datasource = regi...
dump('registry opened\n');
function OnLoad(){ var registry = Components.classes['component://netscape/registry-viewer'].createInstance(); registry = registry.QueryInterface(Components.interfaces.nsIRegistryViewer); registry.openWellKnownRegistry(1); // application component registry dump('registry opened\n'); var datasource = regi...
dump('datasource = ' + datasource + '\n');
function OnLoad(){ var registry = Components.classes['component://netscape/registry-viewer'].createInstance(); registry = registry.QueryInterface(Components.interfaces.nsIRegistryViewer); registry.openWellKnownRegistry(1); // application component registry dump('registry opened\n'); var datasource = regi...
var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService=prefService.QueryInterface(Components.interfaces.nsIPrefService); nsPrefBranch = prefService.getBranch(null);
function onLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); var selectedServer; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFSe...
helperAppLoader = window.arguments[0];
helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher );
function onLoad() { // Set global variables. helperAppLoader = window.arguments[0]; if ( !helperAppLoader ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog = new Object; dialog.strings = new Array; dialog.location = document.getElement...
moveToAlertPosition();
if ( window.opener ) { moveToAlertPosition(); } else { centerWindowOnScreen(); }
function onLoad() { // Set global variables. helperAppLoader = window.arguments[0]; if ( !helperAppLoader ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog = new Object; dialog.strings = new Array; dialog.location = document.getElement...
document.getElementById('ok-button').focus(); window.sizeToContent();
document.documentElement.getButton("accept").focus();
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); document.title = dialogParams.GetString(2); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var message1 = dialogParams.GetString(1); var...
if (window.arguments[0].folderURI)
if (!window.arguments[0].newFeed)
function onLoad(){ if (window.arguments[0].feedLocation) document.getElementById('feedLocation').value = window.arguments[0].feedLocation; // root the location picker to the news & blogs server document.getElementById('selectFolder').setAttribute('ref', window.arguments[0].serverURI); SetFolderPicker(window.a...
var tree = document.getElementById("accounttree"); var items = tree.getElementsByTagName("treeitem"); if (items && items.length>0) { tree.selectItem(items[1]); }
accounttree = document.getElementById("accounttree");
function onLoad() { accountArray = new Array; RDF = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); smtpService = ...
selectFirstAccount()
function onLoad() { accountArray = new Array; RDF = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); smtpService = ...
dialog.ok = document.getElementById( "dialog.ok" ); dialog.cancel = document.getElementById( "dialog.cancel" ); dialog.help = document.getElementById( "dialog.help" );
dialog.ok = document.getElementById( "ok" ); dialog.help = document.getElementById( "dialog.help" );
function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.ok = document.getElementById( "dialog.ok" ); dialog.cancel = document.getElementById( "dialog.cancel" ); dialog.help = document.getElementById( "dialog.help" ); dialog.newWindow = docume...
doSetOKCancel(open, 0, 0, 0);
function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.ok = document.getElementById( "dialog.ok" ); dialog.cancel = document.getElementById( "dialog.cancel" ); dialog.help = document.getElementById( "dialog.help" ); dialog.newWindow = docume...
doSetOKCancel(doOK, doCancel, doHelpButton);
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert); var bundle = srGetStrBundle("chrome://pippki/locale/newserver.properties...
retvals.buttonStatus = nsIFilePicker.returnCancel;
function onLoad() { if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.title; filePickerMode = o.mode; if (o.displayDirectory) const directory = o.displayDirectory.path; const initialText = o.defaul...
var value = pref.GetIntPref("general.open_location.last_window_choice");
var value = pref.getIntPref("general.open_location.last_window_choice");
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.getElementById("ok"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = document.getElementByI...
dialog.input.value = pref.CopyUnicharPref("general.open_location.last_url");
dialog.input.value = pref.getComplexValue("general.open_location.last_url", Components.interfaces.nsISupportsWString);
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.getElementById("ok"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = document.getElementByI...
runFiltersFolderPickerLabel = document.getElementById("onLabel"); runFiltersFolderPicker = document.getElementById("runFiltersFolder");
function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);...
var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.documentElement.getButton("accept"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = documen...
const directory = o.displayDirectory;
const directory = o.displayDirectory.path;
function onLoad() { if (window.arguments) { var o = window.arguments[0]; retvals = o.retvals; /* set this to a global var so we can set return values */ const title = o.title; filePickerMode = o.mode; const directory = o.displayDirectory; const initialText = o.defaultString; const filterTitles = o...
var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); var helpButton = document.getElementById("help");
var okButton = document.documentElement.getButton("accept"); var cancelButton = document.documentElement.getButton("cancel");
function onLoad(){ if ("arguments" in window) { var params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); } else { tokenName = self.name; } var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); var helpButton = doc...
var bundle = document.getElementById("pippki_bundle"); doSetOKCancel(resetPassword, null, null, null); if (okButton && cancelButton && bundle) { okButton.setAttribute("label", bundle.getString("resetPasswordButtonLabel")); okButton.removeAttribute("default"); cancelButton.setAttribute("default", "true"); cancelButton...
okButton.removeAttribute("default"); cancelButton.setAttribute("default", "true"); cancelButton.focus();
function onLoad(){ if ("arguments" in window) { var params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); } else { tokenName = self.name; } var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); var helpButton = doc...
dialog.progressPercent = document.getElementById("dialog.progressPercent");
function onLoad() { // Set global variables. data = window.arguments[0]; if ( !data ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog = new Object; dialog.strings = new Array; dialog.location = document.getElementById("dialog.location"...
if (val) { if (controls[i].tagName.toLowerCase() == "checkbox") { controls[i].checked = val; } else controls[i].value = val; }
if (controls[i].tagName.toLowerCase() == "checkbox") controls[i].checked = val; else controls[i].value = val;
function onLoad(){ var controls = getControls(); for (var i=0; i<controls.length; i++) { var slot = controls[i].id; var val = server[slot]; if (val) { if (controls[i].tagName.toLowerCase() == "checkbox") { controls[i].checked = val; } else ...
dialog.open.setAttribute("value", bundle.GetStringFromName("openButtonLabel"));
dialog.open.label = bundle.GetStringFromName("openButtonLabel");
function onLoad() { bundle = srGetStrBundle("chrome://communicator/locale/openLocation.properties"); dialog = new Object; dialog.input = document.getElementById("dialog.input"); dialog.help = document.getElementById("dialog.help"); dialog.open = document.getElementById...
var data = pref.GetIntPref("general.open_location.last_window_choice"); var element = dialog.openAppList.getElementsByAttribute("data", data)[0];
var value = pref.GetIntPref("general.open_location.last_window_choice"); var element = dialog.openAppList.getElementsByAttribute("value", value)[0];
function onLoad() { bundle = srGetStrBundle("chrome://communicator/locale/openLocation.properties"); dialog = new Object; dialog.input = document.getElementById("dialog.input"); dialog.help = document.getElementById("dialog.help"); dialog.open = document.getElementById...
var finder = window.arguments[0];
var arg0 = window.arguments[0]; if (arg0 instanceof window.opener.nsFindInstData) { gFindInstData = arg0; gFindInst = gFindInstData.webBrowserFind; } else {
function onLoad(){ initDialogObject(); // get the find instance var finder = window.arguments[0]; // If the dialog was opened from window.find(), findInst will be an // nsISupports interface, so QueryInterface anyway to nsIWebBrowserFind. gFindInst = finder.QueryInterface(Components.interfaces.nsIWebBrowserFind);...
gFindInst = finder.QueryInterface(Components.interfaces.nsIWebBrowserFind);
gFindInst = arg0.QueryInterface(Components.interfaces.nsIWebBrowserFind); }
function onLoad(){ initDialogObject(); // get the find instance var finder = window.arguments[0]; // If the dialog was opened from window.find(), findInst will be an // nsISupports interface, so QueryInterface anyway to nsIWebBrowserFind. gFindInst = finder.QueryInterface(Components.interfaces.nsIWebBrowserFind);...
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); gSyncMail = prefs.GetBoolPref("mailnews.offline_sync_mail"); gSyncNews = prefs.GetBoolPref("mailnews.offline_sync_news"); gSendMessage = prefs.GetBoolPref("mailnews.offline_sync_send_unsent"); gWorkOffline = prefs.Ge...
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); gSyncMail = prefs.getBoolPref("mailnews.offline_sync_mail"); gSyncNews = prefs.getBoolPref("mailnews.offline_sync_news"); gSendMessage = prefs.getBoolPref("mailnews.offline_sync_send_unsent"); gWorkOffl...
function OnLoad(){ if (window.arguments && window.arguments[0]) { if (window.arguments[0].msgWindow) { gParentMsgWindow = window.arguments[0].msgWindow; } } doSetOKCancel(syncOkButton, syncCancelButton); var prefs = Components.classes["@mozilla.org/preferences;1"].getServic...
if (controls[i].tagName.toLowerCase() == "checkbox")
if (controls[i].localName.toLowerCase() == "checkbox")
function onLoad(){ var controls = getControls(); for (var i=0; i<controls.length; i++) { var slot = controls[i].id; var val = server[slot]; if (controls[i].tagName.toLowerCase() == "checkbox") controls[i].checked = val; else controls[i].value = val; } doSetO...
var wdth = window.innerWidth; window.sizeToContent(); windowReference.setAttribute("width",window.innerWidth + 30); var hght = window.innerHeight; window.sizeToContent(); windowReference.setAttribute("height",window.innerHeight + 30);
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupports = pkiParams.getISupportAtIndex(1); cert = isupports.QueryInterface(nsIX509Cert); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.propertie...
window.sizeToContent();
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupports = pkiParams.getISupportAtIndex(1); cert = isupports.QueryInterface(nsIX509Cert); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.propertie...
document.getElementById('ok-button').focus(); window.sizeToContent();
document.documentElement.getButton("accept").focus();
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var connectURL = dialogParams.GetString(1); var bundle = srGetStrBu...
doSetOKCancel(onOk, null);
function onLoad(){ rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); editButton = document.getElementById("editButton"); deleteButton = document.getElementById("deleteButton"); updateButtons(); var firstitem; var args = window.argumen...
var selectedAccount;
var selectedServer;
function onLoad() { var selectedAccount; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["@mozil...
window.sizeToContent();
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); params = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert); caName = cert.commonName; var bundle = srGetStrBundle("chrome://pippki/locale/p...
var bundle = document.getElementById("xpinstallBundle"); var okButton = bundle.getString("OK"); document.getElementById("ok").label = okButton;
var okText = document.getElementById("xpinstallBundle").getString("OK"); var okButton = document.getElementById("ok") okButton.label = okText; okButton.focus();
function onLoad(){ var row = 0; var moduleName, URL, numberOfDialogTreeElements; doSetOKCancel(onOk, onCancel); gParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); gParam.SetInt(0, 1 ); /* Set the default return to Cancel */ numberOfDialogTreeElements = gParam.GetInt(1); for (...
sortAccountList(accounttree);
function onLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); gBrandBundle = document.getElementById("bundle_brand"); var selectedServer; var selectPage = null; if ("arguments" in window && window.arguments[0]) { selectedServer = window.arguments[0].server; selectPage = window.arguments[0].sele...
frames[0].document.location.href = "chrome:
function onLoad(){ initHost(client); readIRCPrefs(); setClientOutput(); frames[0].document.location.href = "chrome://chatzilla/content/outputwindow.html?" + client.DEFAULT_STYLE; initStatic(); client.userScripts = new Array(); if (client.INITIAL_SCRIPTS) { var urls = client.INI...
processStartupURLs();
function onLoad(){ initHost(client); readIRCPrefs(); setClientOutput(); frames[0].document.location.href = "chrome://chatzilla/content/outputwindow.html?" + client.DEFAULT_STYLE; initStatic(); client.userScripts = new Array(); if (client.INITIAL_SCRIPTS) { var urls = client.INI...
dialog.find.accessKey = document.getElementById("fBLT").getAttribute("accesskey");
function onLoad(){ initDialogObject(); // Change "OK" to "Find". dialog.find.label = document.getElementById("fBLT").getAttribute("label"); // get the find instance var finder = window.arguments[0]; // If the dialog was opened from window.find(), findInst will be an // nsISupports interface, so QueryInterface an...
if (window.arguments) {
if ("arguments" in window) {
function onLoad(){ pw1 = document.getElementById("pw1"); if (window.arguments) { params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); } else { tokenName = self.name; } // Set token name in display var t = document.getElementById("tokenName"); t.setAttribute(...
for (var i=1; i <= dialogParams.GetInt(1); i++) {
var aCount = dialogParams.GetInt(0); for (var i=0; i < aCount; i++) {
function onLoad(){ dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); var selectElement = document.getElementById("tokens"); for (var i=1; i <= dialogParams.GetInt(1); i++) { var menuItemNode = document.createElement("menuitem"); var token = dialogParams.GetString(i); ...
if (i == 1) {
if (i == 0) {
function onLoad(){ dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); var selectElement = document.getElementById("tokens"); for (var i=1; i <= dialogParams.GetInt(1); i++) { var menuItemNode = document.createElement("menuitem"); var token = dialogParams.GetString(i); ...
gFilterTree.addEventListener("click",onFilterClick,true);
function onLoad(){ var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); gFilterListMsgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance(Components.i...
{
{ bundle = srGetStrBundle("chrome: dialog = new Object; dialog.input = document.getElementById("dialog.input"); dialog.help = document.getElementById("dialog.help"); dialog.open = document.getElementById("ok"); dialog.openAppList = document.getElementById("openAppList"); ...
function onLoad() { bundle = srGetStrBundle( "chrome://navigator/locale/openLocation.properties" ); dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.open = document.ge...
bundle = srGetStrBundle( "chrome:
doSetOKCancel(open, 0, 0, 0);
function onLoad() { bundle = srGetStrBundle( "chrome://navigator/locale/openLocation.properties" ); dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.open = document.ge...
dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.open = document.getElementById( "ok" ); dialog.openAppList = document.getElementById( "openAppList" ); dialog.openTopWindow = docu...
if (pref) { try { dialog.input.value = pref.CopyUnicharPref("general.open_location.last_url"); dialog.input.select(); } catch (ex) { dialog.input.focus(); } }
function onLoad() { bundle = srGetStrBundle( "chrome://navigator/locale/openLocation.properties" ); dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.open = document.ge...
browser = window.arguments[0]; if ( !browser ) { dialog.openAppList.selectedItem = dialog.openEditWindow; dialog.openTopWindow.setAttribute("disabled", "true"); } else dialog.openAppList.selectedItem = dialog.openTopWindow; dialog.open.setAttribute("value", bundle.GetStringFromName( "openButtonLabel" )); doSetOKC...
doEnabling(); }
function onLoad() { bundle = srGetStrBundle( "chrome://navigator/locale/openLocation.properties" ); dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.open = document.ge...
while (moduleName != "")
for (i = 0; i < numberOfDialogTreeElements; i++)
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } manager = window.arguments[1]; while (moduleName != "") { moduleName = param.GetS...
moduleName = param.GetString(i++);
moduleName = param.GetString(i);
function onLoad() { var i = 0; var row = 0; var moduleName; var URL; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } manager = window.arguments[1]; while (moduleName != "") { moduleName = param.GetS...
var delayInterval = 2000; try { var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); delayInterval = prefs.getIntPref("security.dialog_enable_delay"); } catch (e) {} setTimeout(reenableInstallButtons, delayInterval);
function onLoad(){ var row = 0; var moduleName, URL, IconURL, certName, numberOfDialogTreeElements; gBundle = document.getElementById("xpinstallBundle"); gParam = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); gParam.SetInt(0, 1); // Set the default return to Cancel numberOfDialogT...
if (!messengerStrings) messengerStrings = srGetStrBundle("chrome:
gMessengerBundle = document.getElementById("bundle_messenger");
function onLoad(){ if (!messengerStrings) messengerStrings = srGetStrBundle("chrome://messenger/locale/messenger.properties"); if (!smtpService) smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); serverList = document.get...
gPrefsBundle = document.getElementById("bundle_prefs");
function onLoad() { var selectedServer; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["@mozill...
dump("EdReplace: onLoad()\n");
function onLoad(){ dump("EdReplace: onLoad()\n"); // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: //gFindInst = editorXUL.docShell.QueryInterface(Components.interfaces.nsIWebBrowserFind); gFindInst = editorXUL.webBrowse...
gReplaceDialog.editor = editorXUL.editor.QueryInterface(Components.interfaces.nsIPlaintextEditor);
gEditor = editorXUL.editorShell.editor.QueryInterface(Components.interfaces.nsIPlaintextEditor);
function onLoad(){ dump("EdReplace: onLoad()\n"); // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: //gFindInst = editorXUL.docShell.QueryInterface(Components.interfaces.nsIWebBrowserFind); gFindInst = editorXUL.webBrowse...
if (gReplaceDialog.findKey.value) gReplaceDialog.findKey.select();
if (gReplaceDialog.findInput.value) gReplaceDialog.findInput.select();
function onLoad(){ dump("EdReplace: onLoad()\n"); // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: //gFindInst = editorXUL.docShell.QueryInterface(Components.interfaces.nsIWebBrowserFind); gFindInst = editorXUL.webBrowse...
gReplaceDialog.findKey.focus();
gReplaceDialog.findInput.focus();
function onLoad(){ dump("EdReplace: onLoad()\n"); // Get the xul <editor> element: var editorXUL = window.opener.document.getElementById("content-frame"); // Get the nsIWebBrowserFind service: //gFindInst = editorXUL.docShell.QueryInterface(Components.interfaces.nsIWebBrowserFind); gFindInst = editorXUL.webBrowse...
if (currentAccount) {
if (gCurrentAccount) {
function onLoad() { // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, gWizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-"; wizardManager.URL_PagePostfix = ".xul"; wizardMan...
var finder = window.arguments[0]; gFindInst = finder.QueryInterface(Components.interfaces.nsIWebBrowserFind);
var arg0 = window.arguments[0]; if (arg0 instanceof window.opener.nsFindInstData) { gFindInstData = arg0; gFindInst = gFindInstData.webBrowserFind; } else { gFindInst = arg0.QueryInterface(Components.interfaces.nsIWebBrowserFind); }
function onLoad(){ initDialogObject(); // get the find instance var finder = window.arguments[0]; // If the dialog was opened from window.find(), findInst will be an // nsISupports interface, so QueryInterface anyway to nsIWebBrowserFind. gFindInst = finder.QueryInterface(Components.interfaces.nsIWebBrowserFind);...
bundle = srGetStrBundle("chrome:
try { bundle = srGetStrBundle("chrome: } catch (ex) { dump("please fix bug #26291\n"); }
function onLoad(){ bundle = srGetStrBundle("chrome://profile/locale/migration.properties"); doSetOKCancel(handleOKButton, handleCancelButton); var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); if( !okButton || !cancelButton ) return false; okButton.setAttribute(...
okButton.setAttribute( "value", bundle.GetStringFromName( "migrate" ) );
try { okButton.setAttribute( "value", bundle.GetStringFromName( "migrate" ) ); } catch (ex) { dump("please fix bug #26291\n"); okButton.setAttribute( "value", "Migrate *"); }
function onLoad(){ bundle = srGetStrBundle("chrome://profile/locale/migration.properties"); doSetOKCancel(handleOKButton, handleCancelButton); var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); if( !okButton || !cancelButton ) return false; okButton.setAttribute(...
cancelButton.setAttribute( "value", bundle.GetStringFromName( "newprofile" ) );
try { cancelButton.setAttribute( "value", bundle.GetStringFromName( "newprofile" ) ); } catch (ex) { dump("please fix bug #26291\n"); cancelButton.setAttribute("value","New Profile *"); }
function onLoad(){ bundle = srGetStrBundle("chrome://profile/locale/migration.properties"); doSetOKCancel(handleOKButton, handleCancelButton); var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); if( !okButton || !cancelButton ) return false; okButton.setAttribute(...
var firstItem; var args = window.arguments; if (args && args[0]) firstItem = args[0].initialServerUri; else { var serverMenu = document.getElementById("serverMenu"); var menuitems = serverMenu.getElementsByTagName("menuitem"); firstItem = menuitems[1].id;
var firstItem = getSelectedServerForFilters(); if (!firstItem) firstItem = getServerThatCanHaveFilters(); if (firstItem) { selectServer(firstItem);
function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); editButton = document.getElementById("editButton"); deleteButton = document.getElementById("deleteButton"); doSetOKCancel(onOk, null); updateButtons(); var firstItem; ...
selectServer(firstItem); moveToAlertPosition();
moveToAlertPosition();
function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); editButton = document.getElementById("editButton"); deleteButton = document.getElementById("deleteButton"); doSetOKCancel(onOk, null); updateButtons(); var firstItem; ...
dialog.pause = document.getElementById("pause")
dialog.pause = document.getElementById("pause"); dialog.resume = document.getElementById("resume"); dialog.pauseResumeDeck = document.getElementById("pauseResumeDeck");
function onLoad() { // Set global variables. helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); if ( !helperAppLoader ) { dump( "Invalid argument to downloadProgress.xul\n" ); window.close() return; } dialog = new Object; dialog.str...
window.originalItem = args.calendarEvent;
function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarItem = args.calendarEvent; window.mode = args.mode; window.recurrenceInfo = null; if (window.calendarItem.calendar && window.calendarItem.calendar.readOnly) { gReadOnlyMode = true; } /* ...
doSetOKCancel(dlgOK, dlgCancel); document.getElementById("ok").disabled = true; document.getElementById("cancel").focus();
document.documentElement.getButton("accept").disabled = true; document.documentElement.getButton("cancel").focus();
function onLoad() { doSetOKCancel(dlgOK, dlgCancel); document.getElementById("ok").disabled = true; document.getElementById("cancel").focus(); gBundle = document.getElementById("xpinstallBundle"); var param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock...
cn = dialogParams.GetString(1); org = dialogParams.GetString(2); issuer = dialogParams.GetString(3);
cn = dialogParams.GetString(0); org = dialogParams.GetString(1); issuer = dialogParams.GetString(2);
function onLoad(){ var cn; var org; var issuer; dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); cn = dialogParams.GetString(1); org = dialogParams.GetString(2); issuer = dialogParams.GetString(3); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); ...
itemCount = dialogParams.GetInt(1);
itemCount = dialogParams.GetInt(0);
function onLoad(){ var cn; var org; var issuer; dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); cn = dialogParams.GetString(1); org = dialogParams.GetString(2); issuer = dialogParams.GetString(3); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); ...
var nick = dialogParams.GetString(i+4);
var nick = dialogParams.GetString(i+3);
function onLoad(){ var cn; var org; var issuer; dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); cn = dialogParams.GetString(1); org = dialogParams.GetString(2); issuer = dialogParams.GetString(3); var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); ...
gUPMsg = document.getElementById("unblockedPopupMsg");
function onLoad(){ gSiteBox = document.getElementById("siteBox"); gUnblockButton = document.getElementById("unblockButton"); gPageReport = opener.gBrowser.pageReport; gUPMsg = document.getElementById("unblockedPopupMsg"); buildSiteBox(); gSiteBox.selectedIndex = 0;}
gSiteBox.selectedIndex = 0;
setTimeout(selectFirstItem, 0);
function onLoad(){ gSiteBox = document.getElementById("siteBox"); gUnblockButton = document.getElementById("unblockButton"); gPageReport = opener.gBrowser.pageReport; gUPMsg = document.getElementById("unblockedPopupMsg"); buildSiteBox(); gSiteBox.selectedIndex = 0;}
window.sizeToContent();
document.documentElement.getButton("accept").focus();
function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); cert = isupport.QueryInterface(nsIX509Cert); var bundle = document.getElementById("newserver_bundle"); var intro = b...
dialog.openTopWindow.setAttribute("disabled", "true");
dialog.openTopWindow.setAttribute("label", dialog.bundle.getString("existingNavigatorWindow")); var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); if (windowMana...
function onLoad(){ dialog.input = document.getElementById("dialog.input"); dialog.open = document.getElementById("ok"); dialog.openAppList = document.getElementById("openAppList"); dialog.openTopWindow = document.getElementById("currentWindow"); dialog.openEditWindow = document.getElementByI...
doSetOKCancel(doOK, doCancel);
function onLoad() { doSetOKCancel(doOK, doCancel); // Set checkboxes from prefs const nsIPrefService = Components.interfaces.nsIPrefService; gPrefService = Components.classes["@mozilla.org/preferences-service;1"].getService(nsIPrefService); gPrefBranch = gPrefService.getBranch(null); // Enumerate each checkbox on...
window.sizeToContent(); doSetOKCancel(doOK, doCancel, null, null);
function onLoad(){ dialogParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); var hostname = dialogParams.GetString(0); var bundle = document.getElementById("pippki_bundle"); var intro = bundle.getFormattedString("formSigningIntro", [hostname]); setText("sign.intro", intro); document.getElementById("...