rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (duplicateFilterNameExists(gFilterNameElement.value)) { if (gPromptService) gPromptService.alert(window, gFilterBundle.getString("cannotHaveDuplicateFilterTitle"), gFilterBundle.getString("cannotHaveDuplicateFilterMessage") ); return false; } | function onAccept(){ if (duplicateFilterNameExists(gFilterNameElement.value)) { if (gPromptService) gPromptService.alert(window, gFilterBundle.getString("cannotHaveDuplicateFilterTitle"), gFilterBundle.getString("cannotHaveDuplicateFilterMessage") ); return fa... | |
document.persist("description-row", "collapsed"); | function onAccept(){ // if this event isn't mutable, we need to clone it like a sheep var originalItem = window.calendarItem; var item = (originalItem.isMutable) ? originalItem : originalItem.clone(); saveDialog(item); var calendar = document.getElementById("item-calendar").selectedItem.calendar; wind... | |
"chrome,resizable=1,modal=1,dialog=1",params); | "chrome,centerscreen,modal",params); | function onAccept(){ var params = Components.classes[nsPKIParamBlock].createInstance(nsIPKIParamBlock); params.setISupportAtIndex(1, crl); window.openDialog("chrome://pippki/content/pref-crlupdate.xul","", "chrome,resizable=1,modal=1,dialog=1",params); return true;} |
attendeespage.saveDateTime(); | function onAccept(){ var attendeespage = document.getElementById("attendees-page"); var attendees = attendeespage.attendees; var organizer = attendeespage.organizer; var startTime = attendeespage.startDate; var endTime = attendeespage.endDate; window.onAcceptCallback(attendees,organizer,startTime,endTime); retur... | |
return true; | return false; | function onAccept(){ // Insert the character // Note: Assiated parent window and editorShell // will be changed to whatever editor window has the focus window.editorShell.InsertSource(LatinChar); // Set persistent attributes to save // which category, letter, and character modifier was used CategoryGroup.setAt... |
if (!smtpService) { smtpService = Components.classes["@mozilla.org/messengercompose/smtp;1"].getService(Components.interfaces.nsISmtpService); } | function onAccountWizardLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); gMessengerBundle = document.getElementById("bundle_messenger"); /* We are checking here for the callback argument */ if (window.arguments && window.arguments[0]) { if(window.arguments[0].okCallback ) { ... | |
gDefaultAccount = accountm.defaultAccount; | gDefaultAccount = am.defaultAccount; | function onAccountWizardLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); gMessengerBundle = document.getElementById("bundle_messenger"); /* We are checking here for the callback argument */ if (window.arguments && window.arguments[0]) { if(window.arguments[0].okCallback ) { ... |
var checkGlobalInbox = document.getElementById("deferStorage"); try { checkGlobalInbox.checked = gPrefs.getBoolPref("mail.accountwizard.deferstorage"); } catch(e) {} | function onAccountWizardLoad() { gPrefsBundle = document.getElementById("bundle_prefs"); gMessengerBundle = document.getElementById("bundle_messenger"); if ("testingIspServices" in this) { if ("SetCustomizedWizardDimensions" in this && testingIspServices()) { SetCustomizedWizardDimensions(); }... | |
if (!aItem.alarmOffset && !(aItem.parentItem && aItem.parentItem.alarmOffset)) { return; } | onAddItem: function(aItem) { if (!aItem.alarmOffset && !(aItem.parentItem && aItem.parentItem.alarmOffset)) { return; } var occs = []; if (aItem.recurrenceInfo) { var start = this.alarmService.mRangeEnd.clone(); ... | |
function hasAlarm(a) { return a.alarmOffset || a.parentItem.alarmOffset; } occs = occs.filter(hasAlarm); | onAddItem: function(aItem) { if (!aItem.alarmOffset && !(aItem.parentItem && aItem.parentItem.alarmOffset)) { return; } var occs = []; if (aItem.recurrenceInfo) { var start = this.alarmService.mRangeEnd.clone(); ... | |
onAddItem: function(aItem) { calendarWindow.currentView.refreshEvents(); }, | onAddItem: function(aItem) { if (!this.mInBatch) calendarWindow.currentView.refreshEvents(); }, | onAddItem: function(aItem) { calendarWindow.currentView.refreshEvents(); }, |
if( calendarEvent ) { unifinderRefesh(); } | if( !gICalLib.batchMode ) { if( calendarEvent ) { unifinderRefesh(); } } | onAddItem : function( calendarEvent ) { if( calendarEvent ) { unifinderRefesh(); } }, |
if (!aItem instanceof Components.interfaces.calIEvent || | if (!(aItem instanceof Components.interfaces.calIEvent) || | onAddItem: function(aItem) { if (!aItem instanceof Components.interfaces.calIEvent || this.mInBatch) { return; } this.addItemToTree(aItem); }, |
var statusMsg = getExtensionString("updateCompatibilityMsg"); | statusMsg = getExtensionString("updateCompatibilityMsg"); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... |
var statusMsg = getExtensionString("updateErrorMessage", [name]); | statusMsg = getExtensionString("updateErrorMessage", [name]); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... |
var name = element.getAttribute("name"); var statusMsg = getExtensionString("updateDisabledMessage", [name]); | name = element.getAttribute("name"); statusMsg = getExtensionString("updateDisabledMessage", [name]); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... |
var statusMsg = getExtensionString("updateNoUpdateMsg"); | statusMsg = getExtensionString("updateNoUpdateMsg"); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... |
var statusMsg = getExtensionString("updateNotManagedMessage", [getBrandShortName()]); | statusMsg = getExtensionString("updateNotManagedMessage", [getBrandShortName()]); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... |
var statusMsg = getExtensionString("updateReadOnlyMessage"); | statusMsg = getExtensionString("updateReadOnlyMessage"); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... |
default: statusMsg = getExtensionString("updateNoUpdateMsg"); | onAddonUpdateEnded: function(addon, status) { if (!document) return; var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; switch (status) { case nsIAUCL.STATUS_UPDATE: var u... | |
pop3Server.deferredToAccount = serverSettings.deferredToAccount; | function onAdvanced(){ dump("onAdvanced..\n"); var serverKeyElement = document.getElementById("identity.smtpServerKey"); var oldSmtpServerKey = serverKeyElement.getAttribute("value"); dump("selected key = " + oldSmtpServerKey + "\n"); var serverSettings = {}; serverSettings.smtpServerList = oldSmtpServerKey; // ... | |
if (dialog.AdvancedRow) { dump("AdvancedRow still exists ****\n"); } | function onAdvanced(){ if (dialog.AdvancedRow) { dump("AdvancedRow still exists ****\n"); } if (advanced) { dump("Changing to BASIC mode\n"); advanced = false; // BUG: This works to hide the row, but // setting visibility to "show" doesn't bring it back //dialog.AdvancedRow.style.visibility = "co... | |
dialog.AdvancedRow.style.display = "none"; | dialog.AdvancedRow.style.visibility = "collapse"; | function onAdvanced(){ if (dialog.AdvancedRow) { dump("AdvancedRow still exists ****\n"); } if (advanced) { dump("Changing to BASIC mode\n"); advanced = false; // BUG: This works to hide the row, but // setting visibility to "show" doesn't bring it back //dialog.AdvancedRow.style.visibility = "co... |
dialog.AdvancedRow.style.display = "table-row"; | dialog.AdvancedRow.style.visibility = "visible"; | function onAdvanced(){ if (dialog.AdvancedRow) { dump("AdvancedRow still exists ****\n"); } if (advanced) { dump("Changing to BASIC mode\n"); advanced = false; // BUG: This works to hide the row, but // setting visibility to "show" doesn't bring it back //dialog.AdvancedRow.style.visibility = "co... |
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.org/embedcomp/prompt-service;1"].getService(Comp... | function onAdvanced(event){ // fix for bug #60647 // when the user presses "Advanced..." we save any changes // they made so that the changes will show up in the advanced dialog // and when they return from the advanced dialog, the changes they // made won't be blown away. // // the only remaing pr... | |
onSave(); | function onAdvanced(event){ var args = {result: false}; window.openDialog('chrome://messenger/content/SmtpServerList.xul', 'smtp', 'modal,titlebar,chrome', args); if (args.result) { // this is the wrong way to do this. dump("reloading panel...\n"); onLoad(); }} | |
if (httpchannel.responseStatus == 304) return false; if (httpchannel.responseStatus == 404) return false; | onAfterGet: function() { var httpchannel = this.mChannel.QueryInterface(Components.interfaces.nsIHttpChannel); try { this.mEtag = httpchannel.getResponseHeader("ETag"); } catch(e) { // No etag header. Now what? this.mEtag = null; } this.mChannel = ... | |
dump("new etag: "+this.mEtag+"\n"); | onAfterPut: function(aChannel) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); try { this.mEtag = httpchannel.getResponseHeader("ETag"); dump("new etag: "+this.mEtag+"\n"); } catch(e) { // There was no ETag header on the respon... | |
var wWatcher = Components.classes[ "@mozilla.org/embedcomp/window-watcher;1"] .getService( Components.interfaces.nsIWindowWatcher ); var gAlarmWindow = wWatcher.getWindowByName( "calendar-alarm-window", null); | var wMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var gAlarmWindow = wMediator.getMostRecentWindow("calendarAlarmWindow"); | onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo... |
gAlarmWindow.name = "calendar-alarm-window"; | onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo... | |
dump( "\n\nCALLING ONALARMCALL IN calendarEventAlertDialog.js" ); | function onAlarmCall( Event ){ var AddToArray = true; //check and make sure that the event is not already in the array for( i = 0; i < gAllEvents.length; i++ ) { if( gAllEvents[i].id == Event.id ) AddToArray = false; } if( AddToArray ) gAllEvents[ gAllEvents.length ] = Event; dump( "\... | |
sizeToContent(); | resizeAlert(); | 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... |
gFinalHeight = window.outerHeight; window.outerHeight = 1; window.moveTo( (screen.availLeft + screen.availWidth - window.outerWidth) - 10, screen.availTop + screen.availHeight - window.outerHeight); setTimeout(animateAlert, gSlideTime); | if (!gPendingPreviewFetchRequests) setTimeout(animateAlert, gSlideTime); | 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(); | 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... | |
setTimeout(animateAlert, gSlideTime); | showAlert(); else resizeAlert(); | 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... |
showAlert(); else resizeAlert(); | setTimeout(showAlert, 0); | 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... |
if (aProperty.Value == NC_NS+"BookmarksToolbarFolder") { | if (aProperty.Value == gNC_NS+"BookmarksToolbarFolder") { | onAssert: function (aDataSource, aSource, aProperty, aTarget) { if (aProperty.Value == NC_NS+"BookmarksToolbarFolder") { var bt = document.getElementById("bookmarks-ptf"); if (bt) { bt.ref = aSource.Value; document.getElementById("bookmarks-chevron").ref = aSource.Value; } } thi... |
{ debug("panel_observer: onAssert"); if (prop == RDF.GetResource(NC + "inbatch")) { gInBatch = true; } }, | { debug("panel_observer: onAssert"); }, | OnAssert : function(src,prop,target) { debug("panel_observer: onAssert"); if (prop == RDF.GetResource(NC + "inbatch")) { gInBatch = true; } }, |
if (this.mEtag) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); httpchannel.setRequestHeader("If-None-Match", this.mEtag, false); } | onBeforeGet: function(aChannel) { this.mChannel = aChannel; return true; }, | |
listitem.label = document.getElementById('bookmarkname').value; listitem.value = document.getElementById('bookmarkurl').value; | listitem.setAttribute("label", document.getElementById('bookmarkname').value); listitem.setAttribute("value", document.getElementById('bookmarkurl').value); | function OnBookmarkOK(){ listbox = this.opener.document.getElementById(getPageId() +'.bookmarkList'); var listitem; if (window.name == 'newbookmark') { listitem = listbox.appendItem(document.getElementById('bookmarkname').value, document.getElementById('bookmarkurl').value); listitem.setAttribute("class", "lis... |
function onBrowserKeyPress(evt) { if (!shouldFastFind(evt)) return; | onBrowserKeyPress: function (evt) { if (!this.shouldFastFind(evt)) return; | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) | var findField = document.getElementById("find-field"); if (this.mFindMode != FIND_NORMAL && this.mQuickFindTimeout) { if (!evt.charCode) return; this.selectFindBar(); this.focusFindBar(); this.fireKeypressEvent(findField.inputField, evt); evt.preventDefault(); | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, evt); evt.preventDefault(); return; } | } | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
if (evt.charCode == CHAR_CODE_APOSTROPHE || evt.charCode == CHAR_CODE_SLASH || (gUseTypeAheadFind && evt.charCode && evt.charCode != CHAR_CODE_SPACE)) { var findMode = (evt.charCode == CHAR_CODE_APOSTROPHE || (gTypeAheadLinksOnly && evt.charCode != CHAR_CODE_SLASH)) ? FIND_LINKS : FIND_TYPEAHEAD; setFindMode(findMode);... | if (evt.charCode == CHAR_CODE_APOSTROPHE || evt.charCode == CHAR_CODE_SLASH || (this.mUseTypeAheadFind && evt.charCode && evt.charCode != CHAR_CODE_SPACE)) { var findMode = (evt.charCode == CHAR_CODE_APOSTROPHE || (this.mTypeAheadLinksOnly && evt.charCode != CHAR_CODE_SLASH)) ? FIND_LINKS : FIND_TYPEAHEAD; this.setFind... | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
if (evt.charCode != CHAR_CODE_APOSTROPHE && | if (this.mUseTypeAheadFind && evt.charCode != CHAR_CODE_APOSTROPHE && | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
fireKeypressEvent(findField.inputField, evt); | this.fireKeypressEvent(findField.inputField, evt); | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
} } | }, | function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ... |
if (evt.charCode == CHAR_CODE_APOSTROPHE || evt.charCode == CHAR_CODE_SLASH || (this.mUseTypeAheadFind && evt.charCode && evt.charCode != CHAR_CODE_SPACE)) { | var manualstartFAYT = (evt.charCode == CHAR_CODE_APOSTROPHE || evt.charCode == CHAR_CODE_SLASH); var autostartFAYT = !manualstartFAYT && this.mUseTypeAheadFind && evt.charCode && evt.charCode != CHAR_CODE_SPACE; if (manualstartFAYT || autostartFAYT) { | onBrowserKeyPress: function (evt) { // Check focused elt if (!this.shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (this.mFindMode != FIND_NORMAL && this.mQuickFindTimeout) { if (!evt.charCode) return; this.selectFindBar(); this.focusFindB... |
(this.mTypeAheadLinksOnly && evt.charCode != CHAR_CODE_SLASH)) ? | (autostartFAYT && this.mTypeAheadLinksOnly)) ? | onBrowserKeyPress: function (evt) { // Check focused elt if (!this.shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (this.mFindMode != FIND_NORMAL && this.mQuickFindTimeout) { if (!evt.charCode) return; this.selectFindBar(); this.focusFindB... |
var opened = this.openFindBar(true); | this.openFindBar(true); | onBrowserKeyPress: function (evt) { // Check focused elt if (!this.shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (this.mFindMode != FIND_NORMAL && this.mQuickFindTimeout) { if (!evt.charCode) return; this.selectFindBar(); this.focusFindB... |
return; | onBrowserKeyPress: function (evt) { // Check focused elt if (!this.shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (this.mFindMode != FIND_NORMAL && this.mQuickFindTimeout) { if (!evt.charCode) return; this.selectFindBar(); this.focusFindB... | |
if (opened) { this.setFindCloseTimeout(); this.selectFindBar(); this.focusFindBar(); findField.value = ""; if (this.mUseTypeAheadFind && evt.charCode != CHAR_CODE_APOSTROPHE && evt.charCode != CHAR_CODE_SLASH) this.fireKeypressEvent(findField.inputField, evt); else this.updateStatus(Components.interfaces.nsITypeAheadFi... | this.setFindCloseTimeout(); this.selectFindBar(); this.focusFindBar(); if (autostartFAYT) this.fireKeypressEvent(findField.inputField, evt); else this.updateStatus(Components.interfaces.nsITypeAheadFind.FIND_FOUND, false); evt.preventDefault(); | onBrowserKeyPress: function (evt) { // Check focused elt if (!this.shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (this.mFindMode != FIND_NORMAL && this.mQuickFindTimeout) { if (!evt.charCode) return; this.selectFindBar(); this.focusFindB... |
gBrowser.addProgressListener(reporterListener); | if (gBrowser) gBrowser.addProgressListener(reporterListener); | function onBrowserLoad() { gBrowser.addProgressListener(reporterListener);} |
if (gBrowser) | if ("undefined" != typeof(gBrowser)) | function onBrowserLoad() { if (gBrowser) gBrowser.addProgressListener(reporterListener);} |
function onBrowserMouseUp(evt) { var findToolbar = document.getElementById("FindToolbar"); if (!findToolbar.hidden && gFindMode != FIND_NORMAL) closeFindBar(); } | onBrowserMouseUp: function (evt) { var findToolbar = document.getElementById("FindToolbar"); if (!findToolbar.hidden && this.mFindMode != FIND_NORMAL) this.closeFindBar(); }, | function onBrowserMouseUp(evt){ var findToolbar = document.getElementById("FindToolbar"); if (!findToolbar.hidden && gFindMode != FIND_NORMAL) closeFindBar();} |
dump(" === onButtonUpdate called\n"); | function onButtonUpdate(button, commmandID){ var commandNode = document.getElementById(commmandID); var state = commandNode.getAttribute("state"); button.setAttribute("toggled", state);} | |
if (aName != 'color' && aName != 'name') { return; } | onCalendarPrefDeleting: function(aCalendar, aName) { setCalendarManagerUI(); if (aName == 'color') updateStyleSheetForObject(aCalendar); } | |
if (aName == 'color') updateStyleSheetForObject(aCalendar); | onCalendarPrefDeleting: function(aCalendar, aName) { setCalendarManagerUI(); } | |
updateStyleSheetForObject(aCalendar); | onCalendarPrefSet: function(aCalendar, aName, aValue) { var item = getListItem(aCalendar); if (aName == 'color') { if (item) { var colorCell = item.childNodes[1]; colorCell.style.background = aValue; } } else if (aName == 'name') { ... | |
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); } var newSelectedEvents = new Array(); var oldSelectedEvents = gCalendarWindow.EventSelection.s... | |
} else { listbox.selectedIndex = oldIndex; | 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 ... | |
setCalendarManagerUI(); | var item = getListItem(aCalendar); if (item) { document.getElementById("list-calendars-listbox").removeChild(item); } | onCalendarUnregistering: function(aCalendar) { setCalendarManagerUI(); }, |
this.mLauncher.Cancel(); | const NS_BINDING_ABORTED = 0x804b0002; this.mLauncher.cancel(NS_BINDING_ABORTED); | onCancel: function() { // Remove our web progress listener. this.mLauncher.setWebProgressListener( null ); // Cancel app launcher. try { this.mLauncher.Cancel(); } catch( exception ) { } // Unhook dialog from this object. this.mDialog.dialog = null;... |
close(); | return true; | onCancel: function() { for(var i = 0; i < hWalletViewer.cancelHandlers.length; i++) { hWalletViewer.cancelHandlers[i](); } close(); }, |
if ("ActivationOnCancel" in this && ActivationOnCancel()) return false; | function onCancel() { var firstInvalidAccount = getFirstInvalidAccount(); var closeWizard = true; // 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 FinishAcco... | |
else { webBrowserPersist.cancelSave(); } | function onCancel (){ // Cancel app launcher. if (helperAppLoader && !completed) { try { helperAppLoader.Cancel(); } catch( exception ) {} } // Close up dialog by returning true. return true;} | |
if (top.window.opener) | if (top.window.opener) { | function onCancel(){ // we came from the profile manager window... if (top.window.opener) window.close(); else ExitApp()} |
else ExitApp() | } else { try { profile.forgetCurrentProfile(); } catch (ex) { dump("failed to forget current profile.\n"); } ExitApp(); } | function onCancel(){ // we came from the profile manager window... if (top.window.opener) window.close(); else ExitApp()} |
var isNew = window.calendarItem.isMutable; if (!isNew) { var newItem = saveItem(); var oldItem = window.calendarItem.clone(); newItem.deleteProperty("DTSTAMP"); oldItem.deleteProperty("DTSTAMP"); setElementValue("item-description", oldItem.getProperty("DESCRIPTION")); setItemProperty(oldItem, "DESCRIPTION", getEle... | function onCancel(){} | |
appCore.undo(); | onUndo(); | function onCancel() { // Undo all actions performed within the dialog // TODO: We need to suppress reflow/redraw untill all levels are undone while (undoCount > 0) { appCore.undo(); } //toolkitCore.CloseWindow(window);} |
window.close(); | return true; | function onCancel(){ // set the cancel button in the param block if (gParam) gParam.SetInt(0, 1 ); window.close();} |
generateFoldersToSearchList(); | function onCancel(){ // generateFoldersToSearchList will undo all of our folder property changes for us generateFoldersToSearchList(); // ignore return string } | |
msgComposeProgress.processCanceledByUser = true; | msgProgress.processCanceledByUser = true; | function onCancel () { // Cancel app launcher. try { msgComposeProgress.processCanceledByUser = true; } catch( exception ) {return true;} // don't Close up dialog by returning false, the backend will close the dialog when everything will be aborted. return false;} |
if (gCancelCallback) gCancelCallback(); | function onCancel(){ // close the window return true;} | |
if (network != client.networks[network.name] || | if (network != client.networks[network.canonicalName] || | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
channel != network.primServ.channels[channel.normalizedName]) | channel != network.primServ.channels[channel.canonicalName]) | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
dispatch("sync-fonts"); | channel.dispatch("sync-font"); | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
dispatch("sync-motifs"); | channel.dispatch("sync-motif"); | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
dispatch("sync-windows"); | channel.dispatch("sync-window"); | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
dispatch("sync-headers"); | channel.dispatch("sync-header"); | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
dispatch("sync-timestamps"); | channel.dispatch("sync-timestamp"); | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
dispatch("sync-logs"); | channel.dispatch("sync-log"); | function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.name] || channel.parent != network.primServ || channel != network.primServ.channels[channel.normalizedName]) { /* this is a stale observer, remo... |
if (dialog.fileRadio.checked == false) { | if (dialog.fileRadio.selected == false) { | 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("label"), nsIFilePicker.modeSave); fp.appendFilters(nsIFilePicker.filt... |
doEnabling(); | 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... | |
focusedElement.focus(); | function onClearSearch(){ Search("");} | |
theWindow.title = baseURI; | theWindow.title = theID; | function OnClick(event, node){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); if( event.type == "keypress" && event.which != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.length ... |
var treeitem = event.target.parentNode.parentNode.parentNode.parentNode; | var treeitem = event.target.parentNode.parentNode.parentNode; | function OnClick(event){ debug('OnClick()\n'); // This'll be set to 'twisty' on the twisty icon, and 'filename' // if they're over the filename link. var targetclass = event.target.getAttribute('class'); debug('targetclass = ' + targetclass + '\n'); if (targetclass == 'twisty') { // The twisty ... |
var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); file.initWithPath(e.target.parentNode.getAttribute("path")); if (!file.isDirectory()) { textInput = document.getElementById("textInput"); textInput.value = file.leafName; lastClicked = file.leafName; } if (e.detail == 2) { if (file.isDir... | if ( e.detail == 2 ) doConfirm(e.target.parentNode); | function onClick(e) { var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); file.initWithPath(e.target.parentNode.getAttribute("path")); if (!file.isDirectory()) { textInput = document.getElementById("textInput"); textInput.value = file.leafName; lastClicked = file.leafName; } i... |
else gDBView.supressMsgDisplay = true; | 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 = false; else gDBView.supressMsgDisplay... | |
InlineSpellChecker.Init(GetCurrentEditor(), false); | onClose: function() { //Reset recipients and attachments ReleaseAutoCompleteState(); awResetAllRows(); RemoveAllAttachments(); // We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("m... | |
document.getElementById("msgSubject").value = ""; | GetMsgSubjectElement().value = ""; GetMsgSubjectElement().editor.transactionManager.clear(); | onClose: function() { //Reset recipients and attachments ReleaseAutoCompleteState(); awResetAllRows(); RemoveAllAttachments(); // We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("m... |
var identityElement = document.getElementById("msgIdentity"); if (identityElement) identityElement.focus(); | onClose: function() { //Reset focus to avoid undesirable visual effect when reopening the winodw var identityElement = document.getElementById("msgIdentity"); if (identityElement) identityElement.focus(); //Reset recipients and attachments awResetAllRows(); RemoveAllAttachments(); //We need to ... | |
var element = document.getElementById("msgSubject"); if (element) element.value = ""; | document.getElementById("msgSubject").value = ""; | onClose: function() { awResetAllRows(); RemoveAllAttachments(); //We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("msgIdentityPopup")); //Clear the subject var element = document.get... |
document.getElementById("format_auto").setAttribute("checked", "true"); document.getElementById("priority_normal").setAttribute("checked", "true"); EditorResetFontAndColorAttributes(); | onClose: function() { awResetAllRows(); RemoveAllAttachments(); //We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("msgIdentityPopup")); //Clear the subject var element = document.get... | |
disableEditableFields() | disableEditableFields(); | onClose: function() { awResetAllRows(); RemoveAllAttachments(); //We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("msgIdentityPopup")); //Clear the subject document.getElementById("m... |
if (top.awInputElement.getAttribute('focused') != '') top.awInputElement.removeAttribute('focused'); | onClose: function() { //Reset recipients and attachments ReleaseAutoCompleteState(); awResetAllRows(); RemoveAllAttachments(); // We need to clear the identity popup menu in case the user will change them. // It will be rebuilt later in ComposeStartup ClearIdentityListPopup(document.getElementBy... | |
if (gSpellChecker) { try { gSpellChecker.UninitSpellChecker(); } finally { gSpellChecker = null; } } | ExitSpellChecker(); | function onClose(){ if (gSpellChecker) { try { gSpellChecker.UninitSpellChecker(); } finally { gSpellChecker = null; } } window.opener.cancelSendMessage = false; window.close();} |
client.quit(client.userAgent); | client.quit(); | function onClose(){ if ("userClose" in client && client.userClose) return true; if (!("getConnectionCount" in client) || client.getConnectionCount() == 0) { /* if we're not connected to anything, just close the window */ return true; } /* otherwise, try to close out gracefully... |
"cmd_bm_managefolder"]; | "cmd_bm_managefolder", "cmd_bm_sortfolder", "cmd_bm_sortfolderbyname", "cmd_undo", "cmd_redo", "cmd_bm_undo", "cmd_bm_redo"]; | onCommandUpdate: function (aSelection, aTarget) { var commands = ["cmd_bm_newbookmark", "cmd_bm_newfolder", "cmd_bm_newseparator", "cmd_bm_properties", "cmd_bm_rename", "cmd_bm_copy", "cmd_bm_paste", "cmd_bm_cut", "cmd_bm_delete", "cmd_bm_setpersonaltoolb... |
"cmd_bm_managefolder"]; | "cmd_bm_openfolder", "cmd_bm_managefolder"]; | onCommandUpdate: function (aSelection, aTarget) { var commands = ["cmd_bm_newbookmark", "cmd_bm_newfolder", "cmd_bm_newseparator", "cmd_bm_properties", "cmd_bm_rename", "cmd_bm_copy", "cmd_bm_paste", "cmd_bm_cut", "cmd_bm_delete", "cmd_bm_setpersonaltoolb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.