rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
gServerType = getAccountValue(account, accountValues, "server", "type"); | gServerType = getAccountValue(account, accountValues, "server", "type", null, false); | function onPreInit(account, accountValues){ gServerType = getAccountValue(account, accountValues, "server", "type"); hideShowControls(gServerType); gIncomingServer= account.incomingServer; gIncomingServer.type = gServerType; var titleStringID; // 10 is OFFLINE_SUPPORT_LEVEL_REGULAR, see nsIMsgIncoming... |
parent.getAccountValue(account, accountValues, "server", "isSecure", null, false); | function onPreInit(account, accountValues){ var type = parent.getAccountValue(account, accountValues, "server", "type", null, false); gRedirectorType = parent.getAccountValue(account, accountValues, "server", "redirectorType", null, false); hideShowControls(type); if(!(account.incomingServer.isSecureServer)... | |
ioService.manageOfflineStatus = false; | ioService.manageOfflineStatus = manageOfflineStatus; | onProfileStartup: function() { debug("onProfileStartup"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService2); if (gStartingUp) { gStartingUp = false; // if checked, the "work offline" checkbox ove... |
ioService.manageOfflineStatus = false; ioService.offline = !prefs.getBoolPref("network.online"); | var wasOffline = !prefs.getBoolPref("network.online"); ioService.manageOfflineStatus = manageOfflineStatus && !wasOffline; ioService.offline = wasOffline; | onProfileStartup: function() { debug("onProfileStartup"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService2); if (gStartingUp) { gStartingUp = false; // if checked, the "work offline" checkbox ove... |
ioService.manageOfflineStatus = false; | ioService.manageOfflineStatus = manageOfflineStatus && result != 1; | onProfileStartup: function() { debug("onProfileStartup"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService2); if (gStartingUp) { gStartingUp = false; // if checked, the "work offline" checkbox ove... |
var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); | onProfileStartup: function(aProfileName) { debug("onProfileStartup"); var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); gOfflineStartupMode = prefs.getIntPref(kOfflineStartupPref); if (gOfflineStartupMode == kRememberLastSt... | |
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); ioService.offline = offline; | ioService.offline = offline; | onProfileStartup: function(aProfileName) { debug("onProfileStartup"); var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); gOfflineStartupMode = prefs.getIntPref(kOfflineStartupPref); if (gOfflineStartupMode == kRememberLastSt... |
{ var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); | onProfileStartup: function(aProfileName) { debug("onProfileStartup"); var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); gOfflineStartupMode = prefs.getIntPref(kOfflineStartupPref); if (gOfflineStartupMode == kRememberLastSt... | |
} | onProfileStartup: function(aProfileName) { debug("onProfileStartup"); var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); gOfflineStartupMode = prefs.getIntPref(kOfflineStartupPref); if (gOfflineStartupMode == kRememberLastSt... | |
onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", " " + request.URI.spec + ", " + progress + "/" + maxProgress); var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name]); var status = t... | onProgress: function(request, position, totalSize) { var pm = document.getElementById("checkingProgress"); checkingProgress.setAttribute("mode", "normal"); checkingProgress.setAttribute("value", Math.floor(100 * (position/totalSize))); }, | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", " " + request.URI.spec + ", " + progress + "/" + maxProgress); var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name... |
LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + | LOG("UI:DownloadingPage.onProgress", " " + request.URI.spec + ", " + progress + | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress); var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro... |
p.setProperty("progress", Math.round(100 * (progress/maxProgress))); p.setProperty("status", this.statusFormatter.formatStatus(progress, maxProgress)); | p.setProperty("progress", progress); p.setProperty("status", status); if (this._paused) return; | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress); var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro... |
this._downloadProgress.mode = "normal"; this._downloadProgress.value = parseInt(p.getProperty("progress")); | if (!(this._downloadThrobber.hasAttribute("state") && (this._downloadThrobber.getAttribute("state") == "loading"))) this._downloadThrobber.setAttribute("state", "loading"); if (this._downloadProgress.mode != "normal") this._downloadProgress.mode = "normal"; this._downloadProgress.value = progress; | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress); var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro... |
var name = gUpdates.strings.getFormattedString("downloadingPrefix", [gUpdates.update.name]); | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress); var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro... | |
var status = p.getProperty("status"); if (status) this._setStatus(status); | this._setStatus(status); | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress); var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro... |
p.QueryInterface(Components.interfaces.nsIWritablePropertyBag); | onProgress: function(request, context, progress, maxProgress) { request.QueryInterface(nsIIncrementalDownload); LOG("UI:DownloadingPage.onProgress", request.URI.spec + ", " + progress + "/" + maxProgress); var p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro... | |
var feed = gFzFeedCache.getFeedWithUrl(url); | var feed = FeedCache.getFeed(url); | Feed.onProgress = function(event) { var request = event.target; var url = request.channel.originalURI.spec; var feed = gFzFeedCache.getFeedWithUrl(url); if (feed.downloadCallback) feed.downloadCallback.onProgress(feed, event.position, event.totalSize);} |
var msg = "Document: Done (" + elapsed + " secs)"; | var msg = bundle.GetStringFromName("nv_done") + " (" + elapsed + " secs)"; | function onProgress() { var throbber = document.getElementById("Browser:Throbber"); var meter = document.getElementById("Browser:LoadingProgress"); if ( throbber && meter ) { var busy = throbber.getAttribute("busy"); var wasBusy = meter.getAttrib... |
mode = "undetermined"; if ( !startTime ) { startTime = (new Date()).getTime(); } } else { mode = "normal"; } meter.setAttribute("mode",mode); if ( mode == "normal" ) { | if ( wasBusy == "false" ) { startTime = (new Date()).getTime(); meter.setAttribute("mode","undetermined"); } } else if ( busy == "false" && wasBusy == "true" ) { | function onProgress() { var throbber = document.getElementById("Browser:Throbber"); var meter = document.getElementById("Browser:LoadingProgress"); if ( throbber && meter ) { var busy = throbber.getAttribute("busy"); if ( busy == "true" ) { ... |
startTime = 0; | meter.setAttribute("mode","normal"); | function onProgress() { var throbber = document.getElementById("Browser:Throbber"); var meter = document.getElementById("Browser:LoadingProgress"); if ( throbber && meter ) { var busy = throbber.getAttribute("busy"); if ( busy == "true" ) { ... |
percent = Math.round( (bytes*100)/max ); | percent = parseInt( (bytes*100)/max + .5 ); if ( percent > 100 ) { percent = 100; } | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
var status = "( "; status += Math.round( bytes/1024 ); status += "K of "; | var status = getString( "progressMsg" ); status = replaceInsert( status, 1, parseInt( bytes/1024 + .5 ) ); | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
status += Math.round( max/1024 ); status += "K bytes "; | status = replaceInsert( status, 2, parseInt( max/1024 + .5 ) ); | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
status += "??.?K bytes "; | status = replaceInsert( status, 2, "??" ); | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
status += "at "; status += Math.round( (rate*10)/1024 ) / 10; status += "K bytes/sec )"; | var kRate = rate / 1024; kRate = parseInt( kRate * 10 + .5 ); if ( kRate != priorRate ) { if ( rateChanges++ == rateChangeLimit ) { priorRate = kRate; rateChanges = 0; } else { kRate = priorRate; } } else { rateChanges = 0; } var fraction = kRate % 10; kRate = parseInt( ( kRate - fraction ) / 10 ); status = replac... | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
status += ")"; | status = replaceInsert( status, 3, "??.?" ); | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
dialog.progressPercent.childNodes[0].nodeValue = percent + "%"; | var percentMsg = getString( "percentMsg" ); percentMsg = replaceInsert( percentMsg, 1, percent ); dialog.progressPercent.childNodes[0].nodeValue = percentMsg; | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
var rem = Math.round( ( max - bytes ) / rate ); | var rem = ( max - bytes ) / rate; rem = parseInt( rem + .5 ); | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
dialog.timeLeft.childNodes[0].nodeValue = "??:??:??"; | dialog.timeLeft.childNodes[0].nodeValue = getString( "unknownTime" ); | function onProgress( bytes, max ) { // Check for first time. if ( !started ) { // Initialize download start time. started = true; startTime = ( new Date() ).getTime(); } // Get current time. var now = ( new Date() ).getTime(); // If interval hasn't elapsed, ignore it. if ( now ... |
this.elapsed = now - (aDownload.startTime / 1000); var rate; if (this.elapsed) rate = (aCurTotalProgress * 1024) / this.elapsed; else rate = 0; | onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress, aDownload) { var overallProgress = aCurTotalProgress; // Get current time. var now = (new Date()).getTime(); // If interval hasn't elapsed, ignore ... | |
rate = (aCurTotalProgress * 1000) / this.elapsed; | rate = (aCurTotalProgress * 1024) / this.elapsed; | onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress, aDownload) { var overallProgress = aCurTotalProgress; // Get current time. var now = (new Date()).getTime(); // If interval hasn't elapsed, ignore ... |
SetTitle(docTitleStr); | onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (progressParams) { var docTitleStr = progressParams.docTitle; if (docTitleStr != docTitle) { SetTitle(docTitleStr); docTitle = docTitleStr; ... | |
dialog.status.value = docURLStr; | onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (progressParams) { var docTitleStr = progressParams.docTitle; if (docTitleStr != docTitle) { SetTitle(docTitleStr); docTitle = docTitleStr; ... | |
if (docTitle == "") { dialog.status.value = docURLStr; } | onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (progressParams) { var docTitleStr = progressParams.docTitle; if (docTitleStr != docTitle) { SetTitle(docTitleStr); docTitle = docTitleStr; ... | |
document.getElementById("statusbar-text").label= "dbg:onProgressChange " + aCurTotalProgress + " " + aMaxTotalProgress; | onProgressChange : function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { document.getElementById("statusbar-text").label= "dbg:onProgressChange " + aCurTotalProgress + " " + aMaxTotalProgress; var percentage = parseInt((aCurTotalProgress/aMaxTotalProgress)... | |
debug("Item added successfully\n"); | LOG("Item added successfully"); | function onPutComplete(aStatusCode, aResource, aOperation, aClosure) { // 201 = HTTP "Created" // if (aStatusCode == 201) { debug("Item added successfully\n"); var retVal = Components.results.NS_OK; } else if (aStatusCode == 200) { ... |
debug("200 received from clients, until we have etags working" | LOG("200 received from clients, until we have etags working" | function onPutComplete(aStatusCode, aResource, aOperation, aClosure) { // 201 = HTTP "Created" // if (aStatusCode == 201) { debug("Item added successfully\n"); var retVal = Components.results.NS_OK; } else if (aStatusCode == 200) { ... |
+ " mean server malfunction/n"); | + " mean server malfunction"); | function onPutComplete(aStatusCode, aResource, aOperation, aClosure) { // 201 = HTTP "Created" // if (aStatusCode == 201) { debug("Item added successfully\n"); var retVal = Components.results.NS_OK; } else if (aStatusCode == 200) { ... |
debug("Error adding item: " + aStatusCode + "\n"); | LOG("Error adding item: " + aStatusCode); | function onPutComplete(aStatusCode, aResource, aOperation, aClosure) { // 201 = HTTP "Created" // if (aStatusCode == 201) { debug("Item added successfully\n"); var retVal = Components.results.NS_OK; } else if (aStatusCode == 200) { ... |
debug("addItem's onOperationComplete threw an exception " + ex + "; ignoring\n"); | LOG("addItem's onOperationComplete threw an exception " + ex + "; ignoring"); | function onPutComplete(aStatusCode, aResource, aOperation, aClosure) { // 201 = HTTP "Created" // if (aStatusCode == 201) { debug("Item added successfully\n"); var retVal = Components.results.NS_OK; } else if (aStatusCode == 200) { ... |
var searchString, results, queryURLs; | const JSON_STRING = /^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/; | onReadyStateChange: function() { // xxx use the real const here if (!this._request || this._request.readyState != 4) return; try { var status = this._request.status; } catch (e) { // The XML HttpRequest can throw NS_ERROR_NOT_AVAILABLE. return; } if (this._isBackoffError(status))... |
var results2 = Components.utils.evalInSandbox(responseText, sandbox); | function parseJSON(aString) { try { if (JSON_STRING.test(aString)) return Components.utils.evalInSandbox('(' + aString + ')', sandbox); } catch (e) {} | onReadyStateChange: function() { // xxx use the real const here if (!this._request || this._request.readyState != 4) return; try { var status = this._request.status; } catch (e) { // The XML HttpRequest can throw NS_ERROR_NOT_AVAILABLE. return; } if (this._isBackoffError(status))... |
if (results2[0]) { searchString = results2[0] ? results2[0] : ""; results = results2[1] ? results2[1] : []; } else { | return []; }; | onReadyStateChange: function() { // xxx use the real const here if (!this._request || this._request.readyState != 4) return; try { var status = this._request.status; } catch (e) { // The XML HttpRequest can throw NS_ERROR_NOT_AVAILABLE. return; } if (this._isBackoffError(status))... |
var parts = responseText.split("\n"); results = parts[1] ? parts[1].split(",") : []; for (var i = 0; i < results.length; ++i) { results[i] = unescape(results[i]); results[i] = results[i].substr(1, results[i].length - 2); } } | var serverResults = parseJSON(responseText); var searchString = serverResults[0] || ""; var results = serverResults[1] || []; | onReadyStateChange: function() { // xxx use the real const here if (!this._request || this._request.readyState != 4) return; try { var status = this._request.status; } catch (e) { // The XML HttpRequest can throw NS_ERROR_NOT_AVAILABLE. return; } if (this._isBackoffError(status))... |
var searchService = Cc["@mozilla.org/browser/search-service;1"]. getService(Ci.nsIBrowserSearchService); var sandboxHost = searchService.currentEngine.suggestionURI.prePath; var sandbox = new Components.utils.Sandbox(sandboxHost); | var sandbox = new Components.utils.Sandbox(this._suggestURI.prePath); | onReadyStateChange: function() { // xxx use the real const here if (!this._request || this._request.readyState != 4) return; try { var status = this._request.status; } catch (e) { // The XML HttpRequest can throw NS_ERROR_NOT_AVAILABLE. return; } if (this._isBackoffError(status))... |
else if (gDownloadView.view.rowCount) { | else if (gDownloadView.view && gDownloadView.view.rowCount > 0) { | function onRebuild() { gDownloadView.controllers.appendController(downloadViewController); gDownloadView.focus(); // If the window was opened automatically because // a download started, select the new download if (window.arguments.length > 1 && window.arguments[1]) { var dl = window.arguments[1]; selectDo... |
regCheckOKButton(); | function OnRegLoad(){ listbox = this.opener.document.getElementById('regList'); if (window.name == 'editreg') { document.getElementById('PrettyName').value = listbox.selectedItem.label; document.getElementById('RootKey').value = listbox.selectedItem.cck['rootkey']; document.getElementById('Key').value = list... | |
listitem.label = document.getElementById('PrettyName').value; | listitem.setAttribute("label", document.getElementById('PrettyName').value); | function OnRegOK(){ listbox = this.opener.document.getElementById('regList'); var listitem; if (window.name == 'newreg') { listitem = listbox.appendItem(document.getElementById('PrettyName').value, ""); } else { listitem = listbox.selectedItem; listitem.label = document.getElementById('PrettyName').value; ... |
var identityElement = document.getElementById("msgIdentity"); if (identityElement) identityElement.focus(); | onReopen: function(params) { InitializeGlobalVariables(); window.editorShell.contentWindow.focus(); enableEditableFields(); ComposeStartup(true, params); var event = document.createEvent('Events'); event.initEvent('compose-window-reopen', false, true); document.getElementById("msgcomposeWindow").d... | |
if (gReplaceDialog.searchBackwards.checked && newRange) { gEditor.selection.removeAllRanges(); gEditor.selection.addRange(newRange); } | function onReplace(){ if (!gEditor) return false; // Does the current selection match the find string? var selection = gEditor.selection; var selStr = selection.toString(); var specStr = gReplaceDialog.findInput.value; if (!gReplaceDialog.caseSensitive.checked) { selStr = selStr.toLowerCase(); specStr =... | |
var eventTable = gEventSource.getCurrentEvents(); refreshEventTree( eventTable ); | refreshEventTree( false ); | function onResponseAndRefresh( ){ //save the stream to a file. saveDataToFile( calendarToGet.path, request.responseText, "UTF-8" ); gCalendarWindow.calendarManager.removeCalendar( calendarToGet ); gCalendarWindow.calendarManager.addCalendar( calendarToGet ); //refresh the views var eventTable = gEventSou... |
} | var onResponseExtra = function( ) { //add the event eval( "gICalLib."+functionToRun+"( calendarEvent, Server )" ); gCalendarWindow.clearSelectedEvent( calendarEvent ); //publish the changes back to the server if( calendarServer.getAt... | |
event.preventBubble(); | event.stopPropagation(); | function OnReturnHit(event){ if (event.keyCode == 13) { var focusedElement = document.commandDispatcher.focusedElement; if (focusedElement && (focusedElement.id == "addressBucket")) return; event.preventBubble(); if (focusedElement && (focusedElement.id == "abResultsTree")) gActivatedButton.doC... |
if ((defaultSmtpServer == null) && (!hostnameIsIllegal(gSmtpHostname.value))) { defaultSmtpServer = smtpService.createSmtpServer(); } | function onSave(){ var defaultSmtpServer = null; try { defaultSmtpServer = smtpService.defaultServer; } catch (ex) { defaultSmtpServer = null; } saveSmtpSettings(defaultSmtpServer);} | |
var newValue = gEncryptionChoices.selectedItem.value; | var newValue = gEncryptionChoices.value; | function onSave(){ // find out which radio for the encryption radio group is selected and set that on our hidden encryptionChoice pref.... var newValue = gEncryptionChoices.selectedItem.value; gHiddenEncryptionPolicy.setAttribute('value', newValue); gIdentity.setIntAttribute("encryptionpolicy", newValue); gIdentit... |
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolderMin = document.getElementById("offline.compactFolderMin").value; var compactFolder = document.getElementById("offline.compactFolder").checked; | function onSave(){ var retentionSettings = new Array; var downloadSettings = new Array; var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolderMin = document.getElementById("offline.compactFolderMin").value; var compactFolder = document.ge... | |
prefs.SetBoolPref("mail.prompt_purge_threshhold", compactFolder); prefs.SetIntPref("mail.purge_threshhold", compactFolderMin); | function onSave(){ var retentionSettings = new Array; var downloadSettings = new Array; var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolderMin = document.getElementById("offline.compactFolderMin").value; var compactFolder = document.ge... | |
if (gImapIncomingServer) { gImapIncomingServer.downloadBodiesOnGetNewMail = document.getElementById("offline.downloadBodiesOnGetNewMail").checked; gImapIncomingServer.offlineDownload = document.getElementById("offline.newFolder").checked; } | function onSave(){ var retentionSettings = new Array; var downloadSettings = new Array; var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var compactFolderMin = document.getElementById("offline.compactFolderMin").value; var compactFolder = document.ge... | |
saveSmtpSettings(null); | var defaultSmtpServer = null; try { defaultSmtpServer = smtpService.defaultServer; } catch (ex) { defaultSmtpServer = null; } saveSmtpSettings(defaultSmtpServer); | function onSave(){ saveSmtpSettings(null);} |
editorShell.SaveHLineSettings(tempLineElement); dump("Saving HLine settings to preferences\n"); | var prefs = Components.classes['component: if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { dump("Setting HLine prefs\n"); var alignInt; if (align == "left") { alignInt = 0; } else if (align == "right") { alignInt = 2; } else { alignInt... | function onSaveDefault(){ // "false" means set attributes on the tempLineElement, // not the real element being edited if (ValidateData(false)) { editorShell.SaveHLineSettings(tempLineElement); dump("Saving HLine settings to preferences\n"); }} |
gComposeButton.setAttribute("disabled","true"); | function onSearch(){ gStatusText.setAttribute("label", ""); gPropertiesButton.setAttribute("disabled","true"); gSearchSession.clearScopes(); var currentAbURI = document.getElementById('abPopup').getAttribute('value'); gSearchSession.addDirectoryScopeTerm(GetScopeForDirectoryURI(currentAbURI)); saveSe... | |
var searchSubfolders = document.getElementById("checkSearchSubFolders").checked; if (searchSubfolders && gCurrentFolder && gCurrentFolder.hasSubFolders) { var subFolderEnumerator = gCurrentFolder.GetSubFolders(); var done = false; while (!done) { var next = subFolderEnumerator.currentItem(); if (next) { var nextFolder ... | function onSearch(event){ dump("setting up search..\n"); gSearchSession.clearScopes(); // tell the search session what the new scope is gSearchSession.addScopeTerm(GetScopeForFolder(gCurrentFolder), gCurrentFolder); // reflect the search widgets back into the search session... | |
gSearchStopButton.setAttribute("accesskey", gSearchBundle.getString("accesskeyForSearchButton")); | onSearchDone: function(status) { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton")); SetAdvancedSearchStatusText(gSearchView.QueryInterface(Components.interfaces.nsITreeView).rowCount); gStatusFeedback.showProgress(0); gStatusBar.setAttribute("mod... | |
var result = dbFolderInfo.getUint32Property("current-view", 0); | var result = GetMailViewForFolder(vFolder); | onSearchDone: function(status) { SetQSStatusText(gDBView.QueryInterface(Components.interfaces.nsITreeView).rowCount) statusFeedback.showProgress(0); gStatusBar.setAttribute("mode","normal"); gSearchInProgress = false; // ### TODO need to find out if there's quick search within ... |
setTimeout('ViewChangeByValue('+result+')', 0); | setTimeout(ViewChangeByValue, 0, result); | onSearchDone: function(status) { SetQSStatusText(gDBView.QueryInterface(Components.interfaces.nsITreeView).rowCount) statusFeedback.showProgress(0); gStatusBar.setAttribute("mode","normal"); gSearchInProgress = false; // ### TODO need to find out if there's quick search within ... |
var result = dbFolderInfo.getUint32Property("current-view", 0); ViewChangeByValue(result); | onSearchDone: function(status) { SetQSStatusText(gDBView.QueryInterface(Components.interfaces.nsITreeView).rowCount) statusFeedback.showProgress(0); gStatusBar.setAttribute("mode","normal"); gSearchInProgress = false; viewDebug("gSearchInput = " + gSearchInput.value + "\n"); ... | |
if (!gIsSearchHit) { gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchFailureMessage")); | if (gNumOfSearchHits == 0) { statusMsg = Bundle.GetStringFromName("searchFailureMessage"); | onSearchDone: function(status) { gButton.setAttribute("value", Bundle.GetStringFromName("labelForSearchButton")); // if there are no hits, it means no matches were found in the search. if (!gIsSearchHit) { gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchFailureMe... |
gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchSuccessMessage")); gIsSearchHit = false; | statusMsg = gNumOfSearchHits+" "+Bundle.GetStringFromName("searchSuccessMessage"); gNumOfSearchHits = 0; | onSearchDone: function(status) { gButton.setAttribute("value", Bundle.GetStringFromName("labelForSearchButton")); // if there are no hits, it means no matches were found in the search. if (!gIsSearchHit) { gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchFailureMe... |
gStatusFeedback.showProgress(100); gStatusFeedback.showStatusString(statusMsg); gStatusBar.setAttribute("mode","normal"); | onSearchDone: function(status) { gButton.setAttribute("value", Bundle.GetStringFromName("labelForSearchButton")); // if there are no hits, it means no matches were found in the search. if (!gIsSearchHit) { gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("searchFailureMe... | |
if (!gIsSearchHit) { gIsSearchHit = true; } | gNumOfSearchHits++; | onSearchHit: function(header, folder) { if (!gIsSearchHit) { gIsSearchHit = true; } }, |
function onSearchInput(event) | function onSearchInput(returnKeyHit) | function onSearchInput(event){ if (gSearchTimer) { clearTimeout(gSearchTimer); gSearchTimer = null; } if (event && event.keyCode == 13) { onEnterInSearchBar(); } else { gSearchTimer = setTimeout("onEnterInSearchBar();", 800); }} |
if (event && event.keyCode == 13) { | if (returnKeyHit) { GetSearchInput(); gSearchInput.select(); | function onSearchInput(event){ if (gSearchTimer) { clearTimeout(gSearchTimer); gSearchTimer = null; } if (event && event.keyCode == 13) { onEnterInSearchBar(); } else { gSearchTimer = setTimeout("onEnterInSearchBar();", 800); }} |
} | }, | onSecurityChange: function(aWebProgress, aRequest, state) { } |
document.getElementById("editFeed").disabled = !item || item.container; | onSelect: function () { var properties, item; var seln = this.mTree.view.selection; item = this.mView.getItemAtIndex(seln.currentIndex); this.updateFeedData(item); document.getElementById("removeFeed").disabled = !item || item.container; }, | |
function onSelect(file) { if (file) { var path = file.unicodeLeafName; if (path) { if ((filePickerMode == nsIFilePicker.modeGetFolder) || !file.isDirectory()) textInput.value = path; var buttonLabel = getOKAction(file); okButton.setAttribute("label", buttonLabel); okButton.disabled = false; return; } } okButton.disa... | function onSelect(event) { onFileSelected(outlinerView.getSelectedFile()); | function onSelect(file) { if (file) { var path = file.unicodeLeafName; if (path) { if ((filePickerMode == nsIFilePicker.modeGetFolder) || !file.isDirectory()) textInput.value = path; var buttonLabel = getOKAction(file); okButton.setAttribute("label", buttonLabel); okButton.di... |
function onselect_loadURI(tree, columnName) { try { var row = tree.currentIndex; var properties = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); var col = tree.columns[columnName]; tree.view.getCellProperties(row, col, properties); if (!properties) return; va... | function onselect_loadURI(tree) { var row = tree.currentIndex; if (row >= 0) { var resource = tree.view.getResourceAtIndex(row); var link = tree.database.GetTarget(resource, NC_LINK, true); if (link instanceof Components.interfaces.nsIRDFLiteral) loadURI(link.Value); | function onselect_loadURI(tree, columnName) { try { var row = tree.currentIndex; var properties = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); var col = tree.columns[columnName]; tree.view.getCellProperties(row, col, properties); if (!proper... |
catch (e) {} | function onselect_loadURI(tree, columnName) { try { var row = tree.currentIndex; var properties = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); var col = tree.columns[columnName]; tree.view.getCellProperties(row, col, properties); if (!proper... | |
dump( "\nIn Month view, on selection changed"); | onSelectionChanged : function( EventSelectionArray ) { dump( "\nIn Month view, on selection changed"); if( EventSelectionArray.length > 0 ) { //if there are selected events. //for some reason, this function causes the tree to go into a select... | |
dump( "\nIn Month view, on selection changed"); | onSelectionChanged : function( EventSelectionArray ) { //dump( "\nIn Month view, on selection changed"); if( EventSelectionArray.length > 0 ) { //if there are selected events. gCalendarWindow.monthView.clearSelectedDate(); gCalendarWindow.monthView.cle... | |
gCalendarWindow.monthView.clearSelectedDate(); | setTimeout( "gCalendarWindow.monthView.clearSelectedDate();", 1 ); | onSelectionChanged : function( EventSelectionArray ) { //dump( "\nIn Month view, on selection changed"); if( EventSelectionArray.length > 0 ) { //if there are selected events. gCalendarWindow.monthView.clearSelectedDate(); gCalendarWindow.monthView.cle... |
dump( "\nIn Multiweek view, on selection changed : " + EventSelectionArray.length ); | onSelectionChanged : function( EventSelectionArray ) { dump( "\nIn Multiweek view, on selection changed : " + EventSelectionArray.length ); if( EventSelectionArray.length > 0 ) { setTimeout( "gCalendarWindow.multiweekView.clearSelectedDate();", 1 ); //d... | |
var SearchTree = document.getElementById( "unifinder-search-results-tree" ); | var SearchTree = document.getElementById( "unifinder-search-results-listbox" ); | onSelectionChanged : function( EventSelectionArray ) { var SearchTree = document.getElementById( "unifinder-search-results-tree" ); SearchTree.setAttribute( "suppressonselect", "true" ); SearchTree.clearSelection(); if( EventSelectionArray.length > 0 ) ... |
dump("setServer(\"" + item.id + "\");\n"); | function onServerClick(event){ var item = event.target; // don't check this in. dump("setServer(\"" + item.id + "\");\n"); setTimeout("setServer(\"" + item.id + "\");", 0);} | |
var item = event.target; if (item.id == gCurrentServerURI) | if (itemURI == gCurrentServerURI) | function onServerClick(event){ // Return if same server is selected. var item = event.target; if (item.id == gCurrentServerURI) return; // Save the current filters to disk before switching because // the dialog may be closed and we'll lose current filters. var filterList = currentFilterList(); ... |
var item = event.target; selectServer(item.id); | selectServer(itemURI); | function onServerClick(event){ // Return if same server is selected. var item = event.target; if (item.id == gCurrentServerURI) return; // Save the current filters to disk before switching because // the dialog may be closed and we'll lose current filters. var filterList = currentFilterList(); ... |
orphanTreeView.loadCertsFromCache(certcache, nsIX509Cert.UNKNOWN_CERT); orphanTreeView.selection.clearSelection(); | function onSmartCardChange(){ var certcache = Components.classes[nsNSSCertCache].createInstance(nsINSSCertCache); // We've change the state of the smart cards inserted or removed // that means the available certs may have changed. Update the display certcache.cacheAllCerts(); userTreeView.loadCertsFromCache(certca... | |
gSignedStatusPanel.collapsed = true; gEncryptedStatusPanel.collapsed = true; | function onSMIMEStartHeaders(){ gEncryptionStatus = -1; gSignatureStatus = -1; gSignerCert = null; gEncryptionCert = null; gSMIMEContainer.collapsed = true; gSignedUINode.collapsed = true; gSignedUINode.removeAttribute("signed"); gStatusBar.removeAttribute("signed"); gEncryptedUINode.collapsed = true; gEn... | |
const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; | function onSortCol(sortColName){ const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; var node = document.getElementById(sortColName); if (!node) return false; // determine column resource to sort on var sortResourc... | |
else if (sortDirection == "descending") sortDirection = "natural"; | function onSortCol(sortColName){ const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; var node = document.getElementById(sortColName); if (!node) return false; // determine column resource to sort on var sortResourc... | |
var xulSortService = Components.classes[isupports_uri].getService(nsIXULSortService); if (!xulSortService) return false; try { if ("sort" in xulSortService) xulSortService.sort(node, sortResource, sortDirection); else xulSortService.Sort(node, sortResource, sortDirection); document.persist("user-list", "sortResource");... | sortUserList(node, sortDirection); | function onSortCol(sortColName){ const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/xul/xul-sort-service;1"; var node = document.getElementById(sortColName); if (!node) return false; // determine column resource to sort on var sortResourc... |
node.getAttribute("rdf:resource"); | node.getAttribute("resource"); | function onSortCol(sortColName){ /* sort the <tree> widget on the column name |sortColName|. This code * was basically ripped off some mozilla code that I can't recall at the * moment. */ const nsIXULSortService = Components.interfaces.nsIXULSortService; const isupports_uri = "@mozilla.org/rdf/xul... |
response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, | response.append(getMsg(MSN_JSDURL_ERRPAGE, [safeHTML(parsedURL.spec), | function onSourceTextLoaded (status) { if (status != Components.results.NS_OK) { response.start(); response.append(getMsg(MSN_JSDURL_ERRPAGE, [parsedURL.spec, status])); response.end(); display (getMs... |
var lString = bundle.GetStringFromName("migratebeforestart"); | var lString = gProfileManagerBundle.getString("migratebeforestart"); | function onStart(){ var profileTree = document.getElementById("profiles"); var selected = profileTree.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) { var lString = bundle.GetStringFromName("migratebeforest... |
lString = lString.replace(/%brandShortName%/gi, brandBundle.GetStringFromName("brandShortName")); var title = bundle.GetStringFromName("migratetitle"); | lString = lString.replace(/%brandShortName%/gi, gBrandBundle.getString("brandShortName")); var title = gProfileManagerBundle.getString("migratetitle"); | function onStart(){ var profileTree = document.getElementById("profiles"); var selected = profileTree.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) { var lString = bundle.GetStringFromName("migratebeforest... |
var appShellService = Components.classes["@mozilla.org/appshell/appShellService;1"] .getService(Components.interfaces.nsIAppShellService); appShellService.quit(Components.interfaces.nsIAppShellService.eForceQuit); | var appStartup = Components.classes["@mozilla.org/seamonkey/app-startup;1"] .getService(Components.interfaces.nsIAppStartup); appStartup.quit(Components.interfaces.nsIAppStartup.eForceQuit); | function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.view.getItemAtIndex(profileList.currentIndex); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. getService(Components.interfaces.nsIPromptService); var profilename = selected.ge... |
if (promptService.Confirm(window, title, lString)) | var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService.confirm(window, title, lString)) | function onStart(){ var profileTree = document.getElementById("profiles"); var selected = profileTree.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) { var lString = gProfileManagerBundle.getString("migratebeforest... |
gMessageNotificationBar.clearMsgNotifications(); | onStartHeaders: function() { this.mSaveHdr = null; // clear out any pending collected address timers... if (gCollectAddressTimer) { gCollectAddress = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } // every time we start to redispl... | |
if (gCollectAddressTimer) { gCollectAddess = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } | onStartHeaders: function() { // every time we start to redisplay a message, check the view all headers pref.... var showAllHeadersPref = pref.getIntPref("mail.show_headers"); if (showAllHeadersPref == 2) { gViewAllHeaders = true; } else { if (gViewAllHeaders) // i... | |
if (gCollectAddressTimer) { gCollectAddress = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } | onStartHeaders: function() { this.mSaveHdr = null; // clear out any pending collected address timers... if (gCollectAddressTimer) { gCollectAddress = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } // every time we start to redispl... | |
gBuildAttachmentsForCurrentMsg = false; | onStartHeaders: function() { // every time we start to redisplay a message, check the view all headers pref.... var showAllHeadersPref = pref.GetIntPref("mail.show_headers"); if (showAllHeadersPref == 2) gViewAllHeaders = true; else gViewAllHeaders = false; ClearCurrentHead... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.