rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
gAddressBookBundle = document.getElementById("bundle_addressBook"); | function OnLoadNewMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); var selectedAB = null; if (window.arguments && window.arguments[0]) { var abURI = window.arguments[0].selectedAB; if (abURI) { var d... | |
InitCommonJS(); | function OnLoadNewMailList(){ //XXX: gAddressBookBundle is set in 2 places because of different callers gAddressBookBundle = document.getElementById("bundle_addressBook"); var selectedAB = null; if (window.arguments && window.arguments[0]) { var abURI = window.arguments[0].selectedAB; if (abURI) { var d... | |
if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) | if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0] && window.arguments[0].doc) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
theDocument = window.arguments[0]; | theDocument = window.arguments[0].doc; | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
if ("arguments" in window && window.arguments.length > 1) | if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0] && window.arguments[0].initialTab) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
var tabName = window.arguments[1]; if (tabName) | var tab = document.getElementById(window.arguments[0].initialTab); if (tab) | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
var tab = document.getElementById(tabName); if (tabControl && tab) { tabControl.selectedTab = tab; } | tabControl.selectedTab = tab; | function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri... |
gContent = document.getElementById("content") ; | var args = window.arguments[0]; gContent = document.getElementById("content"); | function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window... |
if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window.arguments[4] ; gCalendarWindow = window.arguments[5] ; eventSource=gArgs.eventSource; weeksInV... | var htmlexporter = Components.classes["@mozilla.org/calendar/export;1?type=html"].createInstance(Components.interfaces.calIExporter); | function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window... |
gHtmlDocument = window.content.document; gHtmlString = ""; initHTMLView(); eval(HTMLViewFunction)(HTMLFunctionArgs); finishHTMLView() ; | if (!gTempFile) { const nsIFile = Components.interfaces.nsIFile; var dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gTempFile = dirService.get("TmpD", nsIFile); gTempFile.append("calendarPrint.html"); gTempFile.createUnique(nsIFile.NORMAL_FILE_... | function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window... |
if (!gTempFile) { const nsIFile = Components.interfaces.nsIFile; var dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gTempFile = dirService.get("TmpD", nsIFile); gTempFile.append("calendarPrint.html"); gTempFile.createUnique(nsIFile.NORMAL_FILE_... | gHtmlDocument = window.content.document; gHtmlDocument.location.href = gTempUri.spec; | function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window... |
args.eventList.length, args.eventList); | args.eventList.length, args.eventList, args.title); | function OnLoadPrintEngine(){ var args = window.arguments[0]; gContent = document.getElementById("content"); var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService); var props = sbs.createBundle("chrome://calendar/locale/calenda... |
gAddressBookBundle = document.getElementById("bundle_addressBook"); | InitCommonJS(); | function OnLoadSelectAddress(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); prefixTo = gAddressBookBundle.getString("prefixTo") + ": "; prefixCc = gAddressBookBundle.getString("prefixCc") + ": "; prefixBcc = gAddressBookBundle.getString("prefixBcc") + ": "; InitCommonJS(); UpgradeAddressBo... |
InitCommonJS(); | function OnLoadSelectAddress(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); prefixTo = gAddressBookBundle.getString("prefixTo") + ": "; prefixCc = gAddressBookBundle.getString("prefixCc") + ": "; prefixBcc = gAddressBookBundle.getString("prefixBcc") + ": "; InitCommonJS(); UpgradeAddressBo... | |
MsgSortByDate(); | function OnLoadThreadPane(threadTree){ gThreadTree = threadTree; //Sort by date by default MsgSortByDate(); // add folderSource to thread pane folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource); threadTree.database.AddDataSource(folderDataSource); //Add message data source mes... | |
initFindBar(); | gFindBar.initFindBar(); | function onLoadViewPartialSource(){ // check the view_source.wrap_long_lines pref and set the menuitem's checked attribute accordingly if (gPrefs) { try { var wraplonglinesPrefValue = gPrefs.getBoolPref('view_source.wrap_long_lines'); if (wraplonglinesPrefValue) { document.getElementById('menu_wra... |
initFindBar(); | gFindBar.initFindBar(); | function onLoadViewSource() { viewSource(window.arguments[0]); document.commandDispatcher.focusedWindow = content;#ifdef MOZ_PHOENIX initFindBar();#endif} |
if (!this.userTyped.value) { | var userTypedValue = browser.userTypedValue; if (userTypedValue === null) { | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... |
this.userTyped.value = false; | SetPageProxyState("valid", aLocation); browser.userTypedValue = null; } else { this.urlBar.value = userTypedValue; SetPageProxyState("invalid", null); | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... |
SetPageProxyState("valid", aLocation); | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... | |
var browser = getBrowser().mCurrentBrowser; | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... | |
this.urlBar.value = aLocation.spec; | domWindow = aWebProgress.DOMWindow; if (domWindow == domWindow.top) { this.urlBar.value = location; } | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.urlBar.value = aLocation.spec; }, |
var channel = aRequest.QueryInterface(nsIChannel); dump("***** request: " + channel.URI.spec + "\n"); | try { var channel = aRequest.QueryInterface(nsIChannel); dump("***** request: " + channel.URI.spec + "\n"); } catch(e) {} | onLocationChange : function(aWebProgress, aRequest, aLocation) { if (gShowDebugOutputLocationChange) { dump("***** onLocationChange: "+aLocation.spec+"\n"); var channel = aRequest.QueryInterface(nsIChannel); dump("***** request: " + channel.URI.spec + "\n"); } }, |
if (domWindow == domWindow.top) { | if (domWindow == this.getFrom(domWindow, "top")) { | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change... |
switch (aURI.scheme) { case "http": case "https": case "ftp": case "gopher": isEnabled = true; | if (aURI instanceof Components.interfaces.nsIURI) { switch (aURI.scheme) { case "http": case "https": case "ftp": case "gopher": isEnabled = true; } | onLocationChange: function(aProgress, aRequest, aURI) { var broadcaster = document.getElementById("reporterItemsBroadcaster"); var isEnabled = false; switch (aURI.scheme) { case "http": case "https": case "ftp": case "gopher": isEnabled = true; } broadcaster.setAttribute(... |
browser.popupUrls = null; browser.popupFeatures = null; | browser.popupUrls = []; browser.popupFeatures = []; | onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ... |
locationFld.setAttribute("value", location); | locationFld.value = location; | onLocationChange : function(location) { if(!locationFld) locationFld = document.getElementById("urlbar"); // We should probably not do this if the value has changed since the user // searched locationFld.setAttribute("value", location); UpdateBackForwardButtons(); }, |
var blank = (location == "about:blank") || (location == ""); var browser = getBrowser().mCurrentBrowser; if (blank || !("popupDomain" in browser) || aLocation.hostPort != browser.popupDomain) { browser.popupDomain = null; } var popupIcon = document.getElementById("popupIcon"); popupIcon.hidden = !browser.popupDoma... | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink(""); var location = ""; if (aLocation) { try { if (!gURIFixup) gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(Components.interfaces.nsIURIFixu... | |
if (browser.userTypedClear) browser.userTypedValue = null; | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (location == "about:blank") location = ""; // We should probably not do this if the value has changed since the user // searched // Update urlbar only if a new page wa... | |
dump("XXX closing dbview (" + dbview + ")\n"); | function OnMailWindowUnload(){ var dbview = GetDBView(); if (dbview) { dbview.close(); } var mailSession = Components.classes[mailSessionContractID].getService(); if(mailSession) { mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession); if(mailSession) { mailSession.Re... | |
onMessageClassified: function(aMsgURI, aClassification) { dump(aMsgURI + ' is ' + (aClassification == nsIJunkMailPlugin.JUNK ? 'JUNK' : 'GOOD') + '\n'); var score = aClassification == nsIJunkMailPlugin.JUNK ? "100" : "0"; | onMessageClassified: function(aClassifiedMsgURI, aClassification) { | onMessageClassified: function(aMsgURI, aClassification) { // XXX todo // update status bar, or a progress dialog // running junk mail controls manually, on a large folder // can take a while, and the user doesn't know when we are done. dump(aMsgURI +... |
var db = aMsgHdr.folder.getMsgDatabase(msgWindow); db.setStringProperty(aMsgHdr.messageKey, "junkscore", score); db.setStringProperty(aMsgHdr.messageKey, "junkscoreorigin", "plugin"); saveJunkMsgForAction(aMsgHdr.folder.server, aMsgURI, aClassification); aNextFunction(); } | var score = aClassification == nsIJunkMailPlugin.JUNK ? "100" : "0"; var msgHdr = this.messages[aClassifiedMsgURI].hdr; var db = msgHdr.folder.getMsgDatabase(msgWindow); db.setStringProperty(msgHdr.messageKey, "junkscore", score); db.setStringProperty(msgHdr.messageKey, "junkscoreorigin", "plugin"); if (aClassific... | onMessageClassified: function(aMsgURI, aClassification) { // XXX todo // update status bar, or a progress dialog // running junk mail controls manually, on a large folder // can take a while, and the user doesn't know when we are done. dump(aMsgURI +... |
if (--this.messageCount == 0) { dump('[folder marking complete.]\n'); gJunkmailComponent.batchUpdate = false; } | dump(aMsgURL + ' is ' + (aClassification == nsIJunkMailPlugin.JUNK ? 'JUNK' : 'GOOD') + '\n'); var score = aClassification == nsIJunkMailPlugin.JUNK ? "100" : "0"; var db = aMsgHdr.folder.getMsgDatabase(msgWindow); db.setStringProperty(aMsgHdr.messageKey, "junkscore", score); db.setStringProperty(aMsgHdr.messageK... | onMessageClassified: function(aMsgURL, aClassification) { if (--this.messageCount == 0) { dump('[folder marking complete.]\n'); gJunkmailComponent.batchUpdate = false; } } |
dispatch("focus-input"); | function onMessageViewClick(e){ if ((e.which != 1) && (e.which != 2)) return true; var cx = getMessagesContext(null, e.target); var command; if (e.which == 2) command = client.prefs["messages.middleClick"]; else if (e.metaKey || e.altKey) command = client.prefs["messages.metaClick"];... | |
onModifyItem: function(aNewItem, aOldItem) { calendarWindow.currentView.refreshEvents(); }, | onModifyItem: function(aNewItem, aOldItem) { if (!this.mInBatch) calendarWindow.currentView.refreshEvents(); }, | onModifyItem: function(aNewItem, aOldItem) { calendarWindow.currentView.refreshEvents(); }, |
unifinderRefesh(); | if( !gICalLib.batchMode ) { unifinderRefesh(); } | onModifyItem : function( calendarEvent, originalEvent ) { unifinderRefesh(); }, |
if (!aNewItem instanceof Components.interfaces.calIEvent || | if (!(aNewItem instanceof Components.interfaces.calIEvent) || | onModifyItem: function(aNewItem, aOldItem) { if (!aNewItem instanceof Components.interfaces.calIEvent || this.mInBatch) { return; } this.removeItemFromTree(aOldItem); this.addItemToTree(aNewItem); }, |
toDoUnifinderRefesh(); | toDoUnifinderItemUpdate( calendarToDo ); | onModifyItem : function( calendarToDo, originalToDo ) { toDoUnifinderRefesh(); }, |
calendar.modifyItem(item, originalItem, null); | doTransaction('modify', item, item.calendar, originalItem, null); | var onModifyItem = function(item, calendar, originalItem) { // compare cal.uri because there may be multiple instances of // calICalendar or uri for the same spec, and those instances are // not ==. if (!originalItem.calendar || (originalItem.calendar.uri.equals(calendar.uri)... |
originalItem.calendar.deleteItem(item, null); calendar.addItem(item, null); | doTransaction('move', item, item.calendar, originalItem, null); | var onModifyItem = function(item, calendar, originalItem) { // compare cal.uri because there may be multiple instances of // calICalendar or uri for the same spec, and those instances are // not ==. if (!originalItem.calendar || (originalItem.calendar.uri.equals(calendar.uri)... |
sel.onchange = OnFieldSelect; | function OnMore(event) { var parentBox = document.getElementById("criteriabox"); parentBox.appendChild(createRow()); var sel = document.getElementById("zoober"); sel.onchange = OnFieldSelect;} | |
MoreFewerButton.setAttribute("value",GetString("More")); | MoreFewerButton.setAttribute("value",GetString("MoreAttributes")); | function onMoreFewer(){ if (SeeMore) {// This doesn't work very well - lots of layout bugs// MoreSection.setAttribute("style","visibility:collapse"); MoreSection.setAttribute("style","display: none"); MoreFewerButton.setAttribute("value",GetString("More")); MoreFewerButton.removeAttribute("more"); //Ad... |
dump("Set button text\n"); SeeMore = false; | function onMoreFewer(){ if (SeeMore) {// This doesn't work very well - lots of layout bugs// MoreSection.setAttribute("style","visibility:collapse"); MoreSection.setAttribute("style","display: none"); MoreFewerButton.setAttribute("value",GetString("More")); MoreFewerButton.removeAttribute("more"); //Ad... | |
MoreFewerButton.setAttribute("value",GetString("Fewer")); | MoreFewerButton.setAttribute("value",GetString("FewerAttributes")); | function onMoreFewer(){ if (SeeMore) {// This doesn't work very well - lots of layout bugs// MoreSection.setAttribute("style","visibility:collapse"); MoreSection.setAttribute("style","display: none"); MoreFewerButton.setAttribute("value",GetString("More")); MoreFewerButton.removeAttribute("more"); //Ad... |
SeeMore = true; | function onMoreFewer(){ if (SeeMore) {// This doesn't work very well - lots of layout bugs// MoreSection.setAttribute("style","visibility:collapse"); MoreSection.setAttribute("style","display: none"); MoreFewerButton.setAttribute("value",GetString("More")); MoreFewerButton.removeAttribute("more"); //Ad... | |
if (doSeeAll) | if (SeeMore) | function onMoreFewer(){ if (doSeeAll) { void(null); doSeeAll = false; dialog.MoreRow.style.visibility = "collapse"; // use "hidden" if still too many problems } else { doSeeAll = true; dialog.MoreRow.style.visibility = "inherit"; // w... |
void(null); doSeeAll = false; dialog.MoreRow.style.visibility = "collapse"; | SeeMore = false; dialog.MoreFewerButton.setAttribute("value",GetString("MoreAttributes")); dialog.MoreRow.style.visibility = "collapse"; dialog.MoreFewerButton.removeAttribute("more"); | function onMoreFewer(){ if (doSeeAll) { void(null); doSeeAll = false; dialog.MoreRow.style.visibility = "collapse"; // use "hidden" if still too many problems } else { doSeeAll = true; dialog.MoreRow.style.visibility = "inherit"; // w... |
doSeeAll = true; dialog.MoreRow.style.visibility = "inherit"; | SeeMore = true; dialog.MoreFewerButton.setAttribute("value",GetString("FewerAttributes")); dialog.MoreRow.style.visibility = "inherit"; dialog.MoreFewerButton.setAttribute("more","1"); | function onMoreFewer(){ if (doSeeAll) { void(null); doSeeAll = false; dialog.MoreRow.style.visibility = "collapse"; // use "hidden" if still too many problems } else { doSeeAll = true; dialog.MoreRow.style.visibility = "inherit"; // w... |
dialog.AdvancedEditButton2.removeAttribute("hidden"); | dialog.AdvancedEditButton2.removeAttribute("collapsed"); | function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("collapsed","true"); dialog.MoreFewerButton.setAttribute("more","0"); ... |
gMessageNotificationBar.setRemoteContentMsg(aMsgHdr); | onMsgHasRemoteContent: function(aMsgHdr) { }, | |
SetUpRemoteContentBar(aMsgHdr); | gMessageNotificationBar.setRemoteContentMsg(aMsgHdr); | onMsgHasRemoteContent: function(aMsgHdr) { SetUpRemoteContentBar(aMsgHdr); }, |
if (/type=x-message-display/.test(msgURI)) SetUpJunkBar(null); else { | if (!(/type=x-message-display/.test(msgURI))) | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that message ... |
SetUpJunkBar(msgHdr); } | gMessageNotificationBar.setJunkMsg(msgHdr); | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that message ... |
var markReadOnADelay = gPrefs.getBoolPref("mailnews.mark_message_read.delay"); | var markReadOnADelay = gPrefBranch.getBoolPref("mailnews.mark_message_read.delay"); | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; if (/type=x-message-display/.test(msgURI)) SetUpJunkBar(null); else { msgHdr = messenger.messageServiceFromURI(msgU... |
gMarkViewedMessageAsReadTimer = setTimeout(MarkCurrentMessageAsRead, gPrefs.getIntPref("mailnews.mark_message_read.delay.interval") * 1000); | gMarkViewedMessageAsReadTimer = setTimeout(MarkCurrentMessageAsRead, gPrefBranch.getIntPref("mailnews.mark_message_read.delay.interval") * 1000); | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; if (/type=x-message-display/.test(msgURI)) SetUpJunkBar(null); else { msgHdr = messenger.messageServiceFromURI(msgU... |
SetUpJunkBar(msgHdr); | gMessageNotificationBar.setJunkMsg(msgHdr); | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that mess... |
var folder = aUrl.folder; | try { var folder = aUrl.folder; } catch (ex) { return; } | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that message ... |
if (!folder || !msgURI) return; | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that message ... | |
function OnMsgLoaded(folder, msgURI) | function OnMsgLoaded(folder, aMessageURI) | function OnMsgLoaded(folder, msgURI){ var currentMsgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (!IsImapMessage(msgURI)) return; var imapServer = currentMsgFolder.server.QueryInterface(Components.interfaces.nsIImapIncomingServer); var storeReadMailInPFC = imapServer.storeRead... |
if (!IsImapMessage(msgURI)) | if (!IsImapMessage(aMessageURI)) | function OnMsgLoaded(folder, msgURI){ var currentMsgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (!IsImapMessage(msgURI)) return; var imapServer = currentMsgFolder.server.QueryInterface(Components.interfaces.nsIImapIncomingServer); var storeReadMailInPFC = imapServer.storeRead... |
var msgHdr = messenger.messageServiceFromURI(messageURI).messageURIToMsgHdr(messageURI); | function OnMsgLoaded(folder, msgURI){ var currentMsgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (!IsImapMessage(msgURI)) return; var imapServer = currentMsgFolder.server.QueryInterface(Components.interfaces.nsIImapIncomingServer); var storeReadMailInPFC = imapServer.storeRead... | |
msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI); | msgHdr = messenger.msgHdrFromURI(msgURI); | function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that message ... |
gMessageNotificationBar.setPhishingMsg(aUrl); | function OnMsgParsed(aUrl){ if ("onQuickSearchNewMsgLoaded" in this) onQuickSearchNewMsgLoaded();} | |
if (e.line.search(/\S/) == -1) return; | function onMultilineSend(e){ var multiline = document.getElementById("multiline-input"); e.line = multiline.value; onInputCompleteLine (e); multiline.value = "";} | |
if (network != client.networks[network.name]) | if (network != client.networks[network.canonicalName]) | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
dispatch("sync-fonts"); | network.dispatch("sync-font"); | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
dispatch("sync-motifs"); | network.dispatch("sync-motif"); | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
dispatch("sync-windows"); | network.dispatch("sync-window"); | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
dispatch("sync-headers"); | network.dispatch("sync-header"); | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
dispatch("sync-timestamps"); | network.dispatch("sync-timestamp"); | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
dispatch("sync-logs"); | network.dispatch("sync-log"); | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.name]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": n... |
calendar.addItem(event, null); | doTransaction('add', event, calendar, null, null); | var onNewEvent = function(event, calendar, originalEvent) { calendar.addItem(event, null); } |
if (args.refresh) refreshFilterList(); | if ("refresh" in args && args.refresh) refreshFilterList(); | function onNewFilter(){ var curFilterList = currentFilterList(); var args = {filterList: curFilterList }; window.openDialog("chrome://messenger/content/FilterEditor.xul", "FilterEditor", "chrome,modal,titlebar,resizable", args); if (args.refresh) refreshFilterList(); } |
if(emailAddress) { args.okCallback = function() {}; args.filterName = emailAddress; } | function onNewFilter(emailAddress){ var curFilterList = currentFilterList(); var args = {filterList: curFilterList}; if(emailAddress) { args.okCallback = function() {}; args.filterName = emailAddress; } window.openDialog("chrome://messenger/content/FilterEditor.xul", "FilterEditor", "chrome,modal,titleba... | |
UpdateMailSearch("new-search"); | gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForStopButton")); UpdateMailSearch("new-search"); | onNewSearch: function() { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForStopButton")); UpdateMailSearch("new-search"); gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(gSearchBundle.getString("searchingMessage")); gStatusBar.setAttribute("mode"... |
gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchingMessage")); | gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(Bundle.GetStringFromName("searchingMessage")); gStatusBar.setAttribute("mode","undetermined"); | onNewSearch: function() { gButton.setAttribute("value", Bundle.GetStringFromName("labelForStopButton")); if (gThreadTree) gThreadTree.clearItemSelection(); ThreadTreeUpdate_Search(); gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchingMessage")); } |
this.updateHelperAppPref(); | if ( this.mLauncher.MIMEInfo.MIMEType != "application/octet-stream" ) this.updateHelperAppPref(); | onOK: function() { // Verify typed app path, if necessary. if ( this.dialogElement( "openUsing" ).selected ) { var helperApp = this.helperAppChoice(); if ( !helperApp || !helperApp.exists() ) { // Show alert and try again. ... |
this.appLauncher.MIMEInfo.preferredAction = this.nsIHelperAppLauncher.saveToDisk; | onOK : function () { // Get boolean switch from checkbox. var dontAskNextTime = !document.getElementById( "alwaysAskMe" ).checked; if ( document.getElementById( "runApp" ).checked ) { // Update preferred action if the user chose an app. if ( this.userChoseApp ) { ... | |
for( var i = 0; i < hPrefWindow.okHandlers.length; i++ ) { hPrefWindow.okHandlers[i](); } | onOK: function () { for( var i = 0; i < hPrefWindow.okHandlers.length; i++ ) { hPrefWindow.okHandlers[i](); } var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag"); if( tag == "" ) ... | |
for( var i = 0; i < hPrefWindow.okHandlers.length; i++ ) { hPrefWindow.okHandlers[i](); } | onOK: function () { for( var i = 0; i < hPrefWindow.okHandlers.length; i++ ) { hPrefWindow.okHandlers[i](); } var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag"); if( tag == "" ) ... | |
if ( this.mLauncher.MIMEInfo.MIMEType != "application/octet-stream" ) this.updateHelperAppPref(); | onOK: function() { // Verify typed app path, if necessary. if ( this.dialogElement( "openUsing" ).selected ) { var helperApp = this.helperAppChoice(); if ( !helperApp || !helperApp.exists() ) { // Show alert and try again. ... | |
if ( this.dialogElement( "saveToDisk" ).selected ) this.mLauncher.saveToDisk( null, false ); else this.mLauncher.launchWithApplication( null, false ); | try { if ( this.dialogElement( "saveToDisk" ).selected ) this.mLauncher.saveToDisk( null, false ); else this.mLauncher.launchWithApplication( null, false ); if ( this.mLauncher.MIMEInfo.MIMEType != "application/octet-stream" ) this.updateHelperAppPref(); } catch(e) { } | onOK: function() { // Verify typed app path, if necessary. if ( this.dialogElement( "openUsing" ).selected ) { var helperApp = this.helperAppChoice(); if ( !helperApp || !helperApp.exists() ) { // Show alert and try again. ... |
if(gStartTime && gEndTime) { if(gStartTime.timezone == gEndTime.timezone) { | if(gStartTimezone && gEndTimezone) { if(gStartTimezone == gEndTimezone) { | args.onOk = function(datetime) { var equalTimezones = false; if(gStartTime && gEndTime) { if(gStartTime.timezone == gEndTime.timezone) { equalTimezones = true; } } gStartTime = datetime; if(equalTimezones) gEndTime = gEndTime.getInTimezone(datetime.timezone); updateDateTime(); ... |
gStartTime = datetime; | gStartTimezone = datetime.timezone; | args.onOk = function(datetime) { var equalTimezones = false; if(gStartTime && gEndTime) { if(gStartTime.timezone == gEndTime.timezone) { equalTimezones = true; } } gStartTime = datetime; if(equalTimezones) gEndTime = gEndTime.getInTimezone(datetime.timezone); updateDateTime(); ... |
gEndTime = gEndTime.getInTimezone(datetime.timezone); | gEndTimezone = datetime.timezone; | args.onOk = function(datetime) { var equalTimezones = false; if(gStartTime && gEndTime) { if(gStartTime.timezone == gEndTime.timezone) { equalTimezones = true; } } gStartTime = datetime; if(equalTimezones) gEndTime = gEndTime.getInTimezone(datetime.timezone); updateDateTime(); ... |
if ( this.dialogElement( "default" ).checked ) { var nsIMIMEInfo = Components.interfaces.nsIMIMEInfo; if ( this.mLauncher.MIMEInfo.preferredAction == nsIMIMEInfo.saveToDisk ) { this.mLauncher.saveToDisk( null, false ); } else { this.mLauncher.launchWithApplication( this.mLauncher.MIMEInfo.preferredApplicationHandler, ... | onOK: function() { // Do what the user asked... if ( this.dialogElement( "default" ).checked ) { var nsIMIMEInfo = Components.interfaces.nsIMIMEInfo; // Get action from MIMEInfo... if ( this.mLauncher.MIMEInfo.preferredAction == nsIMIMEInfo.saveToDisk ) { ... | |
this.mDialog.dialog = null; | this.processAlwaysAskState(); | onOK: function() { // Do what the user asked... if ( this.dialogElement( "default" ).checked ) { var nsIMIMEInfo = Components.interfaces.nsIMIMEInfo; // Get action from MIMEInfo... if ( this.mLauncher.MIMEInfo.preferredAction == nsIMIMEInfo.saveToDisk ) { ... |
return true; | if ( this.dialogElement( "openUsing" ).checked ) { if (this.chosenApp) this.mLauncher.launchWithApplication( this.chosenApp, false ); else this.mLauncher.launchWithApplication( null, false ); } else this.mLauncher.saveToDisk( null, false ); this.mDialog.dialog = null; return true; | onOK: function() { // Do what the user asked... if ( this.dialogElement( "default" ).checked ) { var nsIMIMEInfo = Components.interfaces.nsIMIMEInfo; // Get action from MIMEInfo... if ( this.mLauncher.MIMEInfo.preferredAction == nsIMIMEInfo.saveToDisk ) { ... |
hPrefWindow.wsm.savePageData( tag ); | hPrefWindow.wsm.savePageData( tag, null ); | onOK: function () { var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag"); if( tag == "" ) { tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("src"); } hPrefWindow.wsm.savePa... |
editorShell.InsertElement(tableElement, false); return true; | return false; | function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ... |
function onOK() { if (applyChanges()) { if (imageWasInserted) { appCore.setCaretAfterElement(imageElement); } window.close(); | function onOK() { imageElement.setAttribute("src",dialog.srcInput.value); imageElement.setAttribute("alt",dialog.altTextInput.value); if (insertNew) { dump("Src="+imageElement.getAttribute("src")+" Alt="+imageElement.getAttribute("alt")+"\n"); appCore.insertElement(imageElement, true); appCore.selectElement(imageEl... | function onOK() { if (applyChanges()) { if (imageWasInserted) { // We selected the object, undo it by // setting caret to just after the inserted element appCore.setCaretAfterElement(imageElement); } window.close(); }} |
if (imageWasInserted) { appCore.setCaretAfterElement(imageElement); } window.close(); | function onOK() { if (applyChanges()) { if (imageWasInserted) { // We selected the object, undo it by // setting caret to just after the inserted element appCore.setCaretAfterElement(imageElement); } window.close(); }} | |
if (!document.getElementById("folderbox").hasAttribute("hidden")) { | if (!document.getElementById("folderbox").hidden) { | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... |
if (!gFld_URL.value && !addingGroup()) return; | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... | |
if (addingGroup()) { | if (gCB_AddGroup.checked) { | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... |
} else { | } else if (gFld_URL.value) { | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... |
var len = gDeletedDirectories.length; for (var i=0; i< len; i++){ gPrefInt.DeleteBranch(gDeletedDirectories[i]); } | function onOK(){ window.close();} | |
if (gGroup && gGroup.checked) { | if (gArg.bBookmarkAllTabs) { | function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = gArg.feedURL; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = gArg.objGroup; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); BMDS.creat... |
if (prefs && dialog.BackgroundImage) { dump("Saving default background image in prefs\n"); prefs.SetCharPref("editor.default_background_image", dialog.BackgroundImage); } | function onOK(){ if (ValidateData()) { // Save image for future editing if (prefs && dialog.BackgroundImage) { dump("Saving default background image in prefs\n"); prefs.SetCharPref("editor.default_background_image", dialog.BackgroundImage); } // Copy attributes to element we are changing e... | |
rSource = BMDS.createGroup(gFld_Name.value); | rSource = BMDS.createFolder(gFld_Name.value); | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.