rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; | var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; var print_resolution_name = ""; var... | function onAccept(){ var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; if (gPrintSettings != null) { var pa... |
print_paper_width = gPaperArray[paperSelectedInx].width; print_paper_height = gPaperArray[paperSelectedInx].height; print_paper_name = gPaperArray[paperSelectedInx].name; print_plex_name = gPlexArray[plexSelectedInx].name; gPrintSettings.paperSize = gPaperArray[paperSelectedInx].paperSize; | print_paper_width = gPaperArray[paperSelectedInx].width; print_paper_height = gPaperArray[paperSelectedInx].height; print_paper_name = gPaperArray[paperSelectedInx].name; print_plex_name = gPlexArray[plexSelectedInx].name; print_resolution_name = gResolutionArray[resolutionSelectedInx].name; prin... | function onAccept(){ var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; if (gPrintSettings != null) { var pa... |
gPrintSettings.paperSizeType = print_paper_type; gPrintSettings.paperSizeUnit = print_paper_unit; gPrintSettings.paperWidth = print_paper_width; gPrintSettings.paperHeight = print_paper_height; gPrintSettings.paperName = print_paper_name; gPrintSettings.plexName = print_plex_name; | gPrintSettings.paperSize = gPaperArray[paperSelectedInx].paperSize; gPrintSettings.paperSizeType = print_paper_type; gPrintSettings.paperSizeUnit = print_paper_unit; gPrintSettings.paperWidth = print_paper_width; gPrintSettings.paperHeight = print_paper_height; gPrintSettings.paperName = print_... | function onAccept(){ var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; if (gPrintSettings != null) { var pa... |
gPrintSettings.printInColor = dialog.colorRadio.selected; gPrintSettings.printCommand = dialog.cmdInput.value; | gPrintSettings.printInColor = dialog.colorRadio.selected; gPrintSettings.downloadFonts = dialog.downloadFonts.checked; gPrintSettings.printCommand = dialog.cmdInput.value; gPrintSettings.title = dialog.jobTitleInput.value; | function onAccept(){ var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; if (gPrintSettings != null) { var pa... |
dump("paperSize "+gPrintSettings.paperSize+" (deprecated)\n"); dump("paperSizeType "+print_paper_type+" (should be 1)\n"); dump("paperSizeUnit "+print_paper_unit+"\n"); dump("paperWidth "+print_paper_width+"\n"); dump("paperHeight "+print_paper_height+"\n"); dump("paperName '"+print_paper_name+"'\n"); dump... | dump("paperSize "+gPrintSettings.paperSize+" (deprecated)\n"); dump("paperSizeType "+print_paper_type+" (should be 1)\n"); dump("paperSizeUnit "+print_paper_unit+"\n"); dump("paperWidth "+print_paper_width+"\n"); dump("paperHeight "+print_paper_height+"\n"); dump("paperName '"+print_paper_... | function onAccept(){ var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; if (gPrintSettings != null) { var pa... |
dump("printInColor "+gPrintSettings.printInColor+"\n"); dump("printCommand '"+gPrintSettings.printCommand+"'\n"); | dump("printInColor "+gPrintSettings.printInColor+"\n"); dump("downloadFonts "+gPrintSettings.downloadFonts+"\n"); dump("printCommand '"+gPrintSettings.printCommand+"'\n"); | function onAccept(){ var print_paper_type = gPrintSettingsInterface.kPaperSizeDefined; var print_paper_unit = gPrintSettingsInterface.kPaperSizeInches; var print_paper_width = 0.0; var print_paper_height = 0.0; var print_paper_name = ""; var print_plex_name = ""; if (gPrintSettings != null) { var pa... |
function onAccept(aEvent) | function onAccept() | function onAccept(aEvent){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance gFindInst.searchString = dialog.findKey.value; gFindInst.matchCase = dialog.caseSensitive.checked; gFindInst.wrapFind = dialog.wrap.checked; gFindInst.findBackwards = dialog.searchBac... |
} aEvent.preventDefault(); | } | function onAccept(aEvent){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance gFindInst.searchString = dialog.findKey.value; gFindInst.matchCase = dialog.caseSensitive.checked; gFindInst.wrapFind = dialog.wrap.checked; gFindInst.findBackwards = dialog.searchBac... |
if (!smtpServer) | if (!smtpServer) { | function onAccept(){ // if we didn't have an SMTP server to initialize with, // we must be creating one. try { if (!smtpServer) smtpServer = smtpService.createSmtpServer(); saveSmtpSettings(smtpServer); } catch (ex) { dump("Error saving smtp server: " + ex + "\n"); ... |
window.arguments[0].addSmtpServer = smtpServer.key; } | function onAccept(){ // if we didn't have an SMTP server to initialize with, // we must be creating one. try { if (!smtpServer) smtpServer = smtpService.createSmtpServer(); saveSmtpSettings(smtpServer); } catch (ex) { dump("Error saving smtp server: " + ex + "\n"); ... | |
if (ListElement) | if (gListElement) | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
if (ListElement && gDialog.ChangeAllRadio.selected) | if (gListElement && gDialog.ChangeAllRadio.selected) | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
changeList = MixedListSelection || ListType != originalListType || BulletStyleType != originalBulletStyleType; | changeList = gMixedListSelection || gListType != gOriginalListType || gBulletStyleType != gOriginalBulletStyleType; | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
if (ListElement && gDialog.ChangeAllRadio.selected && BulletStyleType != originalBulletStyleType) { var child = ListElement.firstChild; while (child) { if (child.nodeType == Node.ELEMENT_NODE && child.nodeName.toLowerCase() == "li") { editorShell.editor.removeAttributeOrEquivalent(child, "type"); } child = child.nextSi... | editorShell.MakeOrChangeList(gListType, gDialog.ChangeAllRadio.selected, (gBulletStyleType != gOriginalBulletStyleType) ? gBulletStyleType : null); | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
editorShell.MakeOrChangeList(ListType, gDialog.ChangeAllRadio.selected, (BulletStyleType != originalBulletStyleType) ? BulletStyleType : null); if (ListType) | if (gListType) | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
ListElement = editorShell.GetElementOrParentByTagName(ListType, null); | gListElement = editorShell.GetElementOrParentByTagName(gListType, null); | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
ListElement = null; | gListElement = null; | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
if (ListElement) editorShell.CloneAttributes(ListElement, globalElement); | if (gListElement) editorShell.CloneAttributes(gListElement, globalElement); | function onAccept(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was selected if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); var changeList; if (ListElement &... |
gPrefInt.setCharPref(pref_string_title, ldapUrl.spec); | var uri = Components.classes["@mozilla.org/supports-wstring;1"] .createInstance(Components.interfaces.nsISupportsWString); uri.data = ldapUrl.spec; gPrefInt.setComplexValue(pref_string_title, Components.interfaces.nsISupportsWString, uri); | function onAccept(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"... |
if (gPrintSettings) { | if (gPrintSettings != null) { | function onAccept(){ if (gPrintSettings) { var print_howToEnableUI = gPrintSetInterface.kFrameEnableNone; var stringBundle = srGetStrBundle("chrome://global/locale/printing.properties"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Compon... |
if (printService) { | var saveToPrefs = false; saveToPrefs = gPrefs.getBoolPref("print.save_print_settings"); if (saveToPrefs && printService != null) { | function onAccept(){ if (gPrintSettings) { var print_howToEnableUI = gPrintSetInterface.kFrameEnableNone; var stringBundle = srGetStrBundle("chrome://global/locale/printing.properties"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Compon... |
gPrintSetInterface.kInitSavePrintCommand; | gPrintSetInterface.kInitSaveResolutionName | gPrintSetInterface.kInitSaveDownloadFonts | gPrintSetInterface.kInitSavePrintCommand | gPrintSetInterface.kInitSaveShrinkToFit | gPrintSetInterface.kInitSaveScaling; | function onAccept(){ if (gPrintSettings) { var print_howToEnableUI = gPrintSetInterface.kFrameEnableNone; var stringBundle = srGetStrBundle("chrome://global/locale/printing.properties"); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Compon... |
function onAccept() | function onAccept(aEvent) | function onAccept(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance gFindInst.searchString = dialog.findKey.value; gFindInst.matchCase = dialog.caseSensitive.checked; gFindInst.wrapFind = dialog.wrap.checked; gFindInst.findBackwards = dialog.searchBackwards... |
aEvent.preventDefault(); return false; | function onAccept(){ // Transfer dialog contents to the find service. saveFindData(); // set up the find instance gFindInst.searchString = dialog.findKey.value; gFindInst.matchCase = dialog.caseSensitive.checked; gFindInst.wrapFind = dialog.wrap.checked; gFindInst.findBackwards = dialog.searchBackwards... | |
if (window.arguments[1]) window.opener.setButtons(); | function onAccept() { finalizeChanges(); var unblocked = additions; permissionsTree.setAttribute("sortAscending", !sortAscending); var nextLocation; var nextUnblocked; var windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1'] .getService(Components.inter... | |
showPage(currentSelection.serverId, currentSelection.pageId); updateButtons(tree, currentSelection.serverId); | if (showPage(currentSelection.serverId, currentSelection.pageId)) updateButtons(tree, currentSelection.serverId); | function onAccountClick(tree){ var currentSelection = getServerIdAndPageIdFromTree(tree); // Nothing is selected. This is the case when an account was removed. // A call of selectServer(null,null) after the removal ensures that // onAccountClick() is called again after that with a valid selection. if (!currentSele... |
for each (obs in this.compCalendar.mObservers) obs.onAddItem(aItem); | this.notifyObservers("onAddItem", arguments); | onAddItem: function(aItem) { for each (obs in this.compCalendar.mObservers) obs.onAddItem(aItem); }, |
calendarWindow.setSelectedEvent( calendarEvent ); | onAddItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { if( calendarEvent ) { calendarWindow.currentView.refreshEvents( ); calendarWindow.setSelectedEvent( calendarEvent ); } } }, | |
onAddItem: function (aItem) { if (aItem instanceof Components.interfaces.calITodo) | onAddItem: function(aItem) { if (aItem instanceof Components.interfaces.calITodo && !this.mInBatch) | onAddItem: function (aItem) { if (aItem instanceof Components.interfaces.calITodo) toDoUnifinderRefresh(); }, |
if (serverSettings.deferredToAccount.length > 0) { var account = parent.getAccountFromServerId(gServer.serverURI); var identity = account.defaultIdentity; var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var account = accountMana... | 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; // ... | |
parent.onPanelLoaded('am-smtp.xul'); | onLoad(); | function onAdvanced(event){ var args = {result: false}; window.openDialog('chrome://messenger/content/SmtpServerList.xul', 'smtp', 'modal,chrome', args); if (args.result) { // this is the wrong way to do this. dump("reloading panel...\n"); parent.onPanelLoaded('am-smtp.xul'); }} |
dump("onAdvanced..\n"); var serverKeyElement = document.getElementById("identity.smtpServerKey"); var oldSmtpServerKey = serverKeyElement.getAttribute("value"); dump("selected key = " + oldSmtpServerKey + "\n"); var serverSettings = {}; serverSettings.smtpServerList = oldSmtpServerKey; | 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 (serverSettings.smtpServerList != oldSmtpServerKey) { dump("Setting the smtp server to " + serverSettings.smtpServerList + "\n"); if (serverSettings.smtpServerList) serverKeyElement.setAttribute("value", serverSettings.smtpServerList); else serverKeyElement.removeAttribute("value"); } | 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 (serverSettings.deferredToAccount.length > 0) { var account = parent.getAccountFromServerId(gServer.serverURI); var identity = account.defaultIdentity; var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); account = accountManager.... | 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 (!account) { throw "UNEXPECTED: deferredToAccount '" + serverSettings.deferredToAccount + "' not found!"; } | 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; // ... | |
'modal,chrome', arg); | 'modal,titlebar,chrome', arg); | function onAdvanced(){ dump("onAdvanced..\n"); var serverKeyElement = document.getElementById("identity.smtpServerKey"); var oldSmtpServerKey = serverKeyElement.getAttribute("value"); dump("selected key = " + oldSmtpServerKey + "\n"); var arg = { smtpServerKey: oldSmtpServerKey }; window.openDialog('a... |
window.openDialog("chrome: "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI} ); | var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator); var existingSearchWindow = windowManager.getMostRecentWindow("mailnews:absearch"); if (existingSearchWindow) existingSearchWindow.focus(); else window.openDialog("chrome: "chrome,resiz... | function onAdvancedAbSearch(){ var selectedABURI = GetSelectedDirectory(); if (!selectedABURI) return; window.openDialog("chrome://messenger/content/ABSearchDialog.xul", "", "chrome,resizable,status,centerscreen,dialog=no", {directory: selectedABURI} );} |
if (!gAlarmWindow) { | var calAlarmWindow = wmediator.getMostRecentWindow("calendarAlarmWindow"); if (!calAlarmWindow) { | onAlarm: function(event) { if (!gAlarmWindow) { var windowWatcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(CI.nsIWindowWatcher); gAlarmWindow = windowWatcher.openWindow(null, "chrome://calendar/content/... |
gAlarmWindow = windowWatcher.openWindow(null, | calAlarmWindow = windowWatcher.openWindow(null, | onAlarm: function(event) { if (!gAlarmWindow) { var windowWatcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(CI.nsIWindowWatcher); gAlarmWindow = windowWatcher.openWindow(null, "chrome://calendar/content/... |
if ("addAlarm" in gAlarmWindow) { gAlarmWindow.addAlarm(event); | if ("addAlarm" in calAlarmWindow) { calAlarmWindow.addAlarm(event); | onAlarm: function(event) { if (!gAlarmWindow) { var windowWatcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(CI.nsIWindowWatcher); gAlarmWindow = windowWatcher.openWindow(null, "chrome://calendar/content/... |
gAlarmWindow.addAlarm(event); | calAlarmWindow.addAlarm(event); | onAlarm: function(event) { if (!gAlarmWindow) { var windowWatcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(CI.nsIWindowWatcher); gAlarmWindow = windowWatcher.openWindow(null, "chrome://calendar/content/... |
gAlarmWindow.addEventListener("load", addAlarm, false); | calAlarmWindow.addEventListener("load", addAlarm, false); | onAlarm: function(event) { if (!gAlarmWindow) { var windowWatcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(CI.nsIWindowWatcher); gAlarmWindow = windowWatcher.openWindow(null, "chrome://calendar/content/... |
for each (obs in this.compCalendar.mObservers) obs.onAlarm(aAlarmItem); | this.notifyObservers("onAlarm", arguments); | onAlarm: function(aAlarmItem) { for each (obs in this.compCalendar.mObservers) obs.onAlarm(aAlarmItem); }, |
var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); | var prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null); | 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); gSlideTime = p... |
OnAssert : function(src,prop,target) { debug("panel_observer: onAssert"); }, | OnAssert : function(src,prop,target) {}, | OnAssert : function(src,prop,target) { debug("panel_observer: onAssert"); }, |
OnAssert : function(src,prop,target) {}, | OnAssert : function(src,prop,target) { debug ("*** assert");}, | OnAssert : function(src,prop,target) {}, |
aItem.lastValue = aMatch; | onAutoCompleteResult: function(aItem, aOriginalString, aMatch) { dump("aItem = " + aItem + "\n"); if ( aItem ) { dump("value = " + aItem.value + "\n"); dump("aOriginalString = " + aOriginalString + "\n"); dump("aMatch = " + aMatch + "\n"); aItem.value = aMatch; } } | |
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) this.element.setAttribute("multiple", ""); else thi... | optgroupObject.prototype.onBlur = function onBlur(){ this.element.label = gDialog.optgroupLabel.value; this.element.disabled = gDialog.optgroupDisabled.checked;}; |
var opened = this.openFindBar(); | var opened = 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... |
getDisplayComposite().removeCalendar(cal.uri); | getCompositeCalendar().removeCalendar(cal.uri); | function onCalendarCheckboxClick(event) { // This is a HACK. // It seems to be impossible to add onClick to a listCell. // Workaround that by checking the coordinates of the click. var checkElem = event.target.firstChild; if ((event.clientX < checkElem.boxObject.x + checkElem.boxObject.width) && (... |
getDisplayComposite().addCalendar(cal); | getCompositeCalendar().addCalendar(cal); | function onCalendarCheckboxClick(event) { // This is a HACK. // It seems to be impossible to add onClick to a listCell. // Workaround that by checking the coordinates of the click. var checkElem = event.target.firstChild; if ((event.clientX < checkElem.boxObject.x + checkElem.boxObject.width) && (... |
if (!selectedCalendar) { return; | if (selectedCalendar) { var compositeCalendar = getCompositeCalendar(); if (!compositeCalendar.getCalendar(selectedCalendar.uri)) { compositeCalendar.addCalendar(selectedCalendar); } compositeCalendar.defaultCalendar = selectedCalendar; | function onCalendarListSelect() { var selectedCalendar = getSelectedCalendarOrNull(); if (!selectedCalendar) { return; } getCompositeCalendar().defaultCalendar = selectedCalendar;} |
getCompositeCalendar().defaultCalendar = selectedCalendar; | function onCalendarListSelect() { var selectedCalendar = getSelectedCalendarOrNull(); if (!selectedCalendar) { return; } getCompositeCalendar().defaultCalendar = selectedCalendar;} | |
getDisplayComposite().defaultCalendar = selectedCalendar; | getCompositeCalendar().defaultCalendar = selectedCalendar; | function onCalendarListSelect() { var selectedCalendar = getSelectedCalendarOrNull(); if (!selectedCalendar) { return; } getDisplayComposite().defaultCalendar = selectedCalendar;} |
updateStyleSheetForObject(aCalendar); | updateStyleSheetForObject(aCalendar, gCachedStyleSheet); | onCalendarPrefDeleting: function(aCalendar, aName) { if (aName != 'color' && aName != 'name') { return; } setCalendarManagerUI(); if (aName == 'color') updateStyleSheetForObject(aCalendar); } |
updateStyleSheetForObject(aCalendar); | updateStyleSheetForObject(aCalendar, gCachedStyleSheet); | onCalendarPrefSet: function(aCalendar, aName, aValue) { var item = getListItem(aCalendar); if (aName == 'color') { if (item) { var colorCell = item.childNodes[1]; colorCell.style.background = aValue; } updateStyleSheetForObject(aCalendar);... |
updateStyleSheetForCalendar(aCalendar); | if (!gCachedStyleSheet) { gCachedStyleSheet = getStyleSheet("chrome: } updateStyleSheetForObject(aCalendar, gCachedStyleSheet); | onCalendarPrefSet: function(aCalendar, aName, aValue) { updateStyleSheetForCalendar(aCalendar); }, |
getDisplayComposite().addCalendar(aCalendar); | onCalendarRegistered: function(aCalendar) { setCalendarManagerUI(); }, | |
getDisplayComposite().addCalendar(aCalendar); | getCompositeCalendar().addCalendar(aCalendar); | 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... |
document.getElementById("new_command").removeAttribute("disabled"); document.getElementById("new_todo_command").removeAttribute("disabled"); | onCalendarRegistered: function(aCalendar) { // Enable new calendars by default getDisplayComposite().addCalendar(aCalendar); setCalendarManagerUI(); }, | |
document.getElementById("list-calendars-listbox").removeChild(item); | var listbox = document.getElementById("list-calendars-listbox"); listbox.removeChild(item); if (getCalendarManager().getCalendars({}).length <= 1) { document.getElementById("new_command").setAttribute("disabled", true); document.getElementById("new_todo_command").setAttribute("disabled", true); } | onCalendarUnregistering: function(aCalendar) { var item = getListItem(aCalendar); if (item) { document.getElementById("list-calendars-listbox").removeChild(item); } }, |
if (commonDialogsService.Confirm(window,confirmTitle,confirmMsg)) | if (promptService.Confirm(window,confirmTitle,confirmMsg)) | 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 result = {value:0}; promptService.confirmEx(window, confirmTitle, confirmMsg, | var result = promptService.confirmEx(window, confirmTitle, confirmMsg, | 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... |
null, null, {value:0}, result); | null, null, {value:0}); | 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... |
if (result.value == 1) | if (result == 1) | 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... |
var dsp = !target.checked; | var dsp = target.checked; | onCDReal: function(target) { var dsp = !target.checked; target.checked = dsp; dsp = dsp ? 'block' : 'none'; var layout = document.styleSheets[2]; layout.insertRule('div.' + target.name + ' {display: ' + dsp + ';}', layout.cssRules.length); return false; } |
dsp = dsp ? 'block' : 'none'; var layout = document.styleSheets[2]; layout.insertRule('div.' + target.name + ' {display: ' + dsp + ';}', layout.cssRules.length); | dsp = dsp ? 'table-row' : 'none'; var layout = document.styleSheets[document.styleSheets.length - 1]; var i = Number(target.name); layout.deleteRule(i); layout.insertRule('.Tier-' + (i+1) + ' {display: ' + dsp + ';}', i); | onCDReal: function(target) { var dsp = !target.checked; target.checked = dsp; dsp = dsp ? 'block' : 'none'; var layout = document.styleSheets[2]; layout.insertRule('div.' + target.name + ' {display: ' + dsp + ';}', layout.cssRules.length); return false; } |
OnChange : function(src,prop,old_target,new_target) { debug("panel_observer: onChange"); }, | OnChange : function(src,prop,old_target,new_target) {}, | OnChange : function(src,prop,old_target,new_target) { debug("panel_observer: onChange"); }, |
filter = cview.lastProgID; | filter = cview.lastContractID; | function onChangeDisplayMode (e){ var id = e.target.getAttribute("id"); var ary = id.match (/menu-(cmp|ifc)-show-(.*)/); if (!ary) { dd ("** UNKNOWN ID '" + id + "' in onChangeDisplayMode **"); return; } var typeDesc = (ary[1] == "cmp") ? "Components" : "Interfaces"; var filter = ""; ... |
dump("OnChangeSrc ****************\n"); | function OnChangeSrc(){ dump("OnChangeSrc ****************\n"); doValueChanged();} | |
if (fp.file.path && fp.file.path.length > 0) | if (fp.fileURL.spec && fp.fileURL.spec.length > 0) | 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... |
var tempFileSpec = Components.classes["component: tempFileSpec.nativePath = fp.file.path; dialog.input.value = tempFileSpec.URLString; | dialog.input.value = fp.fileURL.spec; | 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... |
var fp = Components.classes["component: | var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); | function onChooseFile() { try { var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("chooseFileDialogTitle"), nsIFilePicker.modeOpen); if (dialog.openAppList.data == "2") { // When loading into Composer, direct user to p... |
fp.init(window, "Choose a JavaScript script", nsIFilePicker.modeOpen); | fp.init(window, getMsg("file_browse_Script"), nsIFilePicker.modeOpen); | function onChooseFile() { try { var flClass = Components.classes["@mozilla.org/filepicker;1"]; var fp = flClass.createInstance(nsIFilePicker); fp.init(window, "Choose a JavaScript script", nsIFilePicker.modeOpen); fp.appendFilter("JavaScript script (*.js)", "*.js"); fp.appendF... |
fp.appendFilter("JavaScript script (*.js)", "*.js"); | fp.appendFilter(getMsg("file_browse_Script_spec"), "*.js"); | function onChooseFile() { try { var flClass = Components.classes["@mozilla.org/filepicker;1"]; var fp = flClass.createInstance(nsIFilePicker); fp.init(window, "Choose a JavaScript script", nsIFilePicker.modeOpen); fp.appendFilter("JavaScript script (*.js)", "*.js"); fp.appendF... |
var fp = Components.classes["component: | var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); | function onChooseFile(){ if (dialog.fileRadio.checked == false) { return; } try { var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); fp.init(window, document.getElementById("fpDialog").getAttribute("value"), nsIFilePicker.modeSave); fp.appendFilters(nsIFilePicker... |
else { fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML); } | fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML); | function onChooseFile(){ try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, dialog.bundle.getString("chooseFileDialogTitle"), nsIFilePicker.modeOpen); else { fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | ... |
catch(ex) { } doEnabling(); } | function onChooseFile(){ try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, dialog.bundle.getString("chooseFileDialogTitle"), nsIFilePicker.modeOpen); else { fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | ... | |
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll); | fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | nsIFilePicker.filterAll); | 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... |
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | | fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText | | 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.messages = (void 0); delete client.currentObject.messages; | client.currentObject.messages = null; | function onClearCurrentView(){ if (client.output.firstChild) client.output.removeChild (client.output.firstChild); client.currentObject.messages = (void 0); delete client.currentObject.messages; client.currentObject.display (getMsg("onClearCurrentViewMsg"), "INFO"); client.output.appendChild (clie... |
onSearchInput(null); | onSearchInput(true); | function onClearSearch(){ if (gSearchInput) gSearchInput.value =""; //on input does not get fired for some reason onSearchInput(null);} |
var focusedElement = gLastFocusedElement; | var focusedElement = gLastFocusedElement || GetThreadTree(); | function onClearSearch(){ var focusedElement = gLastFocusedElement; //save of the last focused element so that focus can be restored Search(""); focusedElement.focus();} |
id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display | id = this.id.replace("img_",""); part = FetchElement("part_"+id); disp = part.style.display; | switchimg.onclick = function() { id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display if(disp == 'none') { switchimg.src = box_img_minus part.style.display = '' KillCookie(id) } else { switchimg.src = box_img_plus part.style.display = 'none' SetCookie(id) } } |
switchimg.src = box_img_minus part.style.display = '' KillCookie(id) | switchimg.src = box_img_minus; part.style.display = ''; KillCookie(id); | switchimg.onclick = function() { id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display if(disp == 'none') { switchimg.src = box_img_minus part.style.display = '' KillCookie(id) } else { switchimg.src = box_img_plus part.style.display = 'none' SetCookie(id) } } |
switchimg.src = box_img_plus part.style.display = 'none' SetCookie(id) | switchimg.src = box_img_plus; part.style.display = 'none'; SetCookie(id); | switchimg.onclick = function() { id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display if(disp == 'none') { switchimg.src = box_img_minus part.style.display = '' KillCookie(id) } else { switchimg.src = box_img_plus part.style.display = 'none' SetCookie(id) } } |
function OnClick(event) | function OnClick(event, node) | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selected... |
( event.button != 1 || event.detail != 2 ) ) return false; | ( event.button != 1 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selected... |
return false; | return(false); | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selected... |
var theID = selectedItem.getAttribute("id"); | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selected... | |
window._content.location.href = selectedItem.getAttribute('id'); | if(appCore) { appCore.loadUrl(theID); } else { window._content.location.href = theID; } var theWindow = window._content.parentWindow; if (theWindow) { theWindow.title = baseURI; } | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selected... |
if(appCore) { appCore.loadUrl(theID); } else { window._content.location.href = theID; } | window._content.location.href = 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.keyCode != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.lengt... |
{ | function OnClick(event, node){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); if( event.type == "keypress" && event.keyCode != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.lengt... | |
} | function OnClick(event, node){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); if( event.type == "keypress" && event.keyCode != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.lengt... | |
if (targetclass == 'filename' && (type == 'FILE' || type == 'SYM-LINK') ) { | if (targetclass == 'filename') { | 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 ... |
window.content.location.href = selectedItem.getAttribute('id'); | window._content.location.href = selectedItem.getAttribute('id'); | function OnClick(event){ if( event.type == "click" && ( event.button != 1 || event.detail != 2 ) ) return false; if( event.type == "keypress" && event.which != 13 ) return false; var tree = document.getElementById("tree"); if( tree.selectedItems.length == 1 ) { var selected... |
YAHOO.util.Event.stopEvent(event); | onClickDisplay: function(event) { YAHOO.util.Event.stopEvent(event); if (event.target.localName != 'INPUT') { return false; } var handler = function() {return function(){view.onCDReal(event.target)}}; window.setTimeout(handler(),0); return false; }, | |
YAHOO.widget.Logger.log('clicking ' + event); | onClickDisplay: function(event) { YAHOO.util.Event.stopEvent(event); if (event.target.localName != 'INPUT') { return false; } var handler = function() {return function(){view.onCDReal(event.target)}}; window.setTimeout(handler(),0); return false; }, | |
if (window.arguments && window.arguments[0]) window.arguments[0] = null; | 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... | |
if (gHideMenus) { document.getElementById("formatMenu").hidden = false; document.getElementById("insertMenu").hidden = false; var showFormat = document.getElementById("menu_showFormatToolbar") showFormat.hidden = false; if (showFormat.getAttribute("checked") == "true") document.getElementById("FormatToolbar").hidden = ... | onClose: function() { //Reset recipients and attachments 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 t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.