rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var langName = selectedItem.firstChild.firstChild.getAttribute("data"); | var langName = selectedItem.firstChild.firstChild.getAttribute("value"); | function onOK(){ var tree = document.getElementById("langList"); var selectedItem = tree.selectedItems.length ? tree.selectedItems[0] : null; if (selectedItem) { var langName = selectedItem.firstChild.firstChild.getAttribute("data"); var langStore = opener.document.getElementById("ProfileLocale"); if (langS... |
window.opener.gNewTypeRV = true; | window.opener.gNewTypeRV = gMIMEField.value; | function onOK(){ const mimeTypes = 66638; var fileLocator = Components.classes["component://netscape/filelocator"].getService(); if (fileLocator) fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIFileLocator); var file = fileLocator.GetFileLocation(mimeTypes); if (file) file = file.QueryInter... |
dump("CLOSING EdHLineProps\n"); | function onOK(){ // Since we only edit existing HLines, // ValidateData will set the new attributes // so there's nothing else to do if (ValidateData(true)) { window.close(); dump("CLOSING EdHLineProps\n"); } } | |
CategoryGroup.setAttribute("category", category); CategoryGroup.setAttribute("letter_index", indexL); CategoryGroup.setAttribute("char_index", indexM); | function onOK(){ editorShell.InsertSource(LatinChar); return true;} | |
CreateVirtualFolder(name, GetMsgFolderFromUri(uri), gSearchFolderURIs, gSearchTermSession.searchTerms); | CreateVirtualFolder(name, parentFolder, gSearchFolderURIs, gSearchTermSession.searchTerms); | function onOK(){ var name = gDialog.nameField.value; var uri = gDialog.picker.getAttribute("uri"); var messengerBundle = document.getElementById("bundle_messenger"); if (!gSearchFolderURIs) { window.alert(messengerBundle.getString('alertNoSearchFoldersSelected')); return false; } if (window.arguments[0].... |
editorShell.InsertElement(imageElement, false); | editorShell.InsertElement(imageElement, true); | function onOK(){ imageElement.setAttribute("src",dialog.srcInput.value); // We must convert to "file:///" format else image doesn't load! // TODO: we should confirm with user if no alt tag imageElement.setAttribute("alt", dialog.altTextInput.value); // set width if custom size and width is greater than 0 if (... |
var color; if (LastPickedIsDefault) color = LastPickedColor; else color = dialog.ColorInput.value; color = color.trimString().toLowerCase(); dump("ColorPicker onOK: color = "+color+"|\n"); | if (!ValidateData()) return; | function onOK(){ var color; if (LastPickedIsDefault) color = LastPickedColor; else color = dialog.ColorInput.value; color = color.trimString().toLowerCase(); // TODO: Validate the color string!dump("ColorPicker onOK: color = "+color+"|\n"); // Set return values and save in persistent color attributes if (C... |
if (ColorType == "Text") | if (TextType) | function onOK(){ var color; if (LastPickedIsDefault) color = LastPickedColor; else color = dialog.ColorInput.value; color = color.trimString().toLowerCase(); // TODO: Validate the color string!dump("ColorPicker onOK: color = "+color+"|\n"); // Set return values and save in persistent color attributes if (C... |
if (gPref_string_desc && hostname) { | if ((!gPref_string_desc) || hasOnlyWhitespaces(gPref_string_desc)) errorValue = "invalidName"; else if ((!hostname) || hasOnlyWhitespaces(hostname)) errorValue = "invalidHostname"; else if (port && hasCharacters(port)) errorValue = "invalidPortNumber"; else if (results && hasCharacters(results)) errorValue = "invalidRe... | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... |
pref_string_content = document.getElementById("port").value; ldapUrl.port = pref_string_content; | if (!port) ldapUrl.port = gPortNumber; else ldapUrl.port = port; | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... |
pref_string_content = document.getElementById("results").value; | pref_string_content = results; pref_string_title = gPref_string_desc + ".maxHits"; | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... |
pref_string_title = gPref_string_desc + ".maxHits"; | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... | |
errorMsg = addressBookBundle.getString("errorMessage"); | var errorMsg = addressBookBundle.getString(errorValue); | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... |
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(); | file = Components.classes["@mozilla.org/file/local;1"].createInstance(); | function onOK(){ const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(); if (fileLocator) fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile); gDS = gR... |
window.alert(alertText); | var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert(window, document.title, alertText); | function onOK(){ var name = dialog.nameField.value; var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"].getService(Components.interfaces.nsIMsgTagService); // do name validity check? Has to be non-empty, and not existing already try { var key = tagService.getKeyForTag(name); // above... |
filterList = currentFilterList(); | var filterList = currentFilterList(); | function onOk(){ // make sure to save the filter to disk filterList = currentFilterList(); if (filterList) filterList.saveToDefaultFile(); window.close();} |
gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.checked ? "0" : "1"); | gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.selected ? "0" : "1"); | function onOK(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was checked if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.checked ? "0" : "1"); var changeList; if (ListElement && gDia... |
if (ListElement && gDialog.ChangeAllRadio.checked) | if (ListElement && gDialog.ChangeAllRadio.selected) | function onOK(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was checked if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.checked ? "0" : "1"); var changeList; if (ListElement && gDia... |
editorShell.MakeOrChangeList(ListType, gDialog.ChangeAllRadio.checked); | editorShell.MakeOrChangeList(ListType, gDialog.ChangeAllRadio.selected); | function onOK(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Remember which radio button was checked if (ListElement) gDialog.RadioGroup.setAttribute("index", gDialog.ChangeAllRadio.checked ? "0" : "1"); var changeList; if (ListElement && gDia... |
if (document.getElementById("disableAddons").checked) disableAddons(); | function onOK() { try { if (document.getElementById("resetUserPrefs").checked) clearAllPrefs(); if (document.getElementById("resetBookmarks").checked) restoreDefaultBookmarks(); if (document.getElementById("resetToolbars").checked) deleteLocalstore(); } catch(e) { } restartApp();} | |
BMDS.Assert(rSource, RDF.GetResource(NC_NS+"WebPanel"), | BMDS.Assert(rSource, RDF.GetResource(gNC_NS+"WebPanel"), | function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = gArg.feedURL; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = gArg.objGroup; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); BMDS.creat... |
dump("in onOK\n") | function onOK(){ dump("in onOK\n") UpdateObject(); // call UpdateObject fn to update element in document window.opener.AdvancedEditOK = true; window.opener.globalElement = element; SaveWindowLocation(); return true; // do close the window} | |
window.close(); | return true; | function onOk(){ // set the okay button in the param block if (gParam) gParam.SetInt(0, 0 ); window.close();} |
gMailView.mailViewName = dialog.nameField.value; | if (gMailView.prettyName != dialog.nameField.value) gMailView.mailViewName = dialog.nameField.value; | function onOK(){ var mailViewList = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList); // reflect the search widgets back into the search session var newMailView = null; if (gMailView) { saveSearchTerms(gMailView.searchTerms, gMailView); gMailV... |
var result = finder.findNext( data ); if (!result) window.alert(dialog.bundle.getString("notFoundWarning")); return false; } | var result = finder.findNext(data); if (!result) window.alert(dialog.bundle.getString("notFoundWarning")); } | function onOK() { // Transfer dialog contents to data elements. loadData(); // Search. var result = finder.findNext( data ); if (!result) window.alert(dialog.bundle.getString("notFoundWarning")); // don't close the window ... |
if (!gFld_URL.value) return; var url = gFld_URL.value; try { const kLFContractID = "@mozilla.org/file/local;1"; const kLFIID = Components.interfaces.nsILocalFile; const kLF = Components.classes[kLFContractID].createInstance(kLFIID); kLF.initWithUnicodePath(url); if (kLF.exists()) { var ioService = Components.classes... | if (!gFld_URL.value && !addingGroup()) return; var url; if (addingGroup()) { const group = kBMS.createGroup(gFld_Name.value, rFolder); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); kBMS.createBookmarkWithDetails(groups[i].name, url, groups[i].chars... | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... |
catch (e) { } kBMS.createBookmarkWithDetails(gFld_Name.value, url, gBookmarkCharset, rFolder, -1); | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... | |
kBMS.createBookmarkWithDetails(gFld_Name.value, url, gBookmarkCharset, rFolder, -1); | var newBookmark = kBMS.createBookmarkWithDetails(gFld_Name.value, url, gBookmarkCharset, rFolder, -1); if (window.arguments[4] == "newBookmark") { window.arguments[5].newBookmark = newBookmark; } | function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /... |
return; | return false; | function onOK(){ // Make sure all fields are filled in OK. if ( !checkInput() ) { return false; } const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interf... |
return false; | function onOK(){ // Make sure all fields are filled in OK. if ( !checkInput() ) { return false; } const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interf... | |
gPrefInt.SetUnicharPref(pref_string_title, ldapUrl.spec); | gPrefInt.SetCharPref(pref_string_title, ldapUrl.spec); | function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ... |
} else if (insertNew) | } else if (insertNew || replaceExistingLink) | function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ... |
try { | var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator); var eb = windowManagerInterface.getEnumerator("navigator:browser"); while (eb.hasMoreElements()) { | function onOK() { if (!('homepage' in parent)) return; // Replace pipes with commas to look nicer. parent.homepage = parent.homepage.replace(/\|/g,', '); try { // Update the home button tooltip. top.opener.document.getElementById("home-button").setAttribute("tooltiptext", parent.homepage); } catch(ex) { ... |
top.opener.document.getElementById("home-button").setAttribute("tooltiptext", parent.homepage); } catch(ex) { | var domWin = eb.getNext().QueryInterface(Components.interfaces.nsIDOMWindow); domWin.document.getElementById("home-button").setAttribute("tooltiptext", parent.homepage); | function onOK() { if (!('homepage' in parent)) return; // Replace pipes with commas to look nicer. parent.homepage = parent.homepage.replace(/\|/g,', '); try { // Update the home button tooltip. top.opener.document.getElementById("home-button").setAttribute("tooltiptext", parent.homepage); } catch(ex) { ... |
function onOK() { if (applyChanges()) { window.close(); | function onOK() { appCore.beginBatchChanges(); anchorElement.setAttribute("href",dialog.hrefInput.value); if (insertNew) { textNode = appCore.editorDocument.createTextNode(dialog.linkTextInput.value); if (textNode) { anchorElement.appendChild(textNode); } newElement = appCore.insertElement(anchorElement, true... | function onOK() { if (applyChanges()) { window.close(); }} |
appCore.endBatchChanges(); window.close(); | function onOK() { if (applyChanges()) { window.close(); }} | |
window.opener.newTitle = gDialog.TitleInput.value.trimString(); | window.opener.newTitle = TrimString(gDialog.TitleInput.value); | function onOK(){ editorShell.BeginBatchChanges(); if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); editorShell.SetDocumentCharacterSet(charset); } editorShell.EndBatchChanges(); if(titleWasEdited) window.opener.newTitle = g... |
if ( !checkInput() ) { return false; } | function onOK(){ const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(); if (fileLocator) fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile); gDS = gR... | |
if (MicrosummaryPicker.enabled) | if (MicrosummaryPicker.enabled) { | function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url; var livemarkFeed = gArg.feedURL; if (gArg.bBookmarkAllTabs) { gResource = BMDS.createFolder(gName.value); const groups = gArg.objGroup; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); BMDS.createBookmar... |
MicrosummaryPicker.destroy(); } | function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url; var livemarkFeed = gArg.feedURL; if (gArg.bBookmarkAllTabs) { gResource = BMDS.createFolder(gName.value); const groups = gArg.objGroup; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); BMDS.createBookmar... | |
if (insertNew) { editorShell.InsertElement(element, false); | if (ValidateData()) { return true; | function onOK(){// Set attribute example:// imageElement.setAttribute("src",dialog.srcInput.value); if (insertNew) { editorShell.InsertElement(element, false); } return true; // do close the window} |
return true; | return false; | function onOK(){// Set attribute example:// imageElement.setAttribute("src",dialog.srcInput.value); if (insertNew) { editorShell.InsertElement(element, false); } return true; // do close the window} |
if (TableOrCell && gDialog.TableRadio.checked) | if (TableOrCell && gDialog.TableRadio.selected) | function onOK(){ if (!ValidateData()) return false; // Set return values and save in persistent color attributes if (TextType) { gColorObj.TextColor = gColor; if (gColor.length > 0) { gDialog.LastPickedColor.setAttribute("LastTextColor", gColor); gColorObj.LastTextColor = gColor; } } else... |
finder.FindNext( data ); | finder.findNext( data ); | function onOK() { // Transfer dialog contents to data elements. loadData(); // Search. finder.FindNext( data ); // don't close the window return false; } |
signons[deletedSignons[signonCount]].user); | signons[deletedSignons[signonCount]].rawuser); | function onOK(){ var deletedSignons = []; deletedSignons = goneSS.split(","); var signonCount; for (signonCount=0; signonCount<deletedSignons.length-1; signonCount++) { passwordmanager.removeUser(signons[deletedSignons[signonCount]].host, signons[deletedSignons[signonCount]].user); }... |
var extensionString = gExtensionField.value.replace(/[*.;]/g, ""); | var extensionString = gExtensionField.value.replace(/[*.;]/g, "").toLowerCase(); | function onOK(){ // Make sure all fields are filled in OK. if ( !checkInput() ) { return false; } const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interf... |
document.getElementById("addBookmarkDialog").setAttribute("selectedFolder",gSelectedFolder); var rFolder = RDF.GetResource(gSelectedFolder); RDFC.Init(BMDS, rFolder); | RDFC.Init(BMDS, gSelectedFolder); | function onOK(){ document.getElementById("addBookmarkDialog").setAttribute("selectedFolder",gSelectedFolder); var rFolder = RDF.GetResource(gSelectedFolder); RDFC.Init(BMDS, rFolder); var url, rSource; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5... |
var target = BookmarksUtils.getTargetFromFolder(rFolder); | var target = BookmarksUtils.getTargetFromFolder(gSelectedFolder); | function onOK(){ document.getElementById("addBookmarkDialog").setAttribute("selectedFolder",gSelectedFolder); var rFolder = RDF.GetResource(gSelectedFolder); RDFC.Init(BMDS, rFolder); var url, rSource; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5... |
var res = ValidateData(); if (res) | if (ValidateData()) { | function onOK(){ // Since we only edit existing HLines, // ValidateData will set the new attributes // so there's nothing else to do var res = ValidateData(); // Copy attributes from the globalElement to the document element if (res) editorShell.CloneAttributes(hLineElement, globalElement); return (Valida... |
return (ValidateData(true)); | return true; } return false; | function onOK(){ // Since we only edit existing HLines, // ValidateData will set the new attributes // so there's nothing else to do var res = ValidateData(); // Copy attributes from the globalElement to the document element if (res) editorShell.CloneAttributes(hLineElement, globalElement); return (Valida... |
rv = window.confirm(file.path + "already exists. Do you want to replace it?"); | rv = window.confirm(file.path + " " + bundle.GetStringFromName("confirmFileReplacing")); | function onOK(){ var ret = nsIFilePicker.returnCancel; textInput = document.getElementById("textInput"); var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); file.initWithPath(textInput.value); var isDir = false; var isFile = false; if (file.exists()) { isDir = file.isDirectory(); ... |
var hdrs = gArrayHdrs.join(": "); | var hdrs; if (gArrayHdrs.length == 1) hdrs = gArrayHdrs; else hdrs = gArrayHdrs.join(": "); | function onOk(){ if (gArrayHdrs.length) { var hdrs = gArrayHdrs.join(": "); gPrefs.setCharPref("mailnews.customHeaders", hdrs); // flush prefs to disk, in case we crash, to avoid dataloss and problems with filters that use the custom headers var prefService = Components.classes["@mozilla.org/preferences... |
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "checked" ); | gEvent.recurForever = getFieldValue( "repeat-forever-radio", "selected" ); | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.category = getFieldValue( "category-field" ); ... |
if( getFieldValue( "advanced-repeat-dayofweek", "checked" ) == true ) | if( getFieldValue( "advanced-repeat-dayofweek", "selected" ) == true ) | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.allDay = getFieldValue( "all-day-event-check... |
var ArrayOfExceptionDates = new Array(); | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.allDay = getFieldValue( "all-day-event-check... | |
ArrayOfExceptionDates[ ArrayOfExceptionDates.length ] = dateObj; | gEvent.addException( dateObj ); | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.allDay = getFieldValue( "all-day-event-check... |
gOnOkFunction( gEvent, ArrayOfExceptionDates ); | gOnOkFunction( gEvent ); | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.allDay = getFieldValue( "all-day-event-check... |
if (percentcomplete == 0) gToDo.status = gToDo.ICAL_STATUS_NEEDSACTION; else gToDo.status = gToDo.ICAL_STATUS_INPROCESS; | function onOKCommand(){ // get values from the form and put them into the event gToDo.title = getFieldValue( "title-field" ); gToDo.description = getFieldValue( "description-field" ); var dueDate = getDateTimeFieldValue( "due-date-text" ); gToDo.due.year = dueDate.getYear()+1900; gToDo.due.month... | |
debug( "!!!-->in ca-event-dialog.js, alarmUnits is "+gEvent.alarmUnits ); | debug( "!!!-->in calendarEventDialog.js, alarmUnits is "+gEvent.alarmUnits ); | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.allDay = getFieldValue( "all-day-event-check... |
debug( "!!!-->in ca-event-dialog.js, alarmEmailAddress is "+gEvent.alarmEmailAddress ); | debug( "!!!-->in calendarEventDialog.js, alarmEmailAddress is "+gEvent.alarmEmailAddress ); | function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.allDay = getFieldValue( "all-day-event-check... |
if( getFieldValue( "status-field" ) != "" ) gToDo.status = eval( "gToDo."+getFieldValue( "status-field" ) ); | function onOKCommand(){ // get values from the form and put them into the event gToDo.title = getFieldValue( "title-field" ); gToDo.description = getFieldValue( "description-field" ); if( getFieldValue( "status-field" ) != "" ) gToDo.status = eval( "gToDo."+getFieldValue( "status-field" ) ); ... | |
if (percentcomplete == 0) | var cancelled = getFieldValue( "cancelled-checkbox", "checked" ); if( cancelled ) gToDo.status = gToDo.ICAL_STATUS_CANCELLED; else if (percentcomplete > 0) gToDo.status = gToDo.ICAL_STATUS_INPROCESS; else | function onOKCommand(){ // get values from the form and put them into the event gToDo.title = getFieldValue( "title-field" ); gToDo.description = getFieldValue( "description-field" ); if( getFieldValue( "status-field" ) != "" ) gToDo.status = eval( "gToDo."+getFieldValue( "status-field" ) ); ... |
else gToDo.status = gToDo.ICAL_STATUS_INPROCESS; dump( "!!!-->in calendarEventDialog.js, alarmUnits is "+gToDo.alarmUnits ); | } | function onOKCommand(){ // get values from the form and put them into the event gToDo.title = getFieldValue( "title-field" ); gToDo.description = getFieldValue( "description-field" ); if( getFieldValue( "status-field" ) != "" ) gToDo.status = eval( "gToDo."+getFieldValue( "status-field" ) ); ... |
dump( "!!!-->in calendarEventDialog.js, alarmEmailAddress is "+gToDo.alarmEmailAddress ); | function onOKCommand(){ // get values from the form and put them into the event gToDo.title = getFieldValue( "title-field" ); gToDo.description = getFieldValue( "description-field" ); if( getFieldValue( "status-field" ) != "" ) gToDo.status = eval( "gToDo."+getFieldValue( "status-field" ) ); ... | |
args.boolIsTrue = ( document.getElementById( "bool-list" ).selectedIndex == 1 ); | function onOKCommand(){ // update indexes with user selections args.titleIndex = document.getElementById( "title-list" ).selectedIndex; args.startDateIndex = document.getElementById( "startdate-list" ).selectedIndex; args.startTimeIndex = document.getElementById( "starttime-list" ).selectedIndex; args.en... | |
doDump("opacity", v); | if (v == 1) gDialog.opacityLabel.setAttribute("value", "transparent"); else gDialog.opacityLabel.setAttribute("value", v); | function onOpacityScrollbarAttrModified(aEvent){ if (aEvent.attrName == "curpos") { var v = aEvent.newValue / 1000; doDump("opacity", v); AddStyleToElement(gDialog.selectedObject, "-moz-opacity", v); SetModifiedFlagOnStylesheet(); }} |
eventController.drawEventBoxes(); | onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { debug("onOperationComplete\n"); }, | |
onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { aClosure.onOperationComplete(this, aStatusCode, 0, null, null); | listener.onOperationComplete = function(aStatusCode, aResource, aOperation, aClosure) { | onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { // aClosure is the listener aClosure.onOperationComplete(this, aStatusCode, 0, null, null); debug("WebDavListener.onOperationComplete() called\n"); return; }, |
debug("WebDavListener.onOperationComplete() called\n"); return; }, | if (aStatusCode == 204) { debug("Item modified successfully.\n"); var retVal = Components.results.NS_OK; } else { if (aStatusCode > 999) { aStatusCode = "0x " + aStatusCode.toString(16); } debug("Error modifying item: " + aStatusCode + "\n"); retVal = Components.results.NS_ERROR_FAILURE; } if (aListener) { t... | onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { // aClosure is the listener aClosure.onOperationComplete(this, aStatusCode, 0, null, null); debug("WebDavListener.onOperationComplete() called\n"); return; }, |
dump("onOperationComplete\n"); | eventController.drawEventBoxes(); | onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { dump("onOperationComplete\n"); }, |
dump("onOperationComplete\n"); | debug("onOperationComplete\n"); | onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { dump("onOperationComplete\n"); }, |
debug("WebDavListener.onOperationComplete() called\n"); | LOG("WebDavListener.onOperationComplete() called"); | onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { // aClosure is the listener aClosure.onOperationComplete(this, aStatusCode, 0, null, null); debug("WebDavListener.onOperationComplete() called\n"); return; }, |
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { try { var ioService = Components.classes ["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var channel = ioService.newChannelFromURI( fixupUri(savedthis.mUri)); channel.notificationCallbacks = save... | onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { }, | onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { try { // All events are returned. Now set up a channel and a // streamloader to upload. onStopRequest will be called // once the write has fi... |
function onOperationComplete(aStatusCode, aResource, aOperation, aClosure) { | onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { aClosure.onOperationComplete(this, aStatusCode, 0, null, null); | function onOperationComplete(aStatusCode, aResource, aOperation, aClosure) { // 204 = HTTP "No content" // if (aStatusCode == 204) { LOG("Item deleted successfully."); var retVal = Components.results.NS_OK; ... |
if (aStatusCode == 204) { LOG("Item deleted successfully."); var retVal = Components.results.NS_OK; } else { LOG("Error deleting item: " + aStatusCode); retVal = Components.results.NS_ERROR_FAILURE; } if (aListener) { try { aListener.onOperationComplete(thisCalendar, Components.results.NS_OK, aListener.DELETE, aItem... | LOG("WebDavListener.onOperationComplete() called"); return; }, | function onOperationComplete(aStatusCode, aResource, aOperation, aClosure) { // 204 = HTTP "No content" // if (aStatusCode == 204) { LOG("Item deleted successfully."); var retVal = Components.results.NS_OK; ... |
if (count == gItems.length) { | if (count == aItems.length) { | onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { count++; if (!Components.isSuccessCode(aStatus)) { failedCount++; lastError = aStatus; } // See if it is time to end the calendar's batch. if (co... |
new Error("unexpected operation type: " + opType) ); | new Components.Exception("unexpected operation type: " + opType) ); | onOperationComplete: function( calendar, status, opType, id, detail ) { if (status != Components.results.NS_OK) { this.m_syncState.abort( detail ); } else if (this.m_opType != opType) { this.m_syncState.abort( new Error("unexpected operation type: " + ... |
debug("WebDavListener.onOperationDetail() called\n"); | LOG("WebDavListener.onOperationDetail() called"); | onOperationDetail: function(aStatusCode, aResource, aOperation, aDetail, aClosure) { debug("WebDavListener.onOperationDetail() called\n"); return; } |
onSelect(outlinerView.getSelectedFile()); | onFileSelected(outlinerView.getSelectedFile()); | function onOutlinerFocus(event) { // Reset the button label and enabled/disabled state. onSelect(outlinerView.getSelectedFile());} |
var titledBox = grid.parentNode; titledBox.setAttribute("hidden", "false"); | var groupBox = grid.parentNode; groupBox.setAttribute("hidden", "false"); | onpageload: function(aPageTag) { if ('Startup' in window.frames[ this.contentFrame ]) { window.frames[ this.contentFrame ].Startup(); } /* restore the list of menuItem labels */ var elementIDs = window.frames[this.contentFrame]._elementIDs; for(var i ... |
gUpdateWizard.errorItems = []; var updates = Components.classes["@mozilla.org/updates/update-service;1"] .getService(Components.interfaces.nsIUpdateService); updates.checkForUpdatesInternal(gUpdateWizard.items, gUpdateWizard.items.length, gUpdateTypes, gSourceEvent); | var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.update(gUpdateWizard.items, gUpdateWizard.items.length, nsIExtensionManager.UPDATE_MODE_VERSION, true); | onPageShow: function () { gUpdateWizard.setButtonLabels(null, true, "nextButtonText", true, "cancelButtonText", true); document.documentElement.getButton("next").focus(); var os = Components.classes["@mozilla.org/observer-service;1"] ... |
"introType_" + severity + "_app_and_version", | "introType_major_app_and_version", | onPageShow: function() { // disable the "next" button, as we don't want the user to // be able to progress with the update util we show them the details // which might include a warning about incompatible add-ons // disable the "back" button, as well (note the call to setButtons() // below does this, t... |
"introType_" + severity + "_app", [gUpdates.brandName]); | "introType_minor_app", [gUpdates.brandName]); | onPageShow: function() { // disable the "next" button, as we don't want the user to // be able to progress with the update util we show them the details // which might include a warning about incompatible add-ons // disable the "back" button, as well (note the call to setButtons() // below does this, t... |
function onParagraphFormatChange() | function onParagraphFormatChange(commandID) | function onParagraphFormatChange(){ return; //TODO: REWRITE THIS var menulist = document.getElementById("ParagraphSelect"); if (menulist) { // If we don't match anything, set to "normal" var newIndex = 0; var format = select.getAttribute("format"); if ( format == "mixed") {//dump("Mixed paragraph for... |
var commandNode = document.getElementById(commmandID); var state = commandNode.getAttribute("state"); dump(" ==== onParagraphFormatChange was called. state="+state+"|\n"); | function onParagraphFormatChange(){ return; //TODO: REWRITE THIS var menulist = document.getElementById("ParagraphSelect"); if (menulist) { // If we don't match anything, set to "normal" var newIndex = 0; var format = select.getAttribute("format"); if ( format == "mixed") {//dump("Mixed paragraph for... | |
if (menuItem.value == state) | if ("value" in menuItem && menuItem.value == state) | function onParagraphFormatChange(paraMenuList, commandID){ if (!paraMenuList) return; var commandNode = document.getElementById(commandID); var state = commandNode.getAttribute("state"); // force match with "normal" if (state == "body") state = ""; if (state == "mixed") { //Selection is the "mixed" ( > ... |
patch.QueryInterface(Components.interfaces.nsIWritablePropertyBag); | onPause: function() { var updates = Components.classes["@mozilla.org/updates/update-service;1"]. getService(Components.interfaces.nsIApplicationUpdateService); if (this._paused) updates.downloadUpdate(gUpdates.update, false); else { var patch = gUpdates.update.selectedPatch; pat... | |
if (!browser.popupUrls) { browser.popupUrls = []; browser.popupFeatures = []; } | function onPopupBlocked(aEvent) { var playSound = pref.getBoolPref("privacy.popups.sound_enabled"); if (playSound) { var sound = Components.classes["@mozilla.org/sound;1"] .createInstance(Components.interfaces.nsISound); var soundUrlSpec = pref.getCharPref("privacy.popups.sound_url"); ... | |
var dataObject = parent.hPrefWindow.wsm.dataManager.pageData[window.location.href]; | var dataObject = parent.hPrefWindow.wsm.dataManager.pageData["chrome: | function onPopupPrefsOK(){ var permissionmanager = Components.classes["@mozilla.org/permissionmanager;1"].getService(); permissionmanager = permissionmanager.QueryInterface(Components.interfaces.nsIPermissionManager); var dataObject = parent.hPrefWindow.wsm.dataManager.pageData[window.location.href]; if ('deletedPe... |
onPrefChanged: function(aName) | onPrefChanged: function onPrefChanged(aName) | onPrefChanged: function(aName) { if (aName == "inspector.dom.showAnon") this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), true); if (aName == "inspector.dom.showWhitespaceNodes") this.setWhitespaceNodes(PrefUtils.getPref("inspector.dom.showWhitespaceNodes")); if (aName == "inspector... |
if (aName == "inspector.dom.showProcessingInstructions") this.setProcessingInstructions(PrefUtils.getPref("inspector.dom.showProcessingInstructions"), true); | onPrefChanged: function(aName) { if (aName == "inspector.dom.showAnon") this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), true); if (aName == "inspector.dom.showWhitespaceNodes") this.setWhitespaceNodes(PrefUtils.getPref("inspector.dom.showWhitespaceNodes")); if (aName == "inspector... | |
dispatch("sync-fonts"); | client.dispatch("sync-font"); | function onPrefChanged(prefName, newValue, oldValue){ switch (prefName) { case "channelMaxLines": CIRCChannel.prototype.MAX_MESSAGES = newValue; break; case "charset": client.charset = newValue; break; case "clientMaxLines": c... |
dispatch("sync-motifs"); | client.dispatch("sync-motif"); | function onPrefChanged(prefName, newValue, oldValue){ switch (prefName) { case "channelMaxLines": CIRCChannel.prototype.MAX_MESSAGES = newValue; break; case "charset": client.charset = newValue; break; case "clientMaxLines": c... |
dispatch("sync-windows"); | client.dispatch("sync-window"); | function onPrefChanged(prefName, newValue, oldValue){ switch (prefName) { case "channelMaxLines": CIRCChannel.prototype.MAX_MESSAGES = newValue; break; case "charset": client.charset = newValue; break; case "clientMaxLines": c... |
dispatch("sync-headers"); | client.dispatch("sync-header"); | function onPrefChanged(prefName, newValue, oldValue){ switch (prefName) { case "channelMaxLines": CIRCChannel.prototype.MAX_MESSAGES = newValue; break; case "charset": client.charset = newValue; break; case "clientMaxLines": c... |
dispatch("sync-timestamps"); | client.dispatch("sync-timestamp"); | function onPrefChanged(prefName, newValue, oldValue){ switch (prefName) { case "channelMaxLines": CIRCChannel.prototype.MAX_MESSAGES = newValue; break; case "charset": client.charset = newValue; break; case "clientMaxLines": c... |
dispatch("sync-logs"); | client.dispatch("sync-log"); | function onPrefChanged(prefName, newValue, oldValue){ switch (prefName) { case "channelMaxLines": CIRCChannel.prototype.MAX_MESSAGES = newValue; break; case "charset": client.charset = newValue; break; case "clientMaxLines": c... |
listitem.label = document.getElementById('prefname').value; | listitem.setAttribute("label", document.getElementById('prefname').value); | function OnPrefOK(){ var bundle = this.opener.document.getElementById("bundle_cckwizard"); listbox = this.opener.document.getElementById("prefList"); for (var i=0; i < listbox.getRowCount(); i++) { if ((document.getElementById('prefname').value == listbox.getItemAtIndex(i).label) && (window.name == 'newpref')) ... |
listitem.value = value; | listitem.setAttribute("value", value); | function OnPrefOK(){ var bundle = this.opener.document.getElementById("bundle_cckwizard"); listbox = this.opener.document.getElementById("prefList"); for (var i=0; i < listbox.getRowCount(); i++) { if ((document.getElementById('prefname').value == listbox.getItemAtIndex(i).label) && (window.name == 'newpref')) ... |
var type = parent.getAccountValue(account, accountValues, "server", "type"); | var type = parent.getAccountValue(account, accountValues, "server", "type", null, false); | function onPreInit(account, accountValues){ var type = parent.getAccountValue(account, accountValues, "server", "type"); hideShowControls(type);} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.