rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var result = getServerIdAndPageIdFromTree(tree); | if (!currentSelection) return; | function onAccountClick(tree) { //dump("onAccountClick()\n"); var result = getServerIdAndPageIdFromTree(tree); //dump("sputter:"+bug51546CurrentPage+","+bug51546CurrentServerId+":"+result.pageId+","+result.serverId+"\n"); if ((bug51546CurrentPage == result.pageId) && (bug51546CurrentServerId == result.serverId)) { ... |
if ((bug51546CurrentPage == result.pageId) && (bug51546CurrentServerId == result.serverId)) { return; } bug51546CurrentPage = result.pageId; bug51546CurrentServerId = result.serverId; if (result) { showPage(result.serverId, result.pageId); updateButtons(tree,result.serverId); } | showPage(currentSelection.serverId, currentSelection.pageId); updateButtons(tree, currentSelection.serverId); | function onAccountClick(tree) { //dump("onAccountClick()\n"); var result = getServerIdAndPageIdFromTree(tree); //dump("sputter:"+bug51546CurrentPage+","+bug51546CurrentServerId+":"+result.pageId+","+result.serverId+"\n"); if ((bug51546CurrentPage == result.pageId) && (bug51546CurrentServerId == result.serverId)) { ... |
var tree = document.getElementById('fieldList'); if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) { var body = document.getElementById("exportBody"); if (body) { var name; var fIndex; for (var index = 0; index < tree.selectedItems.length; index++) { name = tree.selectedItems[index].firstChild.firstC... | var tree = document.getElementById('fieldList'); if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) { var body = document.getElementById("exportBody"); if (body) { var name; var fIndex; for (var index = 0; index < tree.selectedItems.length; index++) { name = tree.selectedItems[index].firstChild.firstC... | function OnAddExport(){ var tree = document.getElementById('fieldList'); if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) { var body = document.getElementById("exportBody"); if (body) { var name; var fIndex; for (var index = 0; index < tree.selectedItems.length; index++) { name = tree.sel... |
if (!isRFC2822Header(newHdr)) { if (!gCustomBundle) gCustomBundle = document.getElementById("bundle_custom"); var alertText = gCustomBundle.getString("colonInHeaderName"); window.alert(alertText); return; } | function onAddHeader(){ var newHdr = TrimString(gHeaderInputElement.value); gHeaderInputElement.value = ""; if (!newHdr || customHeaderOverflow()) return; if (!duplicateHdrExists(newHdr)) { gArrayHdrs[gArrayHdrs.length] = newHdr; var newItem = addRow(newHdr); gHdrsList.selectItem (newItem); // make sur... | |
if (!this.mInBatch) this.mCalendar.writeICS(); | onAddItem: function(aItem) { for (var i = 0; i < this.mObservers.length; i++) this.mObservers[i].onAddItem(aItem); if (!this.mInBatch) this.mCalendar.writeICS(); }, | |
!this.mInBatch) toDoUnifinderRefresh(); | !this.mInBatch) { if (document.getElementById("hide-completed-checkbox").checked && aItem.isCompleted) { return; } this.addItemToTree(aItem); } | onAddItem: function(aItem) { if (aItem instanceof Components.interfaces.calITodo && !this.mInBatch) toDoUnifinderRefresh(); }, |
refreshEventTree( false ); | refreshEventTree( getAndSetEventTable() ); | onAddItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { if( calendarEvent ) { refreshEventTree( false ); } } }, |
if (!this.mInBatch) refreshEventTree(); | if (!aItem instanceof Components.interfaces.calIEvent || this.mInBatch) { return; } this.addItemToTree(aItem); | onAddItem: function(aItem) { if (!this.mInBatch) refreshEventTree(); }, |
var updateStrings = document.getElementById("updateStrings"); var status = document.getElementById("versioninfo.status"); var statusString = updateStrings.getFormattedString("statusPrefix", [addon.name]); status.setAttribute("value", statusString); | onAddonUpdateEnded: function(addon, status) { if (status == nsIAUCL.STATUS_VERSIONINFO) { for (var i = 0; i < gUpdateWizard.items.length; ++i) { var item = gUpdateWizard.items[i].QueryInterface(nsIUpdateItem); if (addon.id == item.id) { gUpdateWizard.items.splice(i, 1); break; ... | |
return false; | return; | function onAdvanced(event){ if (smtpService.defaultServer && hostnameIsIllegal(gSmtpHostname.value)) { var alertTitle = window.parent.gBrandBundle.getString("brandShortName"); var alertMsg = window.parent.gPrefsBundle.getString("enterValidHostname"); var promptService = Components.classes["@mozilla.or... |
dump("XXX onAdvancedAbSearch\n"); | var selectedItems = dirTree.selectedItems; if (selectedItems.length != 1) return; var selectedABURI = selectedItems[0].getAttribute('id'); window.openDialog("chrome: "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI} ); | function onAdvancedAbSearch(){ dump("XXX onAdvancedAbSearch\n");} |
onAfterGet: function(aChannel) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); | onAfterGet: function() { var httpchannel = this.mChannel.QueryInterface(Components.interfaces.nsIHttpChannel); | onAfterGet: function(aChannel) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); try { this.mEtag = httpchannel.getResponseHeader("ETag"); } catch(e) { // No etag header. Now what? this.mEtag = null; } return true; ... |
this.mChannel = null; | onAfterGet: function(aChannel) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); try { this.mEtag = httpchannel.getResponseHeader("ETag"); } catch(e) { // No etag header. Now what? this.mEtag = null; } return true; ... | |
gSlideIncrement = prefBranch.getIntPref("alerts.slideIncrement"); | function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen... | |
resizeAlert(); | resizeAlert(true); | function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen... |
document.getElementById('alertImage').setAttribute('src', window.arguments[0]); document.getElementById('alertTitleLabel').firstChild.nodeValue = window.arguments[1]; document.getElementById('alertTextLabel').firstChild.nodeValue = window.arguments[2]; gAlertTextClickable = window.arguments[3]; gAlertCookie = window.ar... | function onAlertLoad(){ // unwrap all the args.... // arguments[0] --> the image src url // arguments[1] --> the alert title // arguments[2] --> the alert text // arguments[3] --> is the text clickable? // arguments[4] --> the alert cookie to be passed back to the listener // arguments[5] --> an optional callba... | |
gFinalHeight = prefBranch.getIntPref("alerts.height"); | function onAlertLoad(){ // unwrap all the args.... // arguments[0] --> the image src url // arguments[1] --> the alert title // arguments[2] --> the alert text // arguments[3] --> is the text clickable? // arguments[4] --> the alert cookie to be passed back to the listener // arguments[5] --> an optional callba... | |
gWidth = window.outerWidth + 10; window.moveTo(screen.availWidth, screen.availHeight); setTimeout('window.resizeTo(gWidth - 10, 1);', 1); setTimeout(animateAlert, 10); | sizeToContent(); gFinalHeight = window.outerHeight; window.outerHeight = 0; window.moveTo( (screen.availLeft + screen.availWidth - window.outerWidth) - 10, screen.availTop + screen.availHeight - window.outerHeight); setTimeout(animateAlert, gSlideTime); | function onAlertLoad(){ // unwrap all the args.... // arguments[0] --> the image src url // arguments[1] --> the alert title // arguments[2] --> the alert text // arguments[3] --> is the text clickable? // arguments[4] --> the alert cookie to be passed back to the listener // arguments[5] --> an optional callba... |
window.resizeTo(contentDim.width, contentDim.height); | if (window.innerWidth == contentDim.width + 1) --window.innerWidth; | function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen... |
this.clear(); | onAllPermissionsDeleted: function () { if (!this._view.rowCount) return; var removedPermissions = []; gTreeUtils.deleteAll(this._tree, this._view, this._permissions, removedPermissions); for (var i = 0; i < removedPermissions.length; ++i) { var p = removedPermissions[i]; this._pm.remove(p.... | |
debug("Setting timeout to open default"); | debug("panel_observer: onAssert"); if (prop == RDF.GetResource(NC + "inbatch")) { gInBatch = true; } | OnAssert : function(src,prop,target) { debug("Setting timeout to open default"); //xxxslamm This timeout does not work. JS bug #???? (bugzilla is down). // Brendan said that norris is working on this. //setTimeout("sidebarOpenDefaultPanel(100, 0)",100); }, |
OnAssert : function(src,prop,target) { debug ("*** assert");}, | OnAssert : function(src,prop,target) { debug ("*** sidebar observer: assert"); if (prop == RDF.GetResource(NC + "refresh")) { sidebar_refresh(); } }, | OnAssert : function(src,prop,target) { debug ("*** assert");}, |
var target = this.getSpecifiedNode(aTarget); | onAssert: function(aDataSource, aSource, aProperty, aTarget) { if (DEBUG) { var target = this.getSpecifiedNode(aTarget); dump("OnAssert() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + target.Value + "\n\n"); } var iter = new ... | |
"\n\t" + aProperty.Value + "\n\t" + target.Value + "\n\n"); | "\n\t" + aProperty.Value + "\n\t" + aTarget.Value + "\n\n"); | onAssert: function(aDataSource, aSource, aProperty, aTarget) { if (DEBUG) { var target = this.getSpecifiedNode(aTarget); dump("OnAssert() called with args: \n\t" + aSource.Value + "\n\t" + aProperty.Value + "\n\t" + target.Value + "\n\n"); } var iter = new ... |
dump("value = " + field.value + "\n"); dump("aOriginalString = " + aOriginalString + "\n"); dump("aMatch = " + aMatch + "\n"); | if ( field ) { dump("value = " + field.value + "\n"); dump("aOriginalString = " + aOriginalString + "\n"); dump("aMatch = " + aMatch + "\n"); | OnAutoCompleteResult: function(doc_id, aOriginalString, aMatch) { dump("textId = " + doc_id + "\n"); var field = document.getElementById(doc_id); dump("value = " + field.value + "\n"); dump("aOriginalString = " + aOriginalString + "\n"); dump("aMatch = " + aMatch + "\n"); field.value = aMatch; } |
field.value = aMatch; | field.value = aMatch; } | OnAutoCompleteResult: function(doc_id, aOriginalString, aMatch) { dump("textId = " + doc_id + "\n"); var field = document.getElementById(doc_id); dump("value = " + field.value + "\n"); dump("aOriginalString = " + aOriginalString + "\n"); dump("aMatch = " + aMatch + "\n"); field.value = aMatch; } |
styleValue += backImageStyle+dialog.BackgroundImage+";"; | styleValue += backImageStyle+dialog.BackgroundImage+");"; | function onBackgroundImageCheckbox(){ // First make a string with just background color var styleValue = colorStyle+dialog.backgroundColor+";"; if (dialog.BackgroundImageCheckbox.checked && ValidateImage()) { // Append image style styleValue += backImageStyle+dialog.BackgroundImage+";"; }dump(styleValue+"=st... |
if (dialog.BackgroundImageCheckbox.checked) | var styleValue = colorStyle+dialog.backgroundColor+";"; if (dialog.BackgroundImageCheckbox.checked && ValidateImage()) | function onBackgroundImageCheckbox(){ if (dialog.BackgroundImageCheckbox.checked) { if (ValidateImage()) { dialog.ColorPreview.setAttribute(backgroundStr, dialog.BackgroundImage); } } else { dialog.ColorPreview.removeAttribute(backgroundStr); }} |
if (ValidateImage()) { dialog.ColorPreview.setAttribute(backgroundStr, dialog.BackgroundImage); } } else { dialog.ColorPreview.removeAttribute(backgroundStr); | styleValue += backImageStyle+dialog.BackgroundImage+";"; | function onBackgroundImageCheckbox(){ if (dialog.BackgroundImageCheckbox.checked) { if (ValidateImage()) { dialog.ColorPreview.setAttribute(backgroundStr, dialog.BackgroundImage); } } else { dialog.ColorPreview.removeAttribute(backgroundStr); }} |
dump(styleValue+"=style value when setting image\n") dialog.ColorPreview.setAttribute(styleStr, styleValue); | function onBackgroundImageCheckbox(){ if (dialog.BackgroundImageCheckbox.checked) { if (ValidateImage()) { dialog.ColorPreview.setAttribute(backgroundStr, dialog.BackgroundImage); } } else { dialog.ColorPreview.removeAttribute(backgroundStr); }} | |
this.mChannel = aChannel; | onBeforeGet: function(aChannel) { return true; }, | |
return false; | return; | function onBeginLinkDrag(event,urlField,descField){ if (event.originalTarget.localName != "treechildren") return; var tree = event.target; if (!("treeBoxObject" in tree)) tree = tree.parentNode; var row = {}; var col = {}; var elt = {}; tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, e... |
var stringURL = Components.classes[WSTRING_CONTRACTID].createInstance(Components.interfaces.nsISupportsWString); | var stringURL = Components.classes[STRING_CONTRACTID].createInstance(Components.interfaces.nsISupportsString); | function onBeginLinkDrag(event,urlField,descField){ if (event.originalTarget.localName != "treechildren") return; var tree = event.target; if (!("treeBoxObject" in tree)) tree = tree.parentNode; var row = {}; var col = {}; var elt = {}; tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, e... |
onBlur: function onBlur() { this.element.setAttribute("name", gDialog.selectName.value); if (gDialog.selectSize.value) this.element.setAttribute("size", gDialog.selectSize.value); else this.element.removeAttribute("size"); if (gDialog.selectMultiple.checked) this.element.setAttribute("multiple", ""); else thi... | optgroupObject.prototype.onBlur = function onBlur() { this.element.label = gDialog.optgroupLabel.value; this.element.disabled = gDialog.optgroupDisabled.checked; }; | onBlur: function onBlur() { this.element.setAttribute("name", gDialog.selectName.value); if (gDialog.selectSize.value) this.element.setAttribute("size", gDialog.selectSize.value); else this.element.removeAttribute("size"); if (gDialog.selectMultiple.checked) thi... |
if (aCalendar.canRefresh) { var remoteCommand = document.getElementById("reload_remote_calendars"); remoteCommand.removeAttribute("disabled"); } | onCalendarRegistered: function(aCalendar) { // Enable new calendars by default getDisplayComposite().addCalendar(aCalendar); setCalendarManagerUI(); document.getElementById("new_command").removeAttribute("disabled"); document.getElementById("new_todo_command").removeAttribute("dis... | |
var newSelectedEvents = new Array(); var oldSelectedEvents = gCalendarWindow.EventSelection.selectedEvents; for (var i in oldSelectedEvents) { if (!oldSelectedEvents[i].calendar.uri.equals(aCalendar.uri)) newSelectedEvents.push(oldSelectedEvents[i]); } gCalendarWindow.EventSelection.setArrayToSelection(newSelectedEvent... | onCalendarRemoved: function (aCalendar) { var item = getListItem(aCalendar); if (item) { var checkCell = item.firstChild; checkCell.setAttribute('checked', false); } }, | |
if (aCalendar.canRefresh) { var calendars = getCalendarManager().getCalendars({}); function calCanRefresh(cal) { return (cal.canRefresh && !cal.uri.equals(aCalendar.uri)); } if (!calendars.some(calCanRefresh)) { var remoteCommand = document.getElementById("reload_remote_calendars"); remoteCommand.setAttribute("disabl... | onCalendarUnregistering: function(aCalendar) { var item = getListItem(aCalendar); if (item) { var listbox = document.getElementById("list-calendars-listbox"); listbox.removeChild(item); // This is called before the calendar is actually deleted, so ==1 is correct ... | |
debug("some silly cancel handler /*"+hPrefWindow.cancelHandlers[i]+"*/ failed: "+ e); | dump("some silly cancel handler /*"+hPrefWindow.cancelHandlers[i]+"*/ failed: "+ e); | onCancel: function () { for( var i = 0; i < hPrefWindow.cancelHandlers.length; i++ ) try { hPrefWindow.cancelHandlers[i](); } catch (e) { debug("some silly cancel handler /*"+hPrefWindow.cancelHandlers[i]+"*/ failed: "+ e); ... |
return true; | onCancel: function () { for( var i = 0; i < hPrefWindow.cancelHandlers.length; i++ ) try { hPrefWindow.cancelHandlers[i](); } catch (e) { dump("some silly cancel handler /*"+hPrefWindow.cancelHandlers[i]+"*/ failed: "+ e); ... | |
if( top.window.opener ) window.close(); else { try { profile.forgetCurrentProfile(); } catch (ex) { dump("failed to forget current profile.\n"); } window.close(); | if (!window.opener) return true; try { gProfile.forgetCurrentProfile(); | function onCancel(){ if( top.window.opener ) window.close(); else { try { profile.forgetCurrentProfile(); } catch (ex) { dump("failed to forget current profile.\n"); } window.close(); }} |
catch (ex) { } return true; | function onCancel(){ if( top.window.opener ) window.close(); else { try { profile.forgetCurrentProfile(); } catch (ex) { dump("failed to forget current profile.\n"); } window.close(); }} | |
setPageData(pageData, "identity", "email", "nospam@nospam"); | setPageData(pageData, "identity", "email", "user@domain.invalid"); | function onCancel() { var firstInvalidAccount = getFirstInvalidAccount(); // if the user cancels the the wizard when it pops up because of // an invalid account (example, a webmail account that activation started) // we just force create it by setting some values and calling the FinishAccount() // see bug #47521 for t... |
var confirmTitle = Bundle.GetStringFromName("accountWizard"); var confirmMsg = Bundle.GetStringFromName("cancelWizard"); | var confirmTitle = gPrefsBundle.getString("accountWizard"); var confirmMsg = gPrefsBundle.getString("cancelWizard"); | function onCancel() { var firstInvalidAccount = getFirstInvalidAccount(); // if the user cancels the the wizard when it pops up because of // an invalid account (example, a webmail account that activation started) // we just force create it by setting some values and calling the FinishAccount() // see bug #47521 for t... |
smtpService.defaultServer = gOldDefaultSmtpServer; | if (gOldDefaultSmtpServer) smtpService.defaultServer = gOldDefaultSmtpServer; | function onCancel(){ window.arguments[0].result = false; smtpService.defaultServer = gOldDefaultSmtpServer; window.opener.onExitAdvancedDialog(gAddedSmtpServers,false); return true;} |
OnChange : function(src,prop,old_target,new_target) {}, | OnChange : function(src,prop,old_target,new_target) { debug ("*** sidebar observer: change"); }, | OnChange : function(src,prop,old_target,new_target) {}, |
if ( !UpdateExistingAttribute( name, value, "HTMLAList" ) ) | if ( !UpdateExistingAttribute( name, value, "HTMLAList" ) && value) | function onChangeHTMLAttribute(){ var name = TrimString(gDialog.AddHTMLAttributeNameInput.value); if (!name) return; var value = TrimString(gDialog.AddHTMLAttributeValueInput.value); // First try to update existing attribute // If not found, add new attribute if ( !UpdateExistingAttribute( name, value, "HTMLAL... |
dump("OnChangeSrc ****************\n"); | function OnChangeSrc(){ doOverallEnabling();} | |
param.SetInt( 1, (param.GetInt( 1 ) ? 0 : 1 )); | var element=document.getElementById("checkbox" ); param.SetInt( 1, element.checked ); | function onCheckboxClick(){ param.SetInt( 1, (param.GetInt( 1 ) ? 0 : 1 ));// dump("setting checkbox to "+ element.checked+"\n");} |
var broadcaster_keepMsg = document.getElementById("bc_keepMsg"); | function onCheckKeepMsg(){ if (gLockedPref["nntp.keepMsg"]) { // if the pref associated with the radiobutton is locked, as indicated // by the gLockedPref, skip this function. All elements in this // radiogroup have been locked by the function onLockPreference. return; } var broadc... | |
broadcaster_keepMsg.setAttribute("disabled", "true"); | document.getElementById("nntp.keepNewMsgMin").setAttribute("disabled", "true"); document.getElementById("nntp.keepOldMsgMin").setAttribute("disabled", "true"); | function onCheckKeepMsg(){ if (gLockedPref["nntp.keepMsg"]) { // if the pref associated with the radiobutton is locked, as indicated // by the gLockedPref, skip this function. All elements in this // radiogroup have been locked by the function onLockPreference. return; } var broadc... |
if (dialog.openAppList.data == "2") { | if (dialog.openAppList.value == "2") { | function onChooseFile() { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); if (dialog.openAppList.data == "2") { // When loading into Composer, direct user to prefer HT... |
else | else { | function onChooseFile() { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); if (dialog.openAppList.data == "2") { // When loading into Composer, direct user to prefer... |
nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML); | nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML); } | function onChooseFile() { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); if (dialog.openAppList.data == "2") { // When loading into Composer, direct user to prefer... |
{ | function onChooseFile() { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); if (dialog.openAppList.data == "2") { // When loading into Composer, direct user to prefer... | |
} } catch(ex) { } | } catch(ex) { } | function onChooseFile() { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); if (dialog.openAppList.data == "2") { // When loading into Composer, direct user to prefer... |
fp.init(window, document.getElementById("fpDialog").getAttribute("value"), nsIFilePicker.modeSave); | fp.init(window, document.getElementById("fpDialog").getAttribute("label"), nsIFilePicker.modeSave); | function onChooseFile(){ if (dialog.fileRadio.checked == false) { return; } try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, document.getElementById("fpDialog").getAttribute("value"), nsIFilePicker.modeSave); fp.appendFilters(nsIFilePicker.filt... |
dialog.input.value = fp.file.path; | { var tempFileSpec = Components.classes["component: tempFileSpec.nativePath = fp.file.path; dialog.input.value = tempFileSpec.URLString; } | function onChooseFile() { try { var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); // When loading into Composer, direct user to prefer HTML files and text files: if (dialog... |
client.currentObject.messageCount = 0; | function onClearCurrentView(){ if (client.output.firstChild) client.output.removeChild (client.output.firstChild); client.currentObject.messages = null; client.currentObject.display (getMsg("onClearCurrentViewMsg"), "INFO"); client.output.appendChild (client.currentObject.messages); } | |
if (client.output.firstChild) client.output.removeChild (client.output.firstChild); | function onClearCurrentView(){ if (client.output.firstChild) client.output.removeChild (client.output.firstChild); client.currentObject.messages = null; client.currentObject.messageCount = 0; client.currentObject.display (getMsg("onClearCurrentViewMsg"), "INFO"); client.output.appendChild (client.... | |
client.output.appendChild (client.currentObject.messages); | client.currentObject.frame.reload(); | function onClearCurrentView(){ if (client.output.firstChild) client.output.removeChild (client.output.firstChild); client.currentObject.messages = null; client.currentObject.messageCount = 0; client.currentObject.display (getMsg("onClearCurrentViewMsg"), "INFO"); client.output.appendChild (client.... |
client.currentObject.display ("Messages Cleared.", "INFO"); | client.currentObject.display (getMsg("onClearCurrentViewMsg"), "INFO"); | function onClearCurrentView(){ if (client.output.firstChild) client.output.removeChild (client.output.firstChild); client.currentObject.messages = (void 0); delete client.currentObject.messages; client.currentObject.display ("Messages Cleared.", "INFO"); client.output.appendChild (client.currentOb... |
var focusedElement = gLastFocusedElement; | if (!gSearchInput.showingSearchCriteria) { gQuickSearchFocusEl = gLastFocusedElement; | function onClearSearch(){ var focusedElement = gLastFocusedElement; //save of the last focused element so that focus can be restored Search(""); focusedElement.focus();} |
focusedElement.focus(); | setTimeout("restoreSearchFocusAfterClear();", 0); } | function onClearSearch(){ var focusedElement = gLastFocusedElement; //save of the last focused element so that focus can be restored Search(""); focusedElement.focus();} |
( event.button != 1 || event.clickCount != 2 ) ) | ( event.button != 1 || event.detail != 2 ) ) | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.clickCount != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var sele... |
setTimeout("PositionThreadPane();",0); | setTimeout("ScrollToMessage(new,true,true);",0); | function OnClickThreadAndMessagePaneSplitter(){ var collapsed = IsThreadAndMessagePaneSplitterCollapsed(); // collapsed is the previous state, so we must be expanding // the splitter if collapsed is true if (gDBView) { if (collapsed) gDBView.supressMsgDisplay = true; else gDBView.supressMsgDisplay ... |
dialog.cancel.childNodes[0].nodeValue = bundle.GetStringFromName("close"); | dialog.cancel.childNodes[0].nodeValue = "Close"; | function onCompletion( status ) { // Note that we're done (and can ignore subsequent progress notifications). completed = true; // Indicate completion in status area. var msg = getString( "completeMsg" ); msg = replaceInsert( msg, 1, formatSeconds( elapsed/1000 ) ); onStatus( msg ); // Put progress... |
window.setTimeout( "window.close();", 2000 ); | dialog.cancel.childNodes[0].nodeValue = "Close"; window.close(); dump( "Close still not working right!\n" ); | function onCompletion( status ) { // Note that we're done (and can ignore subsequent progress notifications). completed = true; // Indicate completion in status area. onStatus( "Download completed in " + formatSeconds( elapsed/1000 ) ); // Put progress meter at 100%. dialog.progress.setAttribute( "val... |
document.title = gConfigBundle.getString("title"); | function onConfigLoad(){ // Load strings gConfigBundle = document.getElementById("configBundle"); document.title = gConfigBundle.getString("title"); gLockStrs[PREF_IS_DEFAULT_VALUE] = gConfigBundle.getString("default"); gLockStrs[PREF_IS_USER_SET] = gConfigBundle.getString("user"); gLockStrs[PREF_IS_LOCKED] = gCo... | |
var statusText = gAddressBookBundle.getString("noMatchFound"); | statusText = gAddressBookBundle.getString("noMatchFound"); | onCountChanged: function(total) { if (total == 0) var statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) var statusText = gAddressBookBundle.getString("matchFound"); else var statusText = gAddressBookBundle.getFormattedString("matchesFound", [to... |
var statusText = gAddressBookBundle.getString("matchFound"); | statusText = gAddressBookBundle.getString("matchFound"); | onCountChanged: function(total) { if (total == 0) var statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) var statusText = gAddressBookBundle.getString("matchFound"); else var statusText = gAddressBookBundle.getFormattedString("matchesFound", [to... |
var statusText = gAddressBookBundle.getFormattedString("matchesFound", [total]); | statusText = gAddressBookBundle.getFormattedString("matchesFound", [total]); | onCountChanged: function(total) { if (total == 0) var statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) var statusText = gAddressBookBundle.getString("matchFound"); else var statusText = gAddressBookBundle.getFormattedString("matchesFound", [to... |
if (total == 0) statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) | switch (total) { case 0: statusText = gAddressBookBundle.getString("noMatchFound"); break; case 1: | onCountChanged: function(total) { var statusText; if (total == 0) statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) statusText = gAddressBookBundle.getString("matchFound"); else statusText = gAddressBookBundle.getFormattedString("matchesFoun... |
else | break; default: | onCountChanged: function(total) { var statusText; if (total == 0) statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) statusText = gAddressBookBundle.getString("matchFound"); else statusText = gAddressBookBundle.getFormattedString("matchesFoun... |
break; | onCountChanged: function(total) { var statusText; if (total == 0) statusText = gAddressBookBundle.getString("noMatchFound"); else { if (total == 1) statusText = gAddressBookBundle.getString("matchFound"); else statusText = gAddressBookBundle.getFormattedString("matchesFoun... | |
{ dump("onDataAvailable status = " + request.status.toString(16) + " " + count + "\n"); } | { } | onDataAvailable: function(request, ctxt, inStream, sourceOffset, count) { dump("onDataAvailable status = " + request.status.toString(16) + " " + count + "\n"); } |
updateAlarmItemEnabled(); | function onDateTimeCheckbox(checkbox, pickerId){ var picker = document.getElementById( pickerId ); picker.disabled = !checkbox.checked; updateOKButton();} | |
var userEndDate =new Date(gEndDate) | var displayEndDate = new Date(gEndDate) | function onDateTimePick( dateTimePicker ){ var pickedDateTime = new Date( dateTimePicker.value); if( dateTimePicker.id == "end-datetime" ) { if( getFieldValue( "all-day-event-checkbox", "checked" ) ) { //user enddate == ical enddate - 1 (for allday events) pickedDateTime.setDate( pickedDateTime.ge... |
userEndDate.setDate( userEndDate.getDate() - 1 ); | displayEndDate.setDate( displayEndDate.getDate() - 1 ); | function onDateTimePick( dateTimePicker ){ var pickedDateTime = new Date( dateTimePicker.value); if( dateTimePicker.id == "end-datetime" ) { if( getFieldValue( "all-day-event-checkbox", "checked" ) ) { //user enddate == ical enddate - 1 (for allday events) pickedDateTime.setDate( pickedDateTime.ge... |
document.getElementById( "end-datetime" ).value = userEndDate; | document.getElementById( "end-datetime" ).value = displayEndDate; | function onDateTimePick( dateTimePicker ){ var pickedDateTime = new Date( dateTimePicker.value); if( dateTimePicker.id == "end-datetime" ) { if( getFieldValue( "all-day-event-checkbox", "checked" ) ) { //user enddate == ical enddate - 1 (for allday events) pickedDateTime.setDate( pickedDateTime.ge... |
if (accountArray[result.serverId]) accountArray[result.serverId] = null; currentServerId = currentPageId = null; | function onDeleteAccount(event) { //dump("onDeleteAccount\n"); if (event.target.getAttribute("disabled") == "true") return; var result = getServerIdAndPageIdFromTree(accounttree); if (!result) return; var account = getAccountFromServerId(result.serverId); if (!account) return; var server = account... | |
Bundle.GetStringFromName("confirmDeleteAccount"); | gPrefsBundle.getString("confirmDeleteAccount"); | function onDeleteAccount(event) { //dump("onDeleteAccount\n"); if (event.target.getAttribute("disabled") == "true") return; var result = getServerIdAndPageIdFromTree(accounttree); if (!result) return; var account = getAccountFromServerId(result.serverId); if (!account) return; var server = account... |
var alertText = Bundle.GetStringFromName("failedDeleteAccount"); | var alertText = gPrefsBundle.getString("failedDeleteAccount"); | function onDeleteAccount(event) { //dump("onDeleteAccount\n"); if (event.target.getAttribute("disabled") == "true") return; var result = getServerIdAndPageIdFromTree(accounttree); if (!result) return; var account = getAccountFromServerId(result.serverId); if (!account) return; var server = account... |
client.currentObject.display ("Cannot delete last view.", "ERROR"); | client.currentObject.display (getMsg("onDeleteCurrentViewMsg"), "ERROR"); | function onDeleteCurrentView(){ var tb = getTBForObject(client.currentObject); if (client.viewsArray.length < 2) { client.currentObject.display ("Cannot delete last view.", "ERROR"); return; } if (tb) { var i = deleteToolbutton (tb); if (i != -1) { del... |
if (!this.mInBatch) this.mCalendar.writeICS(); | onDeleteItem: function(aDeletedItem) { for (var i = 0; i < this.mObservers.length; i++) this.mObservers[i].onDeleteItem(aDeletedItem); if (!this.mInBatch) this.mCalendar.writeICS(); }, | |
!this.mInBatch) toDoUnifinderRefresh(); | !this.mInBatch) { if (document.getElementById("hide-completed-checkbox").checked && aDeletedItem.isCompleted) { return; } this.removeItemFromTree(aDeletedItem); } | onDeleteItem: function(aDeletedItem) { if (aDeletedItem instanceof Components.interfaces.calITodo && !this.mInBatch) toDoUnifinderRefresh(); }, |
refreshEventTree( false ); | refreshEventTree( getAndSetEventTable() ); | onDeleteItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { refreshEventTree( false ); } }, |
if (!this.mInBatch) refreshEventTree(); | if (!aDeletedItem instanceof Components.interfaces.calIEvent || this.mInBatch) { return; } this.removeItemFromTree(aDeletedItem); | onDeleteItem: function(aDeletedItem) { if (!this.mInBatch) refreshEventTree(); }, |
client.deck.removeChild(view.frame); delete view.frame; | function onDeleteView(view){ var tb = getTabForObject(view); if (client.viewsArray.length < 2) { view.display (getMsg("onDeleteViewMsg"), "ERROR"); return; } if (tb) { var i = deleteTab (tb); if (i != -1) { delete view.messageCount; delete v... | |
gStatusFeedback.showStatusString(gSubscribeBundle.getString("doneString")); | gStatusFeedback.showStatusString(""); | OnDonePopulating: function() { gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(gSubscribeBundle.getString("doneString")); gStatusBar.setAttribute("mode","normal"); // only re-root the tree, if it is null. // otherwise, we are in here because we are populating // a part of the ... |
gStatusFeedback.showProgress(100); | gStatusFeedback.showProgress(0); | OnDonePopulating: function() { gStatusFeedback.showProgress(100); gStatusFeedback.showStatusString(gSubscribeBundle.getString("doneString")); gStatusBar.setAttribute("mode","normal"); // only re-root the tree, if it is null. // otherwise, we are in here because we are populating // a part of th... |
if (refValue == "null") { | if (!refValue) { | OnDonePopulating: function() { gStatusFeedback.showProgress(100); gStatusFeedback.showStatusString(gSubscribeBundle.getString("doneString")); gStatusBar.setAttribute("mode","normal"); // only re-root the tree, if it is null. // otherwise, we are in here because we are populating // a part of th... |
newStyle = window.prompt ("Enter stylesheet filename " + "(relative to chrome: | newStyle = window.prompt (getMsg("onDoStyleChangeMsg")); | function onDoStyleChange (newStyle){ if (newStyle == "other") newStyle = window.prompt ("Enter stylesheet filename " + "(relative to chrome://chatzilla/skin/)"); if (newStyle) { setOutputStyle (newStyle); setCurrentObject(client.currentObject); } } |
var lastModifiedHeader = request.getResponseHeader('Last-Modified'); if (lastModifiedHeader) this.lastModified = lastModifiedHeader; | onDownloaded: function(aEvent) { var request = aEvent.target; var url = request.channel.originalURI.spec; debug(url + " downloaded"); var feed = FeedCache.getFeed(url); if (!feed) throw("error after downloading " + url + ": couldn't retrieve feed from request"); feed.parse(); // parse will as... | |
feed.downloadCallback(feed); | feed.downloadCallback.downloaded(feed); | Feed.onDownloaded = function(event) { var request = event.target; var url = request.channel.originalURI.spec; debug(url + " downloaded"); var feed = gFzFeedCache[url]; if (!feed) throw("error after downloading " + url + ": couldn't retrieve feed from request"); feed.parse(); if (feed.downloadCallback) feed... |
if (feed.downloadCallback) feed.downloadCallback.downloaded(feed, kNewsBlogRequestFailure); | if (feed.downloadCallback) { feed.downloadCallback.downloaded(feed, request.status == 304 ? kNewsBlogNoNewItems : kNewsBlogRequestFailure); } | onDownloadError: function(aEvent) { var request = aEvent.target; var url = request.channel.originalURI.spec; var feed = FeedCache.getFeed(url); if (feed.downloadCallback) feed.downloadCallback.downloaded(feed, kNewsBlogRequestFailure); FeedCache.removeFeed(url); }, |
feed.downloadCallback(nsnull); | feed.downloaded(nsnull); | Feed.onDownloadError = function(event) { // XXX add error message if available and notify the user? var request = event.target; var url = request.channel.originalURI.spec; var feed = gFzFeedCache[url]; if (feed) { debug(feed.title + " download failed"); if (feed.downloadCallback) feed.downloadCallback(... |
if (f.isExecutable()) { var dontAsk = false; var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); try { dontAsk = !pref.getBoolPref(PREF_BDM_ALERTONEXEOPEN); } catch (e) { } if (!dontAsk) { var strings = document.getElementById("downloadStrings"); var na... | function onDownloadOpen(aEvent){ var download = aEvent.target; if (download.localName == "download") { if (download.openable) { var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); if (f.exists()) { // XX... | |
openExternal(f.path); | openExternal(f); | function onDownloadOpen(aEvent){ if (aEvent.type == "dblclick" && aEvent.button != 0) return; var download = aEvent.target; if (download.localName == "download") { if (download.openable) { var f = getLocalFileFromNativePathOrUrl(aEvent.target.id); if (f.exists()) { if (f.isExecutable()) { ... |
gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex; gDownloadsView.selectedItem.focus(); | function onDownloadPause(aEvent){ var uri = aEvent.target.id; gDownloadManager.pauseDownload(uri); setRDFProperty(uri, "DownloadStatus", aEvent.target.getAttribute("status-internal")); setRDFProperty(uri, "ProgressPercent", aEvent.target.getAttribute("progress"));} | |
gDownloadsView.clearSelection(); if (selectedIndex >= gDownloadsView.getRowCount()) gDownloadsView.selectedIndex = selectedIndex - 1; else gDownloadsView.selectedIndex = selectedIndex; gDownloadsView.focus(); | function onDownloadRemove(aEvent){ if (aEvent.target.removable) { var selectedIndex = gDownloadsView.selectedIndex; gDownloadManager.removeDownload(aEvent.target.id); // now reset the richlistbox since the template was rebuilt gDownloadsView.clearSelection(); if (selectedIndex >= gDownloadsView.getRowCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.