rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var protocolinfo = Components.classes["component: | var protocolinfo = Components.classes["@mozilla.org/messenger/protocol/info;1?type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo); | function onInit() { var accountNameInput = document.getElementById("prettyName"); if (accountNameInput.value=="") { var pageData = parent.GetPageData(); var type = parent.getCurrentServerType(pageData); var protocolinfo = Components.classes["component://netscape/messenger/protocol/info;type="... |
SetupStoreReadMail(); | function onInit() { SetGlobalRadioElemChoices(); SetFolderDisplay(gFccRadioElemChoice, gFccRadioElemChoiceLocked, "fcc", fccAccountPickerId, "identity.fccFolder", fccFolderPickerId); SetFolderDisplay(gDraft... | |
var smtpTextField = document.getElementById("smtphostname"); | var smtpTextBox = document.getElementById("smtphostname"); | function onInit() { gPrefsBundle = document.getElementById("bundle_prefs"); var smtpTextField = document.getElementById("smtphostname"); var smtpServer = parent.smtpService.defaultServer; if (smtpTextField && smtpTextField.value == "" && smtpServer.hostname) smtpTextField.value = smtpServer.hostname; // mo... |
if (smtpTextField && smtpTextField.value == "" && | if (smtpTextBox && smtpTextBox.value == "" && | function onInit() { gPrefsBundle = document.getElementById("bundle_prefs"); var smtpTextField = document.getElementById("smtphostname"); var smtpServer = parent.smtpService.defaultServer; if (smtpTextField && smtpTextField.value == "" && smtpServer.hostname) smtpTextField.value = smtpServer.hostname; // mo... |
smtpTextField.value = smtpServer.hostname; | smtpTextBox.value = smtpServer.hostname; | function onInit() { gPrefsBundle = document.getElementById("bundle_prefs"); var smtpTextField = document.getElementById("smtphostname"); var smtpServer = parent.smtpService.defaultServer; if (smtpTextField && smtpTextField.value == "" && smtpServer.hostname) smtpTextField.value = smtpServer.hostname; // mo... |
SetupStoreReadMail(); | function onInit() { SetGlobalRadioElemChoices(); SetFolderDisplay(gFccRadioElemChoice, gFccRadioElemChoiceLocked, "fcc", fccAccountPickerId, "identity.fccFolder", fccFolderPickerId); SetFolderDisplay(gDraft... | |
gFromGlobalPref = window.arguments[0].fromGlobalPref; | function onInitEditDirectories(){ var listbox = document.getElementById("directoriesList"); gFromGlobalPref = window.arguments[0].fromGlobalPref; LoadDirectoriesList(listbox); // If the pref is locked disable the "Add" button if (gPrefInt.prefIsLocked("ldap_2.disable_button_add")) document.getElementById("addBu... | |
if (client.inputHistory[0] != e.line) | if (!client.inputHistory.length || client.inputHistory[0] != e.line) | function onInputCompleteLine(e, simulated){ if (!simulated) { if (client.inputHistory[0] != e.line) client.inputHistory.unshift (e.line); if (client.inputHistory.length > client.MAX_HISTORY) client.inputHistory.pop(); client.lastHistoryReferenced = -1; ... |
if (client.lastHistoryReferenced < client.inputHistory.length - 1) | if (client.lastHistoryReferenced == -2) { client.lastHistoryReferenced = -1; e.target.value = client.incompleteLine; } else if (client.lastHistoryReferenced < client.inputHistory.length - 1) { | function onInputKeyPress (e){ switch (e.keyCode) { case 13: /* CR */ e.line = stringTrim(e.target.value); if (!e.line) return; onInputCompleteLine (e); e.target.value = ""; break; case 38: /* up */ ... |
default: client.lastHistoryReferenced = -1; | function onInputKeyPress (e){ switch (e.keyCode) { case 13: /* CR */ e.line = stringTrim(e.target.value); if (!e.line) return; onInputCompleteLine (e); e.target.value = ""; break; case 38: /* up */ ... | |
break; | function onInputKeyPress (e){ switch (e.keyCode) { case 13: /* CR */ e.line = stringTrim(e.target.value); if (!e.line) return; onInputCompleteLine (e); e.target.value = ""; break; case 38: /* up */ ... | |
var pos; | function onInputKeypressCallback (el){ function doPopup(popup) { if (client.inputPopup && client.inputPopup != popup) client.inputPopup.hidePopup(); client.inputPopup = popup; if (popup) { var box = el.boxObject; if (!box) box = e... | |
if (client.lastHistoryReferenced < client.inputHistory.length - 1) e.target.value = | if (e.ctrlKey) multilineInputMode (true); else if (client.lastHistoryReferenced < client.inputHistory.length - 1) e.target.value = | function onInputKeyUp (e){ switch (e.keyCode) { case 13: /* CR */ e.line = e.target.value; onInputCompleteLine (e); break; case 38: /* up */ if (client.lastHistoryReferenced < client.inputHistory.length - 1) e.target.value = ... |
e.preventDefault(); | function onInputKeyUp (e){ switch (e.keyCode) { case 13: /* CR */ e.line = e.target.value; onInputCompleteLine (e); break; case 38: /* up */ if (client.lastHistoryReferenced < client.inputHistory.length - 1) e.target.value = ... | |
OnItemAdded: function(parentItem, item, view) {}, | OnItemAdded: function(parentItem, item) {}, | OnItemAdded: function(parentItem, item, view) {}, |
else if (event.GetUnicode() == "msgLoaded") { OnMsgLoaded(folder, gCurrentMessageUri); } | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "DeleteOrMoveMsgCompleted") { HandleDeleteOrMoveMsgCompleted(folder); } else if (event.GetUnicode() == "DeleteOrMoveMsgFailed") { HandleDeleteOrMoveMsgFailed(folder); } } | |
ScrollToMessage(nsMsgNavigationType.firstNew, true, false ); | scrolled = ScrollToMessage(nsMsgNavigationType.firstNew, true, false ); if (!scrolled) { EnsureRowInThreadOutlinerIsVisible(0); } | OnItemEvent: function(folder, event) { var eventType = event.GetUnicode(); if (eventType == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); ... |
if(IsCurrentLoadedFolder(folder)) { msgNavigationService.EnsureDocumentIsLoaded(document); if(gNextMessageAfterDelete) { var nextMessage = document.getElementById(gNextMessageAfterDelete); gNextMessageAfterDelete = null; SelectNextMessage(nextMessage); var threadTree = GetThreadTree(); if(threadTree) threadTree.ensureE... | HandleDeleteOrMoveMsgCompleted(folder); } | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFol... |
SetBusyCursor(window, false); | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; //dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFol... | |
RerootFolder(uri, msgFolder, gCurrentLoadingFolderIsThreaded, gCurrentLoadingFolderSortID, gCurrentLoadingFolderSortDirection); | RerootFolder(uri, msgFolder, gCurrentLoadingFolderIsThreaded, gCurrentLoadingFolderSortID, gCurrentLoadingFolderSortDirection, gCurrentLoadingFolderViewType); | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFolde... |
gCurrentLoadingFolderViewType = ""; | OnItemEvent: function(folder, event) { if (event.GetUnicode() == "FolderLoaded") { if(folder) { var resource = folder.QueryInterface(Components.interfaces.nsIRDFResource); if(resource) { var uri = resource.Value; dump("In OnFolderLoaded for " + uri +"\n"); if(uri == gCurrentFolde... | |
OnItemRemoved: function(parentItem, item, view) { var parentFolderResource = parentItem.QueryInterface(Components.interfaces.nsIRDFResource); if (!parentFolderResource) | OnItemRemoved: function(parentItem, item) { if (parentItem.Value != gCurrentFolderUri) | OnItemRemoved: function(parentItem, item, view) { var parentFolderResource = parentItem.QueryInterface(Components.interfaces.nsIRDFResource); if (!parentFolderResource) return; var parentURI = parentFolderResource.Value; if (parentURI != gCurrentFolderUri) return; var deletedMessageHdr = item... |
var parentURI = parentFolderResource.Value; if (parentURI != gCurrentFolderUri) return; var deletedMessageHdr = item.QueryInterface(Components.interfaces.nsIMsgDBHdr); if (extractMsgKeyFromURI() == deletedMessageHdr.messageKey) | if (item instanceof Components.interfaces.nsIMsgDBHdr && extractMsgKeyFromURI() == item.messageKey) | OnItemRemoved: function(parentItem, item, view) { var parentFolderResource = parentItem.QueryInterface(Components.interfaces.nsIRDFResource); if (!parentFolderResource) return; var parentURI = parentFolderResource.Value; if (parentURI != gCurrentFolderUri) return; var deletedMessageHdr = item... |
OnItemRemoved: function(parentItem, item, view) { }, | OnItemRemoved: function(parentItem, item) { }, | OnItemRemoved: function(parentItem, item, view) { }, |
abPopup.setAttribute("selectedAB", kPersonalAddressbookURI); | abPopup.value = kPersonalAddressbookURI; | onItemRemoved: function(parentDir, item) { // will only be called when an addressbook is deleted try { var directory = item.QueryInterface(Components.interfaces.nsIAbDirectory); // check if the item being removed is the directory // that we are showing in the addressbook sidebar // if so, se... |
setupForAccountFromFolder(window.arguments[0].folder.URI); | setupForAccountFromFolder(window.arguments[0].folder ? window.arguments[0].folder.URI : null); | function onJunkMailLoad(){ gMessengerBundle = document.getElementById("bundle_messenger"); if (window.arguments && window.arguments[0]) { // XXX todo, what if no folder? setupForAccountFromFolder(window.arguments[0].folder.URI); }} |
doSetOKCancel(onAccept, onCancel, doHelpButton); | function onJunkMailLoad(){ if (window.arguments && window.arguments[0]) { // XXX todo, what if no folder? setupForAccountFromFolder(window.arguments[0].folder.URI); }} | |
try { urlSecurityCheck(wrapper.href, gBrowser.currentURI.spec, Ci.nsIScriptSecurityManager.DISALLOW_SCRIPT_OR_DATA); } catch (ex) { dump(ex.message); return; } | onLinkAdded: function(event) { // XXX this event listener can/should probably be combined with the onLinkAdded // listener in tabbrowser.xml, which only listens for favicons and then passes // them to onLinkIconAvailable in the ProgressListener. We could extend the // progress listener to have a generic ... | |
#ifdef MOZ_PLACES | #ifdef MOZ_PLACES_BOOKMARKS | onLinkIconAvailable : function(aBrowser) { if (gProxyFavIcon && gBrowser.mCurrentBrowser == aBrowser && gBrowser.userTypedValue === null) { // update the favicon in the URL bar PageProxySetIcon(aBrowser.mIconURL); }#ifdef MOZ_PLACES // Save this favicon in the favicon service i... |
if (!gBookmarksService) gBookmarksService = Components.classes["@mozilla.org/browser/bookmarks-service;1"] .getService(Components.interfaces.nsIBookmarksService); gBookmarksService.UpdateBookmarkIcon(this.urlBar.value, aHref); } | onLinkIconAvailable : function(aHref) { if (gProxyFavIcon && pref.getBoolPref("browser.chrome.site_icons")) gProxyFavIcon.setAttribute("src", aHref); }, | |
onLinkIconAvailable : function(aHref) { | onLinkIconAvailable : function(aHref) { var browser = getBrowser() | onLinkIconAvailable : function(aHref) { if (gProxyFavIcon) { // XXXBlake gPrefService.getBoolPref("browser.chrome.site_icons")) gProxyFavIcon.setAttribute("src", aHref); } }, |
gProxyFavIcon.setAttribute("src", aHref); | if (browser.userTypedValue === null) gProxyFavIcon.setAttribute("src", aHref); | onLinkIconAvailable : function(aHref) { if (gProxyFavIcon) { // XXXBlake gPrefService.getBoolPref("browser.chrome.site_icons")) gProxyFavIcon.setAttribute("src", aHref); } }, |
oFCKeditor1.ToolbarSet = 'editor-toolbar3' ; | oFCKeditor1.ToolbarSet = 'editor-toolbar1' ; | window.onload = function() { var oFCKeditor1 = new FCKeditor( 'introhtml' ) ; oFCKeditor1.BasePath = geeklogEditorBasePath; oFCKeditor1.ToolbarSet = 'editor-toolbar3' ; oFCKeditor1.Height = 200 ; oFCKeditor1.ReplaceTextarea() ; var oFCKeditor2 = new FCKeditor( 'bodyhtml' ) ... |
oFCKeditor2.ToolbarSet = 'editor-toolbar3' ; | oFCKeditor2.ToolbarSet = 'editor-toolbar1' ; | window.onload = function() { var oFCKeditor1 = new FCKeditor( 'introhtml' ) ; oFCKeditor1.BasePath = geeklogEditorBasePath; oFCKeditor1.ToolbarSet = 'editor-toolbar3' ; oFCKeditor1.Height = 200 ; oFCKeditor1.ReplaceTextarea() ; var oFCKeditor2 = new FCKeditor( 'bodyhtml' ) ... |
this.pref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); | this.pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); | onload: function () { try { this.pref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); this.chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(Components.interfaces.nsIXULChro... |
function onLoad() { | onLoad: function() { | function onLoad(){ parent.onPanelLoaded('am-smtp.xul'); var defaultSmtpServer = smtpService.defaultServer; initSmtpSettings(defaultSmtpServer); // Get the default smtp server preference to check if we need to lock the // advance button on the panel. if (defaultSmtpServer) { var defaultSmtpServer... |
var defaultSmtpServer = smtpService.defaultServer; | this.mBundle = document.getElementById("bundle_messenger"); this.mServerList = document.getElementById("smtpList"); this.mAddButton = document.getElementById("addButton"); this.mEditButton = document.getElementById("editButton"); this.mDeleteButton = document.getElementById("deleteButton"); this.mSetDefaultServerButton... | function onLoad(){ parent.onPanelLoaded('am-smtp.xul'); var defaultSmtpServer = smtpService.defaultServer; initSmtpSettings(defaultSmtpServer); // Get the default smtp server preference to check if we need to lock the // advance button on the panel. if (defaultSmtpServer) { var defaultSmtpServer... |
initSmtpSettings(defaultSmtpServer); if (defaultSmtpServer) { var defaultSmtpServerKey = gPrefBranch.getCharPref("mail.smtp.defaultserver"); var prefString = "mail.smtpserver."+ defaultSmtpServerKey + ".advanced.disable"; var advButton = document.getElementById("smtp.advancedbutton"); if (gPrefBranch.prefIsLocked(p... | this.refreshServerList(); }, | function onLoad(){ parent.onPanelLoaded('am-smtp.xul'); var defaultSmtpServer = smtpService.defaultServer; initSmtpSettings(defaultSmtpServer); // Get the default smtp server preference to check if we need to lock the // advance button on the panel. if (defaultSmtpServer) { var defaultSmtpServer... |
for each (obs in this.compCalendar.mObservers) obs.onLoad(); | this.notifyObservers("onLoad"); | onLoad: function() { for each (obs in this.compCalendar.mObservers) obs.onLoad(); }, |
if( window.queuedTag ) { this.onpageload( window.queuedTag ); } if( window.arguments[1] ) this.closeBranches( window.arguments[1] ); | onload: function () { doSetOKCancel( this.onOK, this.onCancel ); try { this.pref = Components.classes["component://netscape/preferences"].getService(); if( this.pref ) { this.pref = this.pref.QueryInterface( Componen... | |
var url = details.responseText.match(answerre)[1]; e.target.value = e.target.value.replace(new RegExp("\\[\\["+match+"\\]\\]", "gim"), '<a href="'+url+'">'+match+'</a>'); } | var url = details.responseText.match(answerre)[1]; if (url.indexOf("record not found") == -1) { replacementtext = '<a href="'+url+'">'+match+'</a>'; var matchre = new RegExp("\\[\\["+match+"\\]\\]", "gim"); var matcharray = matchre.exec(e.target.value); if (matcharray) { var newposition = (e.target.selectionStart ... | onload: function (details) { var url = details.responseText.match(answerre)[1];// alert('url for '+oldword+': ' + details.responseText); e.target.value = e.target.value.replace(new RegExp("\\[\\["+match+"\\]\\]", "gim"), '<a href="'+url+'">'+match+'</a>'); } |
table.onmouseover = onTableMouseOver; table.onmouseout = onTableMouseOut; | if (table) { table.onmouseover = onTableMouseOver; table.onmouseout = onTableMouseOut; } | window.onload = function(){ var table = document.getElementById("PopupTable"); table.onmouseover = onTableMouseOver; table.onmouseout = onTableMouseOut;}; |
onLoad: function () { toDoUnifinderRefresh(); | onLoad: function() { if (!this.mInBatch) refreshEventTree(); | onLoad: function () { toDoUnifinderRefresh(); }, |
this.pref = Components.classes["component: | this.pref = Components.classes["@mozilla.org/preferences;1"].getService(); | onload: function () { doSetOKCancel( this.onOK, this.onCancel ); try { this.pref = Components.classes["component://netscape/preferences"].getService(); if( this.pref ) { this.pref = this.pref.QueryInterface( Componen... |
e.target.value = e.target.value.replace(new RegExp("\\[\\["+oldword+"\\]\\]", "gim"), '<a href="'+url+'">'+oldword+'</a>'); | e.target.value = e.target.value.replace(new RegExp("\\[\\["+match+"\\]\\]", "gim"), '<a href="'+url+'">'+match+'</a>'); | onload: function (details) { var url = details.responseText.match(answerre)[1];// alert('url for '+oldword+': ' + details.responseText); e.target.value = e.target.value.replace(new RegExp("\\[\\["+oldword+"\\]\\]", "gim"), '<a href="'+url+'">'+oldword+'</a>'); } |
var calendarEventService = opener.gEventSource; gICalLib = calendarEventService.getICalLib(); | function onLoad(){ var args = window.arguments[0]; if( args.calendarEvent ) { onAlarmCall( args.calendarEvent ); } if( "pendingEvents" in window ) { //dump( "\n GETTING PENDING ___________________" ); for( var i in window.pendingEvents ) { gAllEvents[ gAllEvents.len... | |
dump( "Invalid argument to downloadProgress.xul\n" ); | 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"... | |
data.Start(); | try { data.Start(); } catch( exception ) { onError( exception ); } | 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"... |
dialog.openTopWindow.disabled = true; | dialog.openTopWindow.setAttribute("disabled", "true"); | 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... |
document.documentElement.getButton("accept").focus(); | function onLoad(){ pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock); dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock); var isupport = pkiParams.getISupportAtIndex(1); var cert = isupport.QueryInterface(nsIX509Cert); var connectURL = dialogParams.GetString(1); var gBundleBrand = srG... | |
doSetOKCancel(onOK); | function onLoad() { args = window.arguments[0]; args.zoomOK = false; dialog = {}; dialog.OKButton = document.getElementById("ok"); dialog.input = document.getElementById("zoomValue"); dialog.input.value = args.value; dialog.input.select(); dialog.input.focus(); sizeToContent(); moveToAlertPosition(); doEnabl... | |
return; | 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... | |
okButton.setAttribute("value", gMigrationundle.getString("migrate")); | okButton.setAttribute("value", gMigrationBundle.getString("migrate")); | function onLoad(){ gMigrationBundle = document.getElementById("bundle_migration"); doSetOKCancel(handleOKButton, handleCancelButton); var okButton = document.getElementById("ok"); var cancelButton = document.getElementById("cancel"); if (!okButton || !cancelButton) return false; okButton.setAttribute("value", ... |
var messageText = params.GetString(nsICookieAcceptDialog.MESSAGETEXT); | var messageFormat; if (params.GetInt(nsICookieAcceptDialog.CHANGINGCOOKIE)) messageFormat = 'permissionToModifyCookie'; else if (cookiesFromHost > 1) messageFormat = 'permissionToSetAnotherCookie'; else if (cookiesFromHost == 1) messageFormat = 'permissionToSetSecondCookie'; else messageFormat = 'permissionToSetACookie... | function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con... |
document.getElementById('ifl_name').setAttribute("value",params.GetString(nsICookieAcceptDialog.COOKIE_NAME)); document.getElementById('ifl_value').setAttribute("value",params.GetString(nsICookieAcceptDialog.COOKIE_VALUE)); document.getElementById('ifl_host').setAttribute("value",params.GetString(nsICookieAcceptDialog.... | if (cookie) { document.getElementById('ifl_name').setAttribute("value",cookie.name); document.getElementById('ifl_value').setAttribute("value",cookie.value); document.getElementById('ifl_host').setAttribute("value",cookie.host); document.getElementById('ifl_path').setAttribute("value",cookie.path); document.getElementB... | function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con... |
document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(params.GetInt(nsICookieAcceptDialog.COOKIE_EXPIRES))); document.getElementById('ifl_isDomain').setAttribute("value", params.GetInt(nsICookieAcceptDialog.COOKIE_IS_DOMAIN) ? cookieBundle.getString("domainColon") : cookieBundle.getString("hostCo... | document.getElementById('ifl_expires').setAttribute("value",GetExpiresString(cookie.expires)); document.getElementById('ifl_isDomain').setAttribute("value", cookie.isDomain ? cookieBundle.getString("domainColon") : cookieBundle.getString("hostColon") ); } params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 0); | function onload(){ var dialog = document.documentElement; dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; con... |
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... | |
dialog.getButton("accept").label = dialog.getAttribute("acceptLabel"); dialog.getButton("cancel").label = dialog.getAttribute("cancelLabel"); | function onload(){ var dialog = document.documentElement; if (!gDateService) { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat; gDateService = Components.classes[nsScriptableDateFormat_CONTRACT... | |
RDF = Components.classes["component: | RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); | function onLoad() { var selectedAccount; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["... |
accountManager = Components.classes["component: | accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); | function onLoad() { var selectedAccount; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["... |
Components.classes["component: | Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); | function onLoad() { var selectedAccount; if (window.arguments && window.arguments[0]) selectedServer = window.arguments[0].server; accountArray = new Array; RDF = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); accountManager = Components.classes["... |
#endif | 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... | |
rdf = Components.classes["component: | rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); | function onLoad(){ rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(Components.interfaces.nsIRDFService); editButton = document.getElementById("editButton"); deleteButton = document.getElementById("deleteButton"); doSetOKCancel(onOk, null); updateButtons(); var first... |
setOutputStyle (client.DEFAULT_STYLE); | setClientOutput(); initStatic(); | function onLoad(){ initHost(client); readIRCPrefs(); setOutputStyle (client.DEFAULT_STYLE); /* Called in a callback once the document loads due to a current bug */ mainStep();} |
gDelayTestDriverEnd = false; jsTestDriverEnd(); | function onLoad() { var a = new Array(); var pe; var x; var s; setform(); for (pe=document.getElementById("test"); pe; pe=pe.parentNode) { a[a.length] = pe; } // can't document.write since this is in after load fires s = a.toString(); actual = 'No Crash'; reportCompare(expect, actual, summary);} | |
var okButton = document.documentElement.getButton("accept"); var cancelButton = document.documentElement.getButton("cancel"); 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.documentElement.getButton("accept"); var cancelButton = document.documentElement.getButton("cance... | |
document.getElementById("view").addEventListener("mouseover", view.onMouseOver, true); document.getElementById("view").addEventListener("mouseout", view.onMouseOut, true); | function onLoad(event) { document.removeEventListener("load", onLoad, true); document.getElementById("checks").addEventListener("click", view.onClickDisplay, true); view.updateView(); return true;} | |
gCommonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); gCommonDialogsService = gCommonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs); | var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); | function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); gCommonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); gCommonDialogsService = gCommonDialogsService.QueryInterface(Components... |
window.outerHeight = 0; | window.outerHeight = 50; | function onLoad(){ gToolbox = window.arguments[0]; gToolboxDocument = gToolbox.ownerDocument; gToolbox.addEventListener("draggesture", onToolbarDragGesture, false); gToolbox.addEventListener("dragover", onToolbarDragOver, false); gToolbox.addEventListener("dragexit", onToolbarDragExit, false); gToolbox.addEvent... |
Components.interfaces.nsISupportsWString); | Components.interfaces.nsISupportsWString).data; | 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... |
var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_PROGID].getService().QueryInterface(nsIDirectoryServiceProvider); | var dirServiceProvider = Components.classes[nsIDirectoryServiceProvider_CONTRACTID].getService().QueryInterface(nsIDirectoryServiceProvider); | function onLoad() { dirHistory = new Array(); directoryTree = document.getElementById("directoryTree"); textInput = document.getElementById("textInput"); 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.titl... |
smtpService = Components.classes["component: | smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); | function onLoad(){ if (!messengerStrings) messengerStrings = srGetStrBundle("chrome://messenger/locale/messenger.properties"); if (!smtpService) smtpService = Components.classes["component://netscape/messengercompose/smtp"].getService(Components.interfaces.nsISmtpService); serverList = docume... |
onSortCol ("componentcol-progid"); | onSortCol ("componentcol-contractid"); | function onLoad(){ /* see cview-rdf.js for the definition of RDFHelper */ cview.rdf = new RDFHelper(); cview.rdf.initTree ("component-list"); cview.rdf.initTree ("interface-list"); cview.rdf.setTreeRoot ("component-list", cview.rdf.resRoot); cview.rdf.setTreeRoot ("interface-list", cview.rdf.resRo... |
Components.classes["component: | Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); | function onLoad(event){ if (!smtpService) { smtpService = Components.classes["component://netscape/messengercompose/smtp"].getService(Components.interfaces.nsISmtpService); } var server = window.arguments[0].server; initializeDialog(server); doSetOKCancel(onOk, 0);} |
document.getElementById('quickMode').checked = window.arguments[0].quickMode; | 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 aButton = document.documentElement.getButton("accept"); aButton.setAttribute("default", false); aButton = document.documentElement.getButton("cancel"); aButton.focus(); aButton.setAttribute("default", true); | 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 */ numberOfDial... | |
gDelayTestDriverEnd = false; jsTestDriverEnd(); | function onLoad() { setform(); var a=new Array(); var forms = document.getElementsByTagName('form'); a[a.length]=forms[0]; var s=a.toString(); actual = 'No Crash'; reportCompare(expect, actual, summary);} | |
if ( !browser ) { dialog.topWindowDiv.setAttribute("style","display:none;"); var pNode = dialog.newWindowDiv.parentNode; pNode.removeChild(dialog.newWindowDiv); pNode.appendChild(dialog.newWindowDiv); | if ( !browser ) { dialog.topWindow.checked = false; dialog.editNewWindow.checked = true; | function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.topWindow = document.getElementById( "dialog.topWindow" ); dialog.topWindowDiv = document.getElementById( "dialog.topWindowDiv" ); dialog.newWindow =... |
dialog.editNewWindow.checked = true; } else { | dialog.topWindowDiv.setAttribute("style","display:none;"); var pNode = dialog.newWindowDiv.parentNode; pNode.removeChild(dialog.newWindowDiv); pNode.appendChild(dialog.newWindowDiv); } else { | function onLoad() { dialog = new Object; dialog.input = document.getElementById( "dialog.input" ); dialog.help = document.getElementById( "dialog.help" ); dialog.topWindow = document.getElementById( "dialog.topWindow" ); dialog.topWindowDiv = document.getElementById( "dialog.topWindowDiv" ); dialog.newWindow =... |
reorderUpButton = document.getElementById("reorderUpButton"); reorderDownButton = document.getElementById("reorderDownButton"); | function onLoad(){ rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); gCommonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); gCommonDialogsService = gCommonDialogsService.QueryInterface(Componen... | |
setTimeout(selectServer, 0, selectedServer, selectPage); | setTimeout(selectServer, 0, selectedServer.serverURI, selectPage); | 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... |
var defaultSmtpServerKey = gPrefBranch.getCharPref("mail.smtp.defaultserver"); var prefString = "mail.smtpserver."+ defaultSmtpServerKey + ".advanced.disable"; var advButton = document.getElementById("smtp.advancedbutton"); if (gPrefBranch.prefIsLocked(prefString)) { advButton.setAttribute("disabled", "true"); } | function onLoad(){ parent.onPanelLoaded('am-smtp.xul'); var defaultSmtpServer = null; try { defaultSmtpServer = smtpService.defaultServer; } catch (ex) { defaultSmtpServer = null; } initSmtpSettings(defaultSmtpServer);} | |
i=0; | var i=0; | function onLoad(){ pw1 = document.getElementById("pw1"); try { params = window.arguments[0].QueryInterface(nsIDialogParamBlock); tokenName = params.GetString(1); }catch(exception) {tokenName = self.name;} if(tokenName=="" || tokenName=="_blank") { var sectokdb = Components.classes[nsPK11TokenDB].getSer... |
doSetOKCancel(onOK, onCancel); | function onLoad(){ // Init dialog. initDialog(); // setup the dialogOverlay.xul button handlers doSetOKCancel(onOK, onCancel); param = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock); if( !param ) { return; } param.SetInt(0, 1 ); loadDialog();} | |
doSetOKCancel(onOk, 0); | function onLoad(){ gMessengerBundle = document.getElementById("bundle_messenger"); if (!smtpService) smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); serverList = document.getElementById("smtpTree"); addButton = document... | |
var accountManager = Components.classes["component: server = accountManager.getIncomingServer(serverid); nntpServer = server.QueryInterface(Components.interfaces.nsINntpIncomingServer); | function OnLoad(){ doSetOKCancel(OkButtonCallback, null); if (window.arguments && window.arguments[0]) { var args = window.arguments[0].split(","); // args will be of the form <number>,<newsgroup name>,<serverid> newmessages = args[0]; newsgroupname = args[1]; serverid = args[2]; dump("new message count = " + new... | |
Registry = Components.classes['component: | Registry = Components.classes['@mozilla.org/registry-viewer;1'].createInstance(); | function OnLoad(){ Registry = Components.classes['component://netscape/registry-viewer'].createInstance(); Registry = Registry.QueryInterface(Components.interfaces.nsIRegistryDataSource); Registry.openWellKnownRegistry(Registry.ApplicationComponentRegistry); Registry = Registry.QueryInterface(Components.int... |
var accountManager = Components.classes["component: | var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); | function OnLoad(){ doSetOKCancel(OkButtonCallback, CancelButtonCallback); if (window.arguments && window.arguments[0]) { //dump ("param = " + window.arguments[0] + "\n"); param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); //dump ("after QI param = " + window.ar... |
window.addedExceptions = []; | function onLoad(){ var args = window.arguments[0]; window.onAcceptCallback = args.onOk; window.calendarEvent = args.calendarEvent; window.originalRecurrenceInfo = args.recurrenceInfo; window.removedExceptions = []; loadDialog(); updateDeck(); updateDuration(); updateAccept(); opener.setCur... | |
createDirectoriesList(false); | createDirectoriesList(); | function onLoad(){ createDirectoriesList(false); parent.onPanelLoaded('am-addressing.xul');} |
dialog.pause = document.getElementById("pause") dialog.request = 0; dialog.downloadPaused = false; | 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... | |
gMessengerBundle = document.getElementById("bundle_messenger"); | function onLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); // wizard stuff // instantiate the Wizard Manager wizardManager = new WizardManager( "wizardContents", null, null, gWizardMap ); wizardManager.URL_PagePrefix = "chrome://messenger/content/aw-... | |
finder = Components.classes[ "component: | finder = Components.classes[ "@mozilla.org/appshell/component/find;1" ].getService(); | function onLoad() { // Init dialog. initDialog(); // Get find component. finder = Components.classes[ "component://netscape/appshell/component/find" ].getService(); finder = finder.QueryInterface( Components.interfaces.nsIFindComponent ); ... |
if (!browser) | if (!browser) { | 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... |
dialog.openNewTab.setAttribute("disabled", "true"); } | 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... | |
var nameWithoutExtension = filesFolder.leafName; nameWithoutExtension = nameWithoutExtension.substring(0, nameWithoutExtension.lastIndexOf(".")); | var nameWithoutExtension = filesFolder.leafName.replace(/\.[^.]*$/, ""); | function onLoad() { // Set global variables. try { helperAppLoader = window.arguments[0].QueryInterface( Components.interfaces.nsIHelperAppLauncher ); } catch (e) { webBrowserPersist = window.arguments[0].QueryInterface( Components.interfaces.nsIWebBrowserPersist ); setTimeout("checkPersistCo... |
document.getElementById("cancel").focus(); return; | function onLoad() { var i = 0; var row = 0; var moduleName; var URL; var numberOfDialogTreeElements; param = window.arguments[0].QueryInterface( Components.interfaces.nsIDialogParamBlock ); if ( !param ) { dump (" error getting param block interface \n"); } numberOfDialogTreeElemen... | |
readIRCPrefs(); | initPrefs(); readPrefs(); | function onLoad(){ initHost(client); readIRCPrefs(); setClientOutput(); initStatic(); client.userScripts = new Array(); if (client.INITIAL_SCRIPTS) { var urls = client.INITIAL_SCRIPTS.split (";"); for (var i = 0; i < urls.length; ++i) { client.userScripts[i] = ne... |
client.onInputNetworks(); client.onInputCommands(); | function onLoad(){ initHost(client); readIRCPrefs(); setClientOutput(); initStatic(); client.userScripts = new Array(); if (client.INITIAL_SCRIPTS) { var urls = client.INITIAL_SCRIPTS.split (";"); for (var i = 0; i < urls.length; ++i) { client.userScripts[i] = ne... | |
Components.classes["component: | Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.