rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (menuItem.data == state)
if (menuItem.value == state)
function onParagraphFormatChange(paraMenuList, commandID){ var commandNode = document.getElementById(commandID); var state = commandNode.getAttribute("state"); var menuList = document.getElementById("ParagraphSelect"); if (!menuList) return; // force match with "normal" if (state == "body") state = ""; if (...
function onParagraphFormatChange(commandID)
function onParagraphFormatChange(paraMenuList, commandID)
function onParagraphFormatChange(commandID){ var commandNode = document.getElementById(commmandID); var state = commandNode.getAttribute("state");// dump(" ==== onParagraphFormatChange was called. state="+state+"|\n"); return; //TODO: REWRITE THIS}
var commandNode = document.getElementById(commmandID);
var commandNode = document.getElementById(commandID);
function onParagraphFormatChange(commandID){ var commandNode = document.getElementById(commmandID); var state = commandNode.getAttribute("state");// dump(" ==== onParagraphFormatChange was called. state="+state+"|\n"); return; //TODO: REWRITE THIS}
return;
dump("Updating font face with " + state + "\n"); if (state == "body") state = ""; if (state == "mixed") { paraMenuList.selectedItem = null; paraMenuList.setAttribute("value",GetString('MixedFormats')); } else { var menuPopup = document.getElementById("ParagraphPopup"); var menuItems = menuPopup.childNodes; for (i=0...
function onParagraphFormatChange(commandID){ var commandNode = document.getElementById(commmandID); var state = commandNode.getAttribute("state");// dump(" ==== onParagraphFormatChange was called. state="+state+"|\n"); return; //TODO: REWRITE THIS}
dump("Mixed paragraph format *******\n");
function onParagraphFormatChange(){ return; //TODO: REWRITE THIS var menulist = document.getElementById("ParagraphSelect"); if (menulist) { // If we don't match anything, set to "normal" var newIndex = 0; var format = select.getAttribute("format"); if ( format == "mixed") {dump("Mixed paragraph forma...
aFeed.downloadCallback.downloaded(aFeed, kNewsBlogInvalidFeed);
aFeed.downloadCallback.downloaded(aFeed, aFeed.request.status == 304 ? kNewsBlogNoNewItems : kNewsBlogInvalidFeed);
onParseError: function(aFeed) { if (aFeed && aFeed.downloadCallback) { if (aFeed.downloadCallback) aFeed.downloadCallback.downloaded(aFeed, kNewsBlogInvalidFeed); FeedCache.removeFeed(aFeed.url); } },
[this._statusFormatter.progress]));
[this.statusFormatter.progress]));
onPause: function() { var updates = Components.classes["@mozilla.org/updates/update-service;1"]. getService(Components.interfaces.nsIApplicationUpdateService); if (this._paused) updates.downloadUpdate(gUpdates.update, false); else { var patch = gUpdates.update.selectedPatch; pat...
if (!this._view.rowCount) this.clear();
onPermissionDeleted: function () { if (!this._view.rowCount) return; var removedPermissions = []; gTreeUtils.deleteSelectedItems(this._tree, this._view, this._permissions, removedPermissions); for (var i = 0; i < removedPermissions.length; ++i) { var p = removedPermissions[i]; this._pm.rem...
if (!browser.popupUrls) { browser.popupUrls = []; browser.popupFeatures = []; } for (var i = 0; i < browser.popupUrls.length; ++i) { if (browser.popupUrls[i].equals(aEvent.popupWindowURI)) { browser.popupUrls.splice(i, 1); browser.popupFeatures.splice(i, 1); break; } } if (browser.popupUrls.length >= 100) { browser...
function onPopupBlocked(aEvent) { var playSound = pref.getBoolPref("privacy.popups.sound_enabled"); if (playSound) { var sound = Components.classes["@mozilla.org/sound;1"] .createInstance(Components.interfaces.nsISound); var soundUrlSpec = pref.getCharPref("privacy.popups.sound_url"); ...
}
} if (!browser.popupUrls) { browser.popupUrls = []; browser.popupFeatures = []; } browser.popupUrls.push(aEvent.popupWindowURI); browser.popupFeatures.push(aEvent.popupWindowFeatures);
function onPopupBlocked(aEvent) { var playSound = pref.getBoolPref("privacy.popups.sound_enabled"); if (playSound) { var sound = Components.classes["@mozilla.org/sound;1"] .createInstance(Components.interfaces.nsISound); var soundUrlSpec = pref.getCharPref("privacy.popups.sound_url"); ...
this.setFlashSelected(PrefUtils.getPref("inspector.blink.on"));
this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), true); if (aName == "inspector.dom.showWhitespaceNodes") this.setWhitespaceNodes(PrefUtils.getPref("inspector.dom.showWhitespaceNodes")); if (aName == "inspector.dom.showAccessibleNodes") this.setAccessibleNodes(PrefUtils.getPref("inspector.dom.showAcce...
onPrefChanged: function(aName) { if (aName == "inspector.dom.showAnon") this.setFlashSelected(PrefUtils.getPref("inspector.blink.on")); if (aName == "inspector.blink.on") this.setFlashSelected(PrefUtils.getPref("inspector.blink.on")); if (this.mFlasher) { if (aName == "inspector.blink.border-...
gRedirectorType = parent.getAccountValue(account, accountValues, "server", "redirectorType", null, false);
function onPreInit(account, accountValues){ var type = parent.getAccountValue(account, accountValues, "server", "type", null, false); hideShowControls(type);}
gObserver= Components.classes["@mozilla.org/observer-service;1"]. getService(Components.interfaces.nsIObserverService); gObserver.notifyObservers(null, "charsetmenu-selected", "other");
function onPreInit(account, accountValues){ // Bug 134238 // Make sure server.isSecure will be saved before server.port preference parent.getAccountValue(account, accountValues, "server", "isSecure", null, false); var type = parent.getAccountValue(account, accountValues, "server", "type", null, false); gRedirector...
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.nsIWritablePropertyBag); p.setPrope...
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 p = gUpdates.update.selectedPatch; p.QueryInterface(Components.interfaces.nsIWritablePro...
if(!statusMeter)
if (!this.useRealProgressFlag && channel) return; if (!statusMeter)
onProgress : function (channel, current, max) { if(!statusMeter) statusMeter = document.getElementById("statusbar-icon"); var percentage = 0; if (!useRealProgressFlag && (channel != null)) { return; } if (max > 0) { percentage = (current * 100) / max ; if (statusMeter.getAttribute(...
var percentage = 0; if (!useRealProgressFlag && (channel != null)) { return; }
onProgress : function (channel, current, max) { if(!statusMeter) statusMeter = document.getElementById("statusbar-icon"); var percentage = 0; if (!useRealProgressFlag && (channel != null)) { return; } if (max > 0) { percentage = (current * 100) / max ; if (statusMeter.getAttribute(...
percentage = (current * 100) / max ; if (statusMeter.getAttribute("mode") != "normal")
if (statusMeter.getAttribute("mode") != "normal")
onProgress : function (channel, current, max) { if(!statusMeter) statusMeter = document.getElementById("statusbar-icon"); var percentage = 0; if (!useRealProgressFlag && (channel != null)) { return; } if (max > 0) { percentage = (current * 100) / max ; if (statusMeter.getAttribute(...
this._statusFormatter.formatStatus(progress, maxProgress));
this.statusFormatter.formatStatus(progress, maxProgress));
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...
statusMeter.setAttribute("mode", "normal");
if (statusMeter.getAttribute("mode") != "normal") statusMeter.setAttribute("mode", "normal");
onProgress : function (channel, current, max) { if(!statusMeter) statusMeter = document.getElementById("statusbar-icon"); var percentage = 0; if (max > 0) { percentage = (current * 100) / max ; statusMeter.setAttribute("mode", "normal"); statusMeter.value = percentage; statusMeter.pr...
else statusMeter.setAttribute("mode","undetermined");
else { if (statusMeter.getAttribute("mode") != "undetermined") statusMeter.setAttribute("mode","undetermined"); }
onProgress : function (channel, current, max) { if(!statusMeter) statusMeter = document.getElementById("statusbar-icon"); var percentage = 0; if (max > 0) { percentage = (current * 100) / max ; statusMeter.setAttribute("mode", "normal"); statusMeter.value = percentage; statusMeter.pr...
var throbber = document.getElementById("broadcaster_throbber");
var throbber = document.getElementById("Browser:Throbber");
function onProgress() { var throbber = document.getElementById("broadcaster_throbber"); var meter = document.getElementById("Browser:LoadingProgress"); if ( throbber && meter ) { var busy = throbber.getAttribute("busy"); var wasBusy = meter.getAt...
percent = parseInt( (aCurTotalProgress*100)/aMaxTotalProgress + .5 );
percent = Math.round( (aCurTotalProgress*100)/aMaxTotalProgress );
onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { // Calculate percentage. var percent; if ( aMaxTotalProgress > 0 ) { percent = parseInt( (aCurTotalProgress*100)/aMaxTotalProgress + .5 ); if ( percent...
if (switchUI) { dialog.tempLabel.setAttribute("hidden", "true"); dialog.progress.setAttribute("hidden", "false"); dialog.cancel.setAttribute("disabled", "false"); var progressLabel = getString("progress"); if (progressLabel == "") { progressLabel = "Progress:"; } switchUI = false; }
onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (progressParams) { var docTitleStr = elipseString(progressParams.docTitle, false); if (docTitleStr != docTitle) { docTitle = docTitleStr; dia...
percent = parseInt( (aCurTotalProgress*100)/aMaxTotalProgress + .5 );
percent = Math.round( (aCurTotalProgress*100)/aMaxTotalProgress );
onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { // Calculate percentage. var percent; if ( aMaxTotalProgress > 0 ) { percent = parseInt( (aCurTotalProgress*100)/aMaxTotalProgress + .5 ); if ( percent...
var overallProgress = aCurTotalProgress; var now = ( new Date() ).getTime(); if ( now - this.lastUpdate < this.interval && aMaxTotalProgress != "-1" && parseInt( aCurTotalProgress ) < parseInt( aMaxTotalProgress ) ) { return; } this.lastUpdate = now; this.elapsed = now - this.startTime; if ( aMaxTotalProgress...
return onProgressChange64(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress);
onProgressChange: function( aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress ) { var overallProgress = aCu...
percent = parseInt( (aCurTotalProgress*100)/aMaxTotalProgress + .5 );
percent = Math.round( (aCurTotalProgress*100)/aMaxTotalProgress );
onProgressChange: function(aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (switchUI) { dialog.tempLabel.setAttribute("hidden", "true"); dialog.progress.setAttribute("hidden", "false"); dialog.cancel.setAttribute("disabled", "...
if (!this.useRealProgressFlag && aRequest) return;
onProgressChange : function (aWebProgress, aRequest, aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress) { if (!this.useRealProgressFlag && aRequest) return; if (aMaxTotalProgress > 0) { // This is highly optimized. Do...
var aDownloadID = aDownload.target.path;
var aDownloadID = aDownload.targetFile.path;
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 ...
gEditor.insertText(gReplaceDialog.replaceInput.value);
var replStr = gReplaceDialog.replaceInput.value; if (replStr == "") gEditor.deleteSelection(0); else gEditor.insertText(replStr);
function onReplace(){ if (!gEditor) return; // 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 = specS...
if (!gReplaceDialog.editor)
if (!gEditor)
function onReplace(){ if (!gReplaceDialog.editor) return; // Transfer dialog contents to the find service. saveFindData(); gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);}
gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);
gEditor.insertText(gReplaceDialog.replaceInput.value); return true;
function onReplace(){ if (!gReplaceDialog.editor) return; // Transfer dialog contents to the find service. saveFindData(); gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);}
gEditor.insertText(repStr);
if (repStr == "") gEditor.deleteSelection(0); else gEditor.insertText(repStr);
function onReplaceAll(){ if (!gEditor) return; var findStr = gReplaceDialog.findInput.value; var repStr = gReplaceDialog.replaceInput.value; // Transfer dialog contents to the find service. saveFindData(); var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"].createInstance().QueryInterface(Com...
setUpFindInst();
function onReplaceAll(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance setUpFindInst(); // Search. while (true) { var result = gFindInst.findNext(); dump("result of find: " + result + "\n"); if (!result) break; gReplaceDialog.editor.insertText(gRepla...
while (true) { var result = gFindInst.findNext(); dump("result of find: " + result + "\n"); if (!result) break; gReplaceDialog.editor.insertText(gReplaceDialog.replaceKey.value);
var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"].createInstance().QueryInterface(Components.interfaces.nsIFind); finder.caseSensitive = gReplaceDialog.caseSensitive.checked; finder.findBackwards = gReplaceDialog.searchBackwards.checked; var selection = gEditor.selection; var selecRange; if (...
function onReplaceAll(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance setUpFindInst(); // Search. while (true) { var result = gFindInst.findNext(); dump("result of find: " + result + "\n"); if (!result) break; gReplaceDialog.editor.insertText(gRepla...
return false;
selecRange.setStart(wholeDocRange.startContainer, wholeDocRange.startOffset); selecRange.setEnd(wholeDocRange.startContainer, wholeDocRange.startOffset); origRange.setEnd(origRange.startContainer, origRange.startOffset); if (gReplaceDialog.wrap.checked) { while ((foundRange = finder.Find(findStr, wholeDocRange, selecR...
function onReplaceAll(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance setUpFindInst(); // Search. while (true) { var result = gFindInst.findNext(); dump("result of find: " + result + "\n"); if (!result) break; gReplaceDialog.editor.insertText(gRepla...
onMore(event); gSearchLessButton.setAttribute("disabled", "true");
onMore(event, 0);
function onReset(event){ while (gTotalSearchTerms>0) removeSearchRow(--gTotalSearchTerms); onMore(event); // Ensure less button is disabled now that we have cleared everything gSearchLessButton.setAttribute("disabled", "true");}
scrollDown();
for (var i = 0; i < client.deck.childNodes.length; i++) scrollDown(client.deck.childNodes[i], true);
window.onresize =function (){ scrollDown();}
refreshEventTree( false );
refreshEventTree( getAndSetEventTable() );
function onResponseAndRefresh( ){ //check to make sure this is a real calendar file first. //if its not, it causes Mozilla to crash. if( request.responseText.indexOf( "BEGIN:VCALENDAR" ) == -1 ) { return; } //save the stream to a file. saveDataToFile( calendarToGet.getAttribute( "http://home.netscape...
gCalendarWindow.calendarManager.addCalendar( calendarToGet );
if( calendarToGet.active ) gCalendarWindow.calendarManager.addCalendar( calendarToGet );
function onResponseAndRefresh( ){ //save the stream to a file. saveDataToFile( calendarToGet.path, request.responseText, "UTF-8" ); gCalendarWindow.calendarManager.removeCalendar( calendarToGet ); gCalendarWindow.calendarManager.addCalendar( calendarToGet ); refreshEventTree( false ); gCalendarWindow.cur...
document.getElementById( "calendar-list-image-"+calendarToGet.serverNumber ).removeAttribute( "synching" );
function onResponseAndRefresh( ){ //save the stream to a file. saveDataToFile( calendarToGet.path, request.responseText, "UTF-8" ); gCalendarWindow.calendarManager.removeCalendar( calendarToGet ); gCalendarWindow.calendarManager.addCalendar( calendarToGet ); refreshEventTree( false ); gCalendarWindow.cur...
downloadSettings.downloadUnreadOnly = document.getElementById("nntp.downloadUnread").checked;
downloadSettings.downloadUnreadOnly = document.getElementById("nntp.notDownloadRead").checked;
function onSave(){ var retentionSettings = new Array; var downloadSettings = new Array; gIncomingServer.limitOfflineMessageSize = document.getElementById("offline.notDownload").checked; gIncomingServer.maxMessageSize = document.getElementById("offline.notDownloadMin").value; if(document.getElementById("n...
var identity = account.defaultIdentity; var server = account.incomingServer;
function onSave() { // make sure the current visible page is saved savePage(lastServerId, lastPageId); for (var accountid in accountArray) { var account = getAccountFromServerId(accountid); var accountValues = accountArray[accountid]; var identity = account.defaultIdentity; var server = account.incomin...
for (var val in accountValues) { var vals = val.split("."); if (vals[0] == "identity") { dump("Saving identity info " + vals[1] + "(" + accountValues[val] + ") to " + identity +"\n"); identity[vals[1]] = accountValues[val]; } if (vals[0] == "server") { dump("Saving server info " + vals[1] + "(" + accountValues[val] + ...
saveAccount(accountValues, account);
function onSave() { // make sure the current visible page is saved savePage(lastServerId, lastPageId); for (var accountid in accountArray) { var account = getAccountFromServerId(accountid); var accountValues = accountArray[accountid]; var identity = account.defaultIdentity; var server = account.incomin...
var newValue = gEncryptionChoices.selectedItem.value; gHiddenEncryptionPolicy.setAttribute('value', newValue);
function onSave(){}
savePage(lastServerId, lastPageId);
savePage(currentServerId);
function onSave() { // make sure the current visible page is saved savePage(lastServerId, lastPageId); for (var accountid in accountArray) { var account = getAccountFromServerId(accountid); var accountValues = accountArray[accountid]; saveAccount(accountValues, account); }}
prefs.SetIntPref("editor.hrule.align", alignInt);
prefs.setIntPref("editor.hrule.align", alignInt);
function onSaveDefault(){ // "false" means set attributes on the globalElement, // not the real element being edited if (ValidateData()) { var prefs = GetPrefs(); if (prefs) { var alignInt; if (align == "left") { alignInt = 0; } else if (align == "right") { alignInt = 2; } e...
prefs.SetIntPref("editor.hrule.width", widthInt); prefs.SetBoolPref("editor.hrule.width_percent", percent); prefs.SetIntPref("editor.hrule.height", heightInt); prefs.SetBoolPref("editor.hrule.shading", shading);
prefs.setIntPref("editor.hrule.width", widthInt); prefs.setBoolPref("editor.hrule.width_percent", percent); prefs.setIntPref("editor.hrule.height", heightInt); prefs.setBoolPref("editor.hrule.shading", shading);
function onSaveDefault(){ // "false" means set attributes on the globalElement, // not the real element being edited if (ValidateData()) { var prefs = GetPrefs(); if (prefs) { var alignInt; if (align == "left") { alignInt = 0; } else if (align == "right") { alignInt = 2; } e...
prefs.savePrefFile(null);
var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefService.savePrefFile(null);
function onSaveDefault(){ // "false" means set attributes on the globalElement, // not the real element being edited if (ValidateData()) { var prefs = GetPrefs(); if (prefs) { var alignInt; if (align == "left") { alignInt = 0; } else if (align == "right") { alignInt = 2; } e...
function onSearch()
function onSearch(aSearchTerms)
function onSearch(){ var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView); if (treeView) { var tree = GetThreadTree(); tree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject).view = treeView; } createSearchTerms(); gDBView.searchSession = gSearchSession; ...
createSearchTerms();
if (aSearchTerms) createSearchTermsWithList(aSearchTerms); else createSearchTerms();
function onSearch(){ var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView); if (treeView) { var tree = GetThreadTree(); tree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject).view = treeView; } createSearchTerms(); gDBView.searchSession = gSearchSession; ...
viewDebug("in OnSearch, searchTerms = " + aSearchTerms + "\n");
function onSearch(aSearchTerms){ RerootThreadPane(); if (aSearchTerms) createSearchTermsWithList(aSearchTerms); else createSearchTerms(); gDBView.searchSession = gSearchSession; try { gSearchSession.search(msgWindow); } catch(ex) { dump("Search Exception\n"); }}
if (event.target.value == gSearchBundle.getString("labelForSearchButton"))
if (event.target.label == gSearchBundle.getString("labelForSearchButton"))
function onSearchButton(event){ if (event.target.value == gSearchBundle.getString("labelForSearchButton")) onSearch(event); else onSearchStop(event);}
var result = GetMailViewForFolder(vFolder); 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 ...
if (gCurrentVirtualFolderUri && gCurrentVirtualFolderUri != "")
if (gCurrentVirtualFolderUri && (gSearchInput.value == "" || gSearchInput.showingSearchCriteria))
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 ...
(gSearchInput.value == "" || gSearchInput.showingSearchCriteria))
(!gSearchInput || gSearchInput.value == "" || gSearchInput.showingSearchCriteria))
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 ...
ScrollToMessageAfterFolderLoad(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 ...
var statusMsg; if (gNumOfSearchHits == 0) { statusMsg = gSearchBundle.getString("searchFailureMessage"); } else { if (gNumOfSearchHits == 1) statusMsg = gSearchBundle.getString("searchSuccessMessage"); else statusMsg = gSearchBundle.getFormattedString("searchSuccessMessages", [gNumOfSearchHits]); gNumOfSearchHits = 0...
SetAdvancedSearchStatusText(gSearchView.QueryInterface(Components.interfaces.nsITreeView).rowCount);
onSearchDone: function(status) { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton")); var statusMsg; // if there are no hits, it means no matches were found in the search. if (gNumOfSearchHits == 0) { statusMsg = gSearchBundle.getString(...
gStatusFeedback.showStatusString(statusMsg);
onSearchDone: function(status) { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton")); var statusMsg; // if there are no hits, it means no matches were found in the search. if (gNumOfSearchHits == 0) { statusMsg = gSearchBundle.getString(...
gButton.setAttribute("value", gSearchBundle.getString("labelForSearchButton"));
gButton.setAttribute("label", gSearchBundle.getString("labelForSearchButton"));
onSearchDone: function(status) { gButton.setAttribute("value", gSearchBundle.getString("labelForSearchButton")); var statusMsg; // if there are no hits, it means no matches were found in the search. if (!gIsSearchHit) { gStatusFeedback.showStatusString(gSearchBundle.getStr...
var statusMsg; if (gNumOfSearchHits == 0) { statusMsg = gSearchBundle.getString("searchFailureMessage"); } else { if (gNumOfSearchHits == 1) statusMsg = gSearchBundle.getString("searchSuccessMessage"); else statusMsg = gSearchBundle.getFormattedString("searchSuccessMessages", [gNumOfSearchHits]); gNumOfSearchHits = 0...
SetQSStatusText(gDBView.QueryInterface(Components.interfaces.nsITreeView).rowCount)
onSearchDone: function(status) { var statusMsg; // if there are no hits, it means no matches were found in the search. if (gNumOfSearchHits == 0) { statusMsg = gSearchBundle.getString("searchFailureMessage"); } else { if (gNumOfSearchHits == 1) ...
statusFeedback.showStatusString(statusMsg);
onSearchDone: function(status) { var statusMsg; // if there are no hits, it means no matches were found in the search. if (gNumOfSearchHits == 0) { statusMsg = gSearchBundle.getString("searchFailureMessage"); } else { if (gNumOfSearchHits == 1) ...
gNumOfSearchHits++;
onSearchHit: function(header, folder) { gNumOfSearchHits++; },
if (gSearchInput.showingSearchCriteria)
if (gSearchInput.showingSearchCriteria && !(returnKeyHit && gSearchInput.value == ""))
function onSearchInput(returnKeyHit){ if (gSearchInput.showingSearchCriteria) return; if (gSearchTimer) { clearTimeout(gSearchTimer); gSearchTimer = null; } // only select the text when the return key was hit if (returnKeyHit) { GetSearchInput(); gSearchInput.select(); onEnterInSearchBar(); } ...
if (gQuickSearchFocusEl && gQuickSearchFocusEl.id == 'searchInput') return;
function onSearchInputBlur(event){ if (!gSearchInput.value) gSearchInput.showingSearchCriteria = true; if (gSearchInput.showingSearchCriteria) gSearchInput.setSearchCriteriaText();}
gSearchInput.select();
if (gIgnoreFocus) gIgnoreFocus = false; else gSearchInput.select();
function onSearchInputFocus(event){ // search bar has focus, ...clear the showing search criteria flag if (gSearchInput.showingSearchCriteria) { gSearchInput.value = ""; gSearchInput.showingSearchCriteria = false; } gSearchInput.select();}
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
onSecurityChange : function(aWebProgress, aRequest, aState) { throw Components.results.NS_ERROR_NOT_IMPLEMENTED; },
function onselect_loadURI(tree, columnName) {
function onselect_loadURI(tree) {
function onselect_loadURI(tree, columnName) { try { var row = tree.treeBoxObject.view.selection.currentIndex; var properties = Components.classes["@mozilla.org/supports-array;1"] .createInstance(Components.interfaces.nsISupportsArray); tree.treeBoxObject.view.getCellProperties(row, co...
var row = tree.treeBoxObject.view.selection.currentIndex; var properties = Components.classes["@mozilla.org/supports-array;1"] .createInstance(Components.interfaces.nsISupportsArray); tree.treeBoxObject.view.getCellProperties(row, columnName, properties); if (!properties) { return; } var uri = getPropertyValue(properti...
var resource = tree.view.getResourceAtIndex(tree.currentIndex); var link = tree.database.GetTarget(resource, NC_LINK, true); if (link) { link = link.QueryInterface(Components.interfaces.nsIRDFLiteral); loadURI(link.Value);
function onselect_loadURI(tree, columnName) { try { var row = tree.treeBoxObject.view.selection.currentIndex; var properties = Components.classes["@mozilla.org/supports-array;1"] .createInstance(Components.interfaces.nsISupportsArray); tree.treeBoxObject.view.getCellProperties(row, co...
dump("Something selected on " + event.target.tagName + "\n");
dump("Something selected on " + event.target.localName + "\n");
function onSelected(event){ serverList.setAttribute("selectedKey", event.target.getAttribute("key")); dump("Something selected on " + event.target.tagName + "\n");}
CategoriesTree.setAttribute( "suppressonselect", "true" );
onSelectionChanged : function( EventSelectionArray ) { var CategoriesTree = document.getElementById( "unifinder-categories-tree" ); var SearchTree = document.getElementById( "unifinder-search-results-tree" ); CategoriesTree.clearSelection(); SearchTree.clearSelection(); ...
dump( "\nAllow on select now!" ); CategoriesTree.removeAttribute( "suppressonselect" ); SearchTree.removeAttribute( "suppressonselect" );
onSelectionChanged : function( EventSelectionArray ) { var CategoriesTree = document.getElementById( "unifinder-categories-tree" ); var SearchTree = document.getElementById( "unifinder-search-results-tree" ); CategoriesTree.clearSelection(); SearchTree.clearSelection(); ...
var SearchTree = document.getElementById( UnifinderTreeName ); SearchTree.treeBoxObject.selection.selectEventsSuppressed = true; SearchTree.onselect = null; SearchTree.removeEventListener( "select", unifinderOnSelect, true ); if( EventSelectionArray.length > 1 ) { if( gSelectAll === true ) { SearchTree.treeBoxObje...
selectSelectedEventsInTree( EventSelectionArray );
onSelectionChanged : function( EventSelectionArray ) { //dump( "\nCALENDAR unifinder.js->on selection changed" ); var SearchTree = document.getElementById( UnifinderTreeName ); /* The following is a brutal hack, caused by http://lxr.mozilla.org/mozilla1.0/source/l...
if( gSelectAll === true ) { SearchTree.treeBoxObject.selection.selectAll( ); gSelectAll = false; }
onSelectionChanged : function( EventSelectionArray ) { //dump( "\nCALENDAR unifinder.js->on selection changed" ); var SearchTree = document.getElementById( UnifinderTreeName ); /* The following is a brutal hack, caused by http://lxr.mozilla.org/mozilla1.0/source/l...
setTimeout( "resetSelection()", 1 );
setTimeout( "resetAllowSelection()", 1 );
onSelectionChanged : function( EventSelectionArray ) { //dump( "\nCALENDAR unifinder.js->on selection changed" ); var SearchTree = document.getElementById( UnifinderTreeName ); /* The following is a brutal hack, caused by http://lxr.mozilla.org/mozilla1.0/source/l...
CategoriesTree.addItemToSelection( document.getElementById( "unifinder-treeitem-"+EventSelectionArray[i].id ) );
var CategoriesTreeItem = document.getElementById( "unifinder-treeitem-"+EventSelectionArray[i].id ); var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id ); if( CategoriesTreeItem ) CategoriesTree.addItemToSelection( CategoriesTreeItem );
onSelectionChanged : function( EventSelectionArray ) { var CategoriesTree = document.getElementById( "unifinder-categories-tree" ); var SearchTree = document.getElementById( "unifinder-search-results-tree" ); CategoriesTree.clearSelection(); SearchTree.clearSelection(); ...
SearchTree.addItemToSelection( document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id ) );
if( SearchTreeItem ) SearchTree.addItemToSelection( SearchTreeItem );
onSelectionChanged : function( EventSelectionArray ) { var CategoriesTree = document.getElementById( "unifinder-categories-tree" ); var SearchTree = document.getElementById( "unifinder-search-results-tree" ); CategoriesTree.clearSelection(); SearchTree.clearSelection(); ...
if (this._tree.view.rowCount == 0)
if (this._tree.view.rowCount == 0) { this._removeButton.disabled = true; this._editButton.disabled = true;
onSelectionChanged: function () { if (this._tree.view.rowCount == 0) return; var selection = this._tree.view.selection; var selected = selection.count; this._removeButton.disabled = selected == 0; this._editButton.disabled = selected != 1; var stringKey = selected > 1 ? "removeButtonMul...
}
onSelectionChanged: function () { if (this._tree.view.rowCount == 0) return; var selection = this._tree.view.selection; var selected = selection.count; this._removeButton.disabled = selected == 0; this._editButton.disabled = selected != 1; var stringKey = selected > 1 ? "removeButtonMul...
setTimeout("setServer(\"" + item.id + "\");", 0);
setServer(item.id, true);
function onServerClick(event){ var item = event.target; // don't check this in. setTimeout("setServer(\"" + item.id + "\");", 0);}
if (canDetach) { detachMenu.removeAttribute('disabled'); deleteMenu.removeAttribute('disabled'); } else { detachMenu.setAttribute('disabled', true); deleteMenu.setAttribute('disabled', true); }
function onShowAttachmentContextMenu(){ // if no attachments are selected, disable the Open and Save... var attachmentList = document.getElementById('attachmentList'); var selectedAttachments = attachmentList.selectedItems; var openMenu = document.getElementById('context-openAttachment'); var saveMenu = document.g...
var canDetach = false; if (selectedAttachments.length > 0)
var detachAllMenu = document.getElementById('context-detachAllAttachments'); var deleteAllMenu = document.getElementById('context-deleteAllAttachments'); var canDetach = CanDetachAttachments(); var canOpen = false; for (var i = 0; i < selectedAttachments.length && !canOpen; i++) canOpen = selectedAttachments[i].attachm...
function onShowAttachmentContextMenu(){ // if no attachments are selected, disable the Open and Save... var attachmentList = document.getElementById('attachmentList'); var selectedAttachments = attachmentList.selectedItems; var openMenu = document.getElementById('context-openAttachment'); var saveMenu = document.g...
var attachment = selectedAttachments[0].attachment canDetach = attachment.contentType != 'text/x-moz-deleted' && !(/news-message:/.test(attachment.messageUri)) && (!(/imap-message/.test(attachment.messageUri)) || CheckOnline());
function onShowAttachmentContextMenu(){ // if no attachments are selected, disable the Open and Save... var attachmentList = document.getElementById('attachmentList'); var selectedAttachments = attachmentList.selectedItems; var openMenu = document.getElementById('context-openAttachment'); var saveMenu = document.g...
openMenu.setAttribute('disabled', true);
function onShowAttachmentContextMenu(){ // if no attachments are selected, disable the Open and Save... var attachmentList = document.getElementById('attachmentList'); var selectedAttachments = attachmentList.selectedItems; var openMenu = document.getElementById('context-openAttachment'); var saveMenu = document.g...
if (canDetach)
if (canDetach && canOpen)
function onShowAttachmentContextMenu(){ // if no attachments are selected, disable the Open and Save... var attachmentList = document.getElementById('attachmentList'); var selectedAttachments = attachmentList.selectedItems; var openMenu = document.getElementById('context-openAttachment'); var saveMenu = document.g...
detachMenu.setAttribute('disabled', true); deleteMenu.setAttribute('disabled', true);
detachMenu.setAttribute('disabled', 'true'); deleteMenu.setAttribute('disabled', 'true'); } if (canDetach) { detachAllMenu.removeAttribute('disabled'); deleteAllMenu.removeAttribute('disabled'); } else { detachAllMenu.setAttribute('disabled', 'true'); deleteAllMenu.setAttribute('disabled', 'true');
function onShowAttachmentContextMenu(){ // if no attachments are selected, disable the Open and Save... var attachmentList = document.getElementById('attachmentList'); var selectedAttachments = attachmentList.selectedItems; var openMenu = document.getElementById('context-openAttachment'); var saveMenu = document.g...
var updateTypeElement = document.getElementById("updateType"); var moreInfoURL = document.getElementById("moreInfoURL"); var moreInfoContent = document.getElementById("moreInfoContent"); if (updateTypeElement.getAttribute("severity") == "major") { moreInfoURL.hidden = true; moreInfoContent.hidden = false; document.get...
onShowMoreDetails: function() { var detailsDeck = document.getElementById("detailsDeck"); detailsDeck.selectedIndex = 1; },
gSMIMEContainer.setAttribute('collapsed', true);
function onSMIMEStartHeaders(){ if (gEncryptionUIVisible) { gEncryptedUINode.setAttribute('collapsed', true); gEncryptionUIVisible = false; } if (gSignedUIVisible) { gSignedUINode.setAttribute('collapsed', true); gSignedUIVisible = false; }}
var duration = Components.classes["@mozilla.org/calendar/datetime;1"].createInstance(Components.interfaces.calIDateTime); duration.minute = 5; duration.normalize()
var duration = Components.classes["@mozilla.org/calendar/duration;1"] .createInstance(Components.interfaces.calIDuration); duration.minutes = 5;
function onSnoozeAlarm(event){ // i hate xbl.. var alarmWidget = event.target; var alarmService = Components.classes["@mozilla.org/calendar/alarm-service;1"].getService(Components.interfaces.calIAlarmService); var duration = Components.classes["@mozilla.org/calendar/datetime;1"].createInstance(Components.interfac...
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.getAttribute("rowMigrate") == "no" ) { var lString = gProfileManagerBundle.getString("migratebeforestart"); lString = lS...
var dirExists; try { var profileDir = profile.getProfileDir(profilename); dirExists = profileDir.exists(); } catch (e) { dirExists = false; } if (dirExists == false) { var brandName = gBrandBundle.getString("brandShortName"); var alertString = gProfileManagerBundle.getFormattedString("profDirMissing", [brandName, pro...
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.getAttribute("rowMigrate") == "no" ) { var lString = gProfileManagerBundle.getString("migratebeforestart"); lString = lS...
var brandName = gBrandBundle.getString("brandShortName"); var message; switch (ex.result) { case Components.results.NS_ERROR_FILE_ACCESS_DENIED: message = gProfileManagerBundle.getFormattedString("profDirLocked", [brandName, profilename]); message = message.replace(/\s*<html:br\/>/g,"\n"); break; case Components.result...
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.getAttribute("rowMigrate") == "no" ) { var lString = gProfileManagerBundle.getString("migratebeforestart"); lString = lS...
promptService.alert(window, null, message); return; }
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var profilename = selected.getAttribute("profile_name"); if( selected.getAttribute("rowMigrate") == "no" ) { var lString = gProfileManagerBundle.getString("migratebeforestart"); lString = lS...
var offlineState = document.getElementById("offlineState"); var ioService = nsJSComponentManager.getServiceByID("{9ac9e770-18bc-11d3-9337-00104ba0fd40}", "nsIIOService"); ioService.offline = offlineState.checked;
if (gStartupMode) { var offlineState = document.getElementById("offlineState"); var ioService = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService); if (offlineState.checked != ioService.offline) ioService.offline = offlineState.checked; } var autoSelectLastProfile =...
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. getService(Components.interfaces.nsIPromptService); var profilename = selected.getAttribute("profile_name"); ...
profile.startApprunner(profilename);
profile.currentProfile = profilename;
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. getService(Components.interfaces.nsIPromptService); var profilename = selected.getAttribute("profile_name"); ...
gDialogParams.SetInt(0, 1);
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. getService(Components.interfaces.nsIPromptService); var profilename = selected.getAttribute("profile_name"); ...
return;
return false;
function onStart(){ var profileList = document.getElementById("profiles"); var selected = profileList.selectedItems[0]; var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. getService(Components.interfaces.nsIPromptService); var profilename = selected.getAttribute("profile_name"); ...
var showAllHeadersPref = pref.GetIntPref("mail.show_headers");
var showAllHeadersPref = pref.getIntPref("mail.show_headers");
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...
mSaveHdr = null;
this.mSaveHdr = null;
onStartHeaders: function() { mSaveHdr = null; // clear out any pending collected address timers... if (gCollectAddressTimer) { gCollectAddress = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } // every time we start to redisplay a ...
for (index in gMessageListeners) gMessageListeners[index].onStartHeaders();
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...
mSaveHdr = null;
onStartHeaders: function() { // clear out any pending collected address timers... if (gCollectAddressTimer) { gCollectAddress = ""; clearTimeout(gCollectAddressTimer); gCollectAddressTimer = null; } // every time we start to redisplay a message, check the vie...