rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
function onLoadWithArgs() { if ( appCore ) { if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) appCore.stop(); appCore.loadInitialPage(); } else explicitURL = true; } | function onLoadWithArgs() { if ( appCore ) { if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified on ShowWindowWithArgs\n" ); appCore.loadInitialPage(); } else { dump( "onLoadWithArgs not... | function onLoadWithArgs() { // See if Startup has been run. if ( appCore ) { // See if load in progress (loading default page). if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) appCore.stop(); appCore.loadInitialPage(); } else explicitURL = true;} |
onLocationChange: function( aWebProgress, aRequest, aLocation ) { | onLocationChange: function( aWebProgress, aRequest, aLocation, aDownload ) { | onLocationChange: function( aWebProgress, aRequest, aLocation ) { }, |
UpdateBackForwardButtons(); } | UpdateBackForwardButtons(); }, | 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 isEnabled = (aURI && "schemeIs" in aURI && (aURI.schemeIs("http") || aURI.schemeIs("https") || aURI.schemeIs("ftp") || aURI.schemeIs("gopher"))); | var isEnabled = false; | onLocationChange: function(aProgress, aRequest, aURI) { var broadcaster = document.getElementById("reporterItemsBroadcaster"); // XXX The schemeIs check is only necessary until bug 169826 is fixed, // since we can end up with a dummy URI here var isEnabled = (aURI && "schemeIs" in aURI && ... |
switch (aURI.scheme) { case "http": case "https": case "ftp": case "gopher": isEnabled = true; } | onLocationChange: function(aProgress, aRequest, aURI) { var broadcaster = document.getElementById("reporterItemsBroadcaster"); // XXX The schemeIs check is only necessary until bug 169826 is fixed, // since we can end up with a dummy URI here var isEnabled = (aURI && "schemeIs" in aURI && ... | |
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation); | if (getBrowser().forceSyncURLBarUpdate) { gURLBar.value = ""; gURLBar.value = location; SetPageProxyState("valid", aLocation); } else { setTimeout(function(loc, aloc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid", aloc); }, 0, location, aLocation); } | 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... |
this.setOverLink("", null); | this.setOverLink(""); | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = ""; if (aLocation) { try { if (!gURIFixup) gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(Components.interfaces.nsIU... |
if (this.mimeTypeIsTextBased(content.document.contentType)) this.isImage.removeAttribute('disabled'); else this.isImage.setAttribute('disabled', 'true'); | 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... | |
this.urlBar.value = location; SetPageProxyState("valid"); | if (domWindow == domWindow.top) { this.urlBar.value = location; SetPageProxyState("valid"); } | onLocationChange : function(aWebProgress, aRequest, aLocation) { 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 changed since the user // searched... |
if (this.mimeTypeIsTextBased(content.document.contentType)) this.isImage.removeAttribute('disabled'); else this.isImage.setAttribute('disabled', 'true'); | onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // Disable menu entries for images, enable otherwise i... | |
if (this.userTyped) return; | onLocationChange : function(aWebProgress, aRequest, aLocation) { var location = aLocation.spec; domWindow = aWebProgress.DOMWindow; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value ha... | |
if (this.userTyped) return; | onLocationChange : function(aWebProgress, aRequest, aLocation) { if (this.userTyped) return; var location = aLocation.spec; domWindow = aWebProgress.DOMWindow; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should ... | |
domWindow = aWebProgress.DOMWindow; | onLocationChange : function(aWebProgress, aRequest, aLocation) { if (this.userTyped) return; var location = aLocation.spec; domWindow = aWebProgress.DOMWindow; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should ... | |
this.urlBar.value = location; | if (!this.userTyped.value) this.urlBar.value = location; | onLocationChange : function(aWebProgress, aRequest, aLocation) { if (this.userTyped) return; var location = aLocation.spec; domWindow = aWebProgress.DOMWindow; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should ... |
if (browser.userTypedClear) browser.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 = ""; ... | |
var prefElements = [ | var allPrefElements = [ | function onLockPreference(){ var isDownloadLocked = false; var isGetNewLocked = false; var initPrefString = "mail.server"; var finalPrefString; var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterf... |
disableIfLocked( prefElements ); | disableIfLocked( allPrefElements ); | function onLockPreference(){ var isDownloadLocked = false; var isGetNewLocked = false; var initPrefString = "mail.server"; var finalPrefString; var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterf... |
{ prefstring:"limit_message_size", id:"offline.notDownload"}, | { prefstring:"limit_offline_message_size", id:"offline.notDownload"}, | function onLockPreference(){ var isDownloadLocked = false; var isGetNewLocked = false; var initPrefString = "mail.server"; var finalPrefString; var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterf... |
var msgDS = folderDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; msgDS = accountManagerDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; | var msgDS; var viewDataSources = [accountManagerDataSource, folderDataSource, unreadFolderDataSource, favoriteFoldersDataSource, recentFoldersDataSource]; for (index in viewDataSources) { msgDS = viewDataSources[index].QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; } | function OnMailWindowUnload(){ RemoveMailOfflineObserver(); ClearPendingReadTimer(); var searchSession = GetSearchSession(); if (searchSession) { removeGlobalListeners(); if (gPreQuickSearchView) //close the cached pre quick search view gPreQuickSearchView.close(); } var dbview = GetDBView(); i... |
onMessageClassified: function(aMsgURI, aClassification) | 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 +... |
dump(aMsgURI + ' is ' + (aClassification == nsIJunkMailPlugin.JUNK ? 'JUNK' : 'GOOD') + '\n'); | 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 +... | |
saveJunkMsgForAction(aMsgHdr.folder.server, aMsgURI, aClassification); aNextFunction(); | if (aClassification == nsIJunkMailPlugin.JUNK) aJunkMsgIndices.push(aMsgIndex); if (aLastMessage) { gJunkmailComponent.endBatch(); performActionsOnJunkMsgs(aJunkMsgIndices); } | 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 (e.which != 1) | if ((e.which != 1) && (e.which != 2)) | function onMessageViewClick(e){ if (e.which != 1) return; var cx = getMessagesContext(null, e.target); var command; if (e.metaKey || e.altKey) command = client.prefs["messages.metaClick"]; else if (e.ctrlKey) command = client.prefs["messages.ctrlClick"]; else comman... |
if (e.metaKey || e.altKey) | if (e.which == 2) command = client.prefs["messages.middleClick"]; else if (e.metaKey || e.altKey) | function onMessageViewClick(e){ if (e.which != 1) return; var cx = getMessagesContext(null, e.target); var command; if (e.metaKey || e.altKey) command = client.prefs["messages.metaClick"]; else if (e.ctrlKey) command = client.prefs["messages.ctrlClick"]; else comman... |
unifinderRefesh(); | unifinderRefresh(); | onModifyItem : function( calendarEvent, originalEvent ) { if( !gICalLib.batchMode ) { unifinderRefesh(); } }, |
if (aNewItem.alarmTime) this.alarmService.addAlarm(aNewItem, false); | if (aNewItem.alarmOffset) this.alarmService.addAlarm(aNewItem); | onModifyItem: function(aNewItem, aOldItem) { this.alarmService.removeAlarm(aOldItem); if (aNewItem.alarmTime) this.alarmService.addAlarm(aNewItem, false); }, |
this.mCalendar.writeICS(); | if (!this.mInBatch) this.mCalendar.writeICS(); | onModifyItem: function(aNewItem, aOldItem) { this.mCalendar.writeICS(); }, |
if (!(aNewItem instanceof Components.interfaces.calIEvent) || this.mInBatch) { | if (this.mInBatch) { | onModifyItem: function(aNewItem, aOldItem) { if (!(aNewItem instanceof Components.interfaces.calIEvent) || this.mInBatch) { return; } this.removeItemFromTree(aOldItem); this.addItemToTree(aNewItem); }, |
this.removeItemFromTree(aOldItem); this.addItemToTree(aNewItem); | if (aOldItem instanceof Components.interfaces.calIEvent) { this.removeItemFromTree(aOldItem); } if (aNewItem instanceof Components.interfaces.calIEvent) { this.addItemToTree(aNewItem); } | onModifyItem: function(aNewItem, aOldItem) { if (!(aNewItem instanceof Components.interfaces.calIEvent) || this.mInBatch) { return; } this.removeItemFromTree(aOldItem); this.addItemToTree(aNewItem); }, |
if (aNewItem instanceof Components.interfaces.calITodo && | if ((aNewItem instanceof Components.interfaces.calITodo || aOldItem instanceof Components.interfaces.calITodo) && | onModifyItem: function(aNewItem, aOldItem) { if (aNewItem instanceof Components.interfaces.calITodo && !this.mInBatch) { toDoUnifinderRefresh(); } }, |
setTimeout( "selectSelectedEvents()", 1000 ); | onModifyItem : function( calendarEvent, originalEvent ) { if( !gICalLib.batchMode ) { unifinderRefesh(); setTimeout( "selectSelectedEvents()", 1000 ); } }, | |
selectEventInUnifinder( calendarEvent ); | onModifyItem : function( calendarEvent, originalEvent ) { unifinderRefesh(); }, | |
setTimeout( "selectSelectedEvents()", 1000 ); | onModifyItem : function( calendarEvent, originalEvent ) { if( !gICalLib.batchMode ) { unifinderRefesh(); } }, | |
function onMore(event, rowNumber) | function onMore(event) | function onMore(event, rowNumber){ createSearchRow(rowNumber, gSearchScope, null); gTotalSearchTerms++; if(gTotalSearchTerms==1) document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled"); ... |
createSearchRow(rowNumber, gSearchScope, null); | var rowIndex = gSearchTermList.getRowCount(); if (event) rowIndex = getSearchRowIndexForElement(event.target) + 1; createSearchRow(rowIndex, gSearchScope, null); | function onMore(event, rowNumber){ createSearchRow(rowNumber, gSearchScope, null); gTotalSearchTerms++; if(gTotalSearchTerms==1) document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled"); ... |
if(gTotalSearchTerms==1) document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled"); | updateRemoveRowButton(); | function onMore(event, rowNumber){ createSearchRow(rowNumber, gSearchScope, null); gTotalSearchTerms++; if(gTotalSearchTerms==1) document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled"); ... |
scrollToLastSearchTerm(gTotalSearchTerms == 1 ? 0 : rowNumber + 1); | gSearchTermList.ensureIndexIsVisible(rowIndex); | function onMore(event, rowNumber){ createSearchRow(rowNumber, gSearchScope, null); gTotalSearchTerms++; if(gTotalSearchTerms==1) document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled"); ... |
dialog.MoreFewerButton.setAttribute("value",GetString("MoreProperties")); | 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"); ... | |
dialog.AdvancedEditButton.removeAttribute("collapsed"); | dialog.AdvancedEditButton.setAttribute("collapsed","false"); | 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"); ... |
window.sizeToContent(); | dialog.srcInput.focus(); | 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"); ... |
dialog.MoreSection.removeAttribute("collapsed"); | dialog.MoreSection.setAttribute("collapsed","false"); dialog.MoreFewerButton.setAttribute("value", ""); dialog.MoreFewerButton.setAttribute("value", GetString("FewerProperties")); | 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"); ... |
dialog.MoreFewerButton.setAttribute("value",GetString("FewerProperties")); | 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"); ... | |
dialog.AdvancedEditButton2.removeAttribute("collapsed"); window.sizeToContent(); InitDialog(); if (dialog.isCustomSize) { dialog.customsizeRadio.checked = true; dialog.originalsizeRadio.checked = false; } else { dialog.customsizeRadio.checked = false; dialog.originalsizeRadio.checked = true; } if (dialog.doConstrai... | dialog.AdvancedEditButton2.setAttribute("collapsed","false"); | 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"); ... |
window.sizeToContent(); | 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"); ... | |
} | function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("style","display: none"); // Show the "Advanced Edit" button on same li... | |
if (view.pending) { clearTimeout(view.pending); delete view.pending; | if (this.pending) { clearTimeout(this.pending); delete this.pending; | onMouseOut: function(event) { if (view.pending) { clearTimeout(view.pending); delete view.pending; return; } if (!event.target.details) return; }, |
view.pending = setTimeout(function(){view.showDetail(_e);}, 500); | this.pending = setTimeout(function(){searchView.showDetail(_e);}, 500); | onMouseOver: function(event) { if (!event.target.details) return; var _e = { details: event.target.details, clientX: event.clientX, clientY: event.clientY }; view.pending = setTimeout(function(){view.showDetail(_e);}, 500); }, |
var item = occurrence.item; var start = occurrence.occurrenceStartDate.jsDate; var endEx = occurrence.occurrenceEndDate.jsDate; | var item = occurrence; var start = occurrence.startDate.jsDate; var endEx = occurrence.endDate.jsDate; | function onMouseOverGridOccurrence( occurrenceBoxMouseEvent ){ if ("occurrence" in occurrenceBoxMouseEvent.currentTarget) { // occurrence of repeating event or todo var occurrence = occurrenceBoxMouseEvent.currentTarget.occurrence; var item = occurrence.item; var start = occurrence.occurrenceStartDate.jsDa... |
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(msgURI).... |
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(msgURI).... |
var msgHdr = messenger.messageServiceFromURI(aMessageURI).messageURIToMsgHdr(aMessageURI); SetUpJunkBar(msgHdr); | if (/type=x-message-display/.test(aMessageURI)) SetUpJunkBar(null); else { var msgHdr = messenger.messageServiceFromURI(aMessageURI).messageURIToMsgHdr(aMessageURI); SetUpJunkBar(msgHdr); } | function OnMsgLoaded(folder, aMessageURI){ var msgHdr = messenger.messageServiceFromURI(aMessageURI).messageURIToMsgHdr(aMessageURI); SetUpJunkBar(msgHdr); var currentMsgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (!IsImapMessage(aMessageURI)) return; var imapServer = curr... |
} | function OnMsgLoaded(folder, aMessageURI){ var msgHdr = messenger.messageServiceFromURI(aMessageURI).messageURIToMsgHdr(aMessageURI); SetUpJunkBar(msgHdr); var currentMsgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); if (!IsImapMessage(aMessageURI)) return; var imapServer = curr... | |
var treeSelection = GetThreadTree().view.selection; if (treeSelection.currentIndex != gSelectedIndexWhenDeleting) | var wintype = document.documentElement.getAttribute('windowtype'); if (wintype == "mail:messageWindow" || GetThreadTree().view.selection.currentIndex != gSelectedIndexWhenDeleting) | 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 wintype = document.documentElement.getAttribute('windowtype'); | 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... | |
if (gFindBar.isFindBarVisible()) gFindBar.find(); | var findBar = document.getElementById("FindToolbar"); if (!findBar.hidden) findBar.onFindAgainCommand(false); | function OnMsgParsed(aUrl){ // browser doesn't do this, but I thought it could be a useful thing to test out... // If the find bar is visible and we just loaded a new message, re-run // the find command. This means the new message will get highlighted and // we'll scroll to the first word in the message that match... |
break; case "proxy.typeOverride": network.PROXY_TYPE_OVERRIDE = newValue; | function onNetworkPrefChanged(network, prefName, newValue, oldValue){ if (network != client.networks[network.canonicalName]) { /* this is a stale observer, remove it */ network.prefManager.destroy(); return; } network.updateHeader(); switch (prefName) { case "nickname": ... | |
gStatusFeedback.showProgress(0); | gStatusFeedback._startMeteors(); | onNewSearch: function() { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForStopButton")); gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForStopButton")); UpdateMailSearch("new-search"); gStatusFeedback.showProgress(0); gStatusFeedb... |
gStatusBar.setAttribute("mode","undetermined"); | onNewSearch: function() { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForStopButton")); gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForStopButton")); UpdateMailSearch("new-search"); gStatusFeedback.showProgress(0); gStatusFeedb... | |
gButton.setAttribute("value", Bundle.GetStringFromName("labelForStopButton")); | gButton.setAttribute("value", gSearchBundle.getString("labelForStopButton")); | onNewSearch: function() { gButton.setAttribute("value", Bundle.GetStringFromName("labelForStopButton")); if (gThreadTree) gThreadTree.clearItemSelection(); ThreadTreeUpdate_Search(); gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(Bundle.GetStringF... |
gStatusFeedback.showStatusString(Bundle.GetStringFromName("searchingMessage")); | gStatusFeedback.showStatusString(gSearchBundle.getString("searchingMessage")); | onNewSearch: function() { gButton.setAttribute("value", Bundle.GetStringFromName("labelForStopButton")); if (gThreadTree) gThreadTree.clearItemSelection(); ThreadTreeUpdate_Search(); gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(Bundle.GetStringF... |
gButton.setAttribute("value", Bundle.GetStringFromName("labelForStopButton")); | onNewSearch: function() { gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchingMessage")); } | |
saveData(); var nextPageTag = testMap[currentPageTag].next; var url = getUrlFromTag(nextPageTag); displayPage(url); | if (currentPageTag != "tab4") { saveData(); var nextPageTag = testMap[currentPageTag].next; var url = getUrlFromTag(nextPageTag); displayPage(url); } | function onNext(){ dump("***********onNext\n"); saveData(); var nextPageTag = testMap[currentPageTag].next; var url = getUrlFromTag(nextPageTag); displayPage(url);} |
{ | try { | onOK: function () { var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag"); if( tag == "" ) { tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("src"); } hPrefWindow.wsm.savePa... |
} catch (e) { debug("some silly ok handler /*"+hPrefWindow.okHandlers[i]+"*/ failed: "+ e); | onOK: function () { var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag"); if( tag == "" ) { tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("src"); } hPrefWindow.wsm.savePa... | |
if (rv) | if (rv) { | function onOK(){ var ret = nsIFilePicker.returnCancel; var isDir = false; var isFile = false; var input = textInput.value; if (input[0] == '~') // XXX XP? input = homeDir.path+ input.substring(1); var file = sfile.clone().QueryInterface(nsILocalFile); if (!file) return false; /* XXX we need an XP way to ... |
else | retvals.directory = file.parent.path; } else { | function onOK(){ var ret = nsIFilePicker.returnCancel; var isDir = false; var isFile = false; var input = textInput.value; if (input[0] == '~') // XXX XP? input = homeDir.path+ input.substring(1); var file = sfile.clone().QueryInterface(nsILocalFile); if (!file) return false; /* XXX we need an XP way to ... |
retvals.directory = file.parent.path; } else if (!file.exists()) { ret = nsIFilePicker.returnOK; retvals.directory = file.parent.path; | } } else if (isDir) { if (!sfile.equals(file)) { gotoDirectory(file); } textInput.value = ""; doEnabling(); ret = nsIFilePicker.returnCancel; } else { var parent = file.parent; if (parent.exists() && parent.isDirectory()) { ret = nsIFilePicker.returnOK; retvals.directory = parent.path; } else { ret = nsIFilePicker.re... | function onOK(){ var ret = nsIFilePicker.returnCancel; var isDir = false; var isFile = false; var input = textInput.value; if (input[0] == '~') // XXX XP? input = homeDir.path+ input.substring(1); var file = sfile.clone().QueryInterface(nsILocalFile); if (!file) return false; /* XXX we need an XP way to ... |
var replace = promptService.Confirm(window, titleMsg, dialogMsg); | var replace = promptService.confirm(window, titleMsg, dialogMsg); | function onOK(){ const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(); if (fileLocator) fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile); var file... |
if (param) param.SetInt(0, 0 ); | if (gParam) gParam.SetInt(0, 0 ); | function onOk() { // set the okay button in the param block if (param) param.SetInt(0, 0 ); window.close();} |
promptService.Alert(window, errorTitle, errorMessage); | promptService.alert(window, errorTitle, errorMessage); | function onOK(){ var ret = nsIFilePicker.returnCancel; var isDir = false; var isFile = false; var input = textInput.value; if (input[0] == '~') // XXX XP? input = homeDir.unicodePath + input.substring(1); var file = sfile.clone().QueryInterface(nsILocalFile); if (!file) return false; /* XXX we need an XP... |
editorShell.BeginBatchChanges(); | href = TrimString(dialog.hrefInput.value); if (href.length > 0) { editorShell.BeginBatchChanges(); | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true anchorElement.setAttribute("href",dialog.hrefInput.value); ... |
anchorElement.setAttribute("href",dialog.hrefInput.value); | anchorElement.setAttribute("href",href); | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true anchorElement.setAttribute("href",dialog.hrefInput.value); ... |
if (insertNew) { dump("Creating text node\n"); textNode = editorShell.editorDocument.createTextNode(dialog.linkTextInput.value); if (textNode) { anchorElement.appendChild(textNode); | if (insertNew) { dump("Creating text node\n"); textNode = editorShell.editorDocument.createTextNode(dialog.linkTextInput.value); if (textNode) { anchorElement.appendChild(textNode); } dump("Inserting\n"); editorShell.InsertElement(anchorElement, false); } else if (insertLinkAroundSelection) { dump("Setting link aroun... | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true anchorElement.setAttribute("href",dialog.hrefInput.value); ... |
dump("Inserting\n"); editorShell.InsertElement(anchorElement, false); } else if (insertLinkAroundSelection) { dump("Setting link around selected text\n"); editorShell.InsertLinkAroundSelection(anchorElement); | editorShell.EndBatchChanges(); } else if (!insertNew) { | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true anchorElement.setAttribute("href",dialog.hrefInput.value); ... |
editorShell.EndBatchChanges(); | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if insertNew is true anchorElement.setAttribute("href",dialog.hrefInput.value); ... | |
if (gCanBypassDialogMode) { var checkbox = document.getElementById("dontaskagain"); const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID); try { kPrefSvc.SetBoolPref("browser.bookmarks.add_without_... | function onOK(){ // In Select Folder Mode, do nothing but tell our caller what // folder was selected. if (window.arguments[4] == "selectFolder") window.arguments[5].selectedFolder = gCreateInFolder; else { // Otherwise add a bookmark to the selected folder. const kBMDS = kRDF.GetDataSource("rdf:bookmark... | |
if (deletePlaceholder && tableElement && tableElement.nextSibling) { editorShell.DeleteElement(tableElement.nextSibling); } editorShell.EndBatchChanges(); | function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table // AFTER BUG 30378 IS FIXED, DON'T INSERT TBODY! var tableBody = editorShell.CreateElementWithDefaults("tbody"); if (tableBody) { tableElement.append... | |
} else if (dialog.a3Radio.checked) { print_paper_size = gPrintOptInterface.kA3PaperSize; | function onOK(){ var print_paper_size = 0; if (printService) { var print_howToEnableUI = gPrintOptInterface.kFrameEnableNone; printService.printToFile = dialog.fileRadio.checked; printService.printReversed = dialog.lastRadio.checked; printService.printInColor = dialog.colorRadio.checked; print_howTo... | |
textNode = editorShell.editorDocument.createTextNode(dialog.linkTextInput.value); | newText = TrimString(dialog.linkTextInput.value); if (newText.length == 0) { ShowInputErrorMessage("You must enter some text for this link."); dialog.linkTextInput.focus(); return; } textNode = editorShell.editorDocument.createTextNode(newText); | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES href = TrimString(dialog.hrefInput.value); if (href.length > 0) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if ins... |
editorShell.RemoveTextProperty("a", ""); | function onOK(){ // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES href = TrimString(dialog.hrefInput.value); if (href.length > 0) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Set the HREF directly on the editor document's anchor node // or on the newly-created node if ins... | |
var shell = getShellService(); if (shell && "shouldBeDefaultBrowser" in parent && parent.shouldBeDefautBrowser) shell.setDefaultBrowser(true, false); | function onOK() { if (!('homepage' in parent)) return; // Replace pipes with commas to look nicer. parent.homepage = parent.homepage.replace(/\|/g,', '); var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(C... | |
var auth = document.getElementById("login").checked; if (auth && (auth != pref_string_content)) { gPrefInt.SetBoolPref(pref_string_title, true); } else { try{ gPrefInt.ClearUserPref(pref_string_title); } catch(ex){} } | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... | |
prefs.SetIntPref("print.print_margin_top", dialog.topInput.value * 1000); prefs.SetIntPref("print.print_margin_left", dialog.leftInput.value * 1000); prefs.SetIntPref("print.print_margin_bottom", dialog.bottomInput.value *1000); prefs.SetIntPref("print.print_margin_right", dialog.rightInput.value * 1000); | prefs.SetIntPref("print.print_margin_top_js", dialog.topInput.value * 1000); prefs.SetIntPref("print.print_margin_left_js", dialog.leftInput.value * 1000); prefs.SetIntPref("print.print_margin_bottom_js", dialog.bottomInput.value *1000); prefs.SetIntPref("print.print_margin_right_js", dialog.rightInput.value * 1000); | function onOK(){ var print_paper_size = 0; if (prefs) { if (dialog.fileRadio.checked == true) { prefs.SetBoolPref("print.print_tofile", true); } else { prefs.SetBoolPref("print.print_tofile", false); } if (dialog.lastRadio.checked == true) { prefs.SetBoolPref("print.print_reversed", true); ... |
prefs.SetBoolPref("print.print_allpagesrange", dialog.allpagesRadio.checked); prefs.SetBoolPref("print.print_pagerange", dialog.rangeRadio.checked); prefs.SetBoolPref("print.print_selectionrange", dialog.selectionRadio.checked); prefs.SetIntPref("print.print_frompage", dialog.frompageInput.value); prefs.SetIntPref("pri... | function onOK(){ var print_paper_size = 0; if (prefs) { if (dialog.fileRadio.checked == true) { prefs.SetBoolPref("print.print_tofile", true); } else { prefs.SetBoolPref("print.print_tofile", false); } if (dialog.lastRadio.checked == true) { prefs.SetBoolPref("print.print_reversed", true); ... | |
rv = window.confirm(file.unicodePath + " " + bundle.GetStringFromName("confirmFileReplacing")); | var message = gFilePickerBundle.getFormattedString("confirmFileReplacing", [file.unicodePath]); var rv = window.confirm(message); | function onOK(){ var ret = nsIFilePicker.returnCancel; var isDir = false; var isFile = false; var input = textInput.value; if (input[0] == '~') // XXX XP? input = homeDir.unicodePath + input.substring(1); var file = sfile.clone().QueryInterface(nsILocalFile); if (!file) return false; /* XXX we need an XP... |
var oldParent = parent; while (!parent.exists()) { oldParent = parent; parent = parent.parent; } var errorTitle = gFilePickerBundle.getFormattedString("errorSavingFileTitle", [file.unicodePath]); var errorMessage; if (parent.isFile()) { errorMessage = gFilePickerBundle.getFormattedString("saveParentIsFileMessage", [par... | function onOK(){ var ret = nsIFilePicker.returnCancel; var isDir = false; var isFile = false; var input = textInput.value; if (input[0] == '~') // XXX XP? input = homeDir.unicodePath + input.substring(1); var file = sfile.clone().QueryInterface(nsILocalFile); if (!file) return false; /* XXX we need an XP... | |
if (HeadingsIndex > -1 && href[0] == "#") { | if (href[0] == "#") { | function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ... |
var index = GetExistingAnchorIndex(name); dump("HeadingsIndex="+HeadingsIndex+" SelectIndex="+index+"\n"); if (index > HeadingsIndex) { | var index = GetExistingHeadingIndex(name); dump("Heading name="+name+" Index="+index+"\n"); if (index >= 0) { | function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ... |
var headNode = HNodeList[index - (HeadingsIndex+1)]; | var headNode = HNodeArray[index]; | function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ... |
editorShell.InsertElement(anchorNode, headNode.parentNode, 0); | editorShell.InsertElement(anchorNode, headNode, 0); | function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ... |
} else { dump("HREF is a named anchor but is not in the list!\n"); | } else { dump("HREF is a heading but is not in the list!\n"); | function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ... |
if (!ValidateData()) return; | if (!ValidateData()) return false; | function onOK(){ if (!ValidateData()) return; // Set return values and save in persistent color attributes if (TextType) { window.arguments[1].TextColor = color; if (color.length > 0) dialog.LastPickedColor.setAttribute("LastTextColor", color); } else { window.arguments[1].BackgroundColor = color; ... |
handlerInfo.appDisplayName = file.unicodeLeafName; | handlerInfo.appDisplayName = file.leafName; | function onOK(){ // Make sure all fields are filled in OK. if ( !checkInput() ) { return false; } const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interf... |
var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL); if (file_url) file_url.file = file; gDS = gRDF.GetDataSource(file_url.spec); | gDS = gRDF.GetDataSource(file.URL); | function onOK(){ const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(); if (fileLocator) fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile); var file... |
if (!ListElement || MixedListSelection || ListType != originalListType) | if (ListElement) dialog.RadioGroup.setAttribute("index", dialog.ChangeAllRadio.checked ? "0" : "1"); var changeList; if (ListElement && dialog.ChangeAllRadio.checked) { editorShell.SelectElement(ListElement); changeList = true; } else changeList = MixedListSelection || ListType != originalListType; if (changeList) | function onOK(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // We may need to create new list element(s) // or change to a different list type. if (!ListElement || MixedListSelection || ListType != originalListType) { editorShell.MakeOrChangeL... |
editorShell.BeginBatchChanges(); | function onOK(){ if (ValidateData()) { editorShell.BeginBatchChanges(); // Save only if advanced "head editing" region is open? if (SeeMore) { // Delete existing children of HEAD // Note that we must use editorShell method so this is undoable var children = dialog.HeadSrcInput.childNo... | |
var children = dialog.HeadSrcInput.childNodes; if (children) { for(i=0; i < children.length; i++) editorShell.DeleteElement(children.item(i)); } | while(headNode.firstChild) headNode.removeChild(headNode.firstChild); | function onOK(){ if (ValidateData()) { editorShell.BeginBatchChanges(); // Save only if advanced "head editing" region is open? if (SeeMore) { // Delete existing children of HEAD // Note that we must use editorShell method so this is undoable var children = dialog.HeadSrcInput.childNo... |
var headSrcString = dialog.HeadSrcInput.value; if (headSrcString.length > 0) editorShell.ReplaceHeadContentsWithHTML(headSrcString); | if (dialog.HeadSrcInput.value.length > 0) editorShell.ReplaceHeadContentsWithHTML(dialog.HeadSrcInput.value); | function onOK(){ if (ValidateData()) { editorShell.BeginBatchChanges(); // Save only if advanced "head editing" region is open? if (SeeMore) { // Delete existing children of HEAD // Note that we must use editorShell method so this is undoable var children = dialog.HeadSrcInput.childNo... |
editorShell.EndBatchChanges(); | function onOK(){ if (ValidateData()) { editorShell.BeginBatchChanges(); // Save only if advanced "head editing" region is open? if (SeeMore) { // Delete existing children of HEAD // Note that we must use editorShell method so this is undoable var children = dialog.HeadSrcInput.childNo... | |
for (var i=0; i< len; i++){ gPrefInt.DeleteBranch(gDeletedDirectories[i]); | if (len) { try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex) { directoryServer = null; } var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getService(Components.interfaces.nsIMsgAccountManager); if (am) { var allIdentities = am.allIdentities; v... | function onOK(){ var len = gDeletedDirectories.length; for (var i=0; i< len; i++){ gPrefInt.DeleteBranch(gDeletedDirectories[i]); } window.close();} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.