rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var url = tempFileSpec.URLString; | var fileURL = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(nsIFileURL); fileURL.file = file; var url = fileURL.spec; | function prefNavSelectFile(folderFieldId, stringId, useNative){ var folderField = document.getElementById(folderFieldId); var dlgString = stringId ? bundle.GetStringFromName(stringId) : ''; var file = getFileOrFolderSpec( dlgString, false ); if( file != -1 ) { /* XXX nsILocalFile doesn't have a URL string */ ... |
this.name = name; this.displayName = this.name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_NETWORK, this.name); | this.unicodeName = name; this.viewName = name; this.canonicalName = name; this.encodedName = name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_NETWORK, this.unicodeName); | function PrefNetwork(parent, name, force, show){ if (name in parent.networks) return parent.networks[name]; this.parent = parent; this.name = name; this.displayName = this.name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_NETWORK, this.name); this.servers = new Object(); this.primServ... |
this.parent.networks[this.name] = this; | this.parent.networks[this.canonicalName] = this; | function PrefNetwork(parent, name, force, show){ if (name in parent.networks) return parent.networks[name]; this.parent = parent; this.name = name; this.displayName = this.name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_NETWORK, this.name); this.servers = new Object(); this.primServ... |
if (gPref.getPrefType(prefName) == gPref.PREF_INT) { gPref.setIntPref(prefName, prefSETValue); } if (gPref.getPrefType(prefName) == gPref.PREF_BOOL) { gPref.setBoolPref(prefName, prefSETValue); } } | function PrefOkay() {} | |
this.name = name; this.displayName = this.name; this.prettyName = this.name; | this.unicodeName = name; this.viewName = name; this.canonicalName = name; this.encodedName = name; this.prettyName = this.unicodeName; | function PrefServer(parent, name){ this.parent = parent; this.name = name; this.displayName = this.name; this.prettyName = this.name; // Not used, thus not localised. this.channels = new Object(); this.users = new Object(); this.parent.servers[name] = this; return this;}; |
} | }; | function prefSetter (value) { try { if (typeof defaultValue == "boolean") { prefManager.prefBranch.setBoolPref(prefName, value); } else if (typeof defaultValue == "number") { prefManager.prefBranch.setIntPref(prefN... |
this.name = name; this.nick = this.name; this.displayName = this.name; | this.unicodeName = name; this.viewName = name; this.canonicalName = name; this.encodedName = name; | function PrefUser(parent, name, force, show){ if (name in parent.users) return parent.users[name]; this.parent = parent; this.name = name; this.nick = this.name; this.displayName = this.name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_USER, [this.parent.pare... |
[this.parent.parent.name, this.name]); | [this.parent.parent.unicodeName, this.unicodeName]); | function PrefUser(parent, name, force, show){ if (name in parent.users) return parent.users[name]; this.parent = parent; this.name = name; this.nick = this.name; this.displayName = this.name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_USER, [this.parent.pare... |
this.parent.users[this.name] = this; | this.parent.users[this.canonicalName] = this; | function PrefUser(parent, name, force, show){ if (name in parent.users) return parent.users[name]; this.parent = parent; this.name = name; this.nick = this.name; this.displayName = this.name; this.prettyName = getMsg(MSG_PREFS_FMT_DISPLAY_USER, [this.parent.pare... |
var ccalendar=getCalendar(); ccalendar.addObserver(unifinderObserver,ccalendar.ITEM_FILTER_TYPE_EVENT); | var ccalendar = getDisplayComposite(); ccalendar.addObserver(unifinderObserver, ccalendar.ITEM_FILTER_TYPE_EVENT); | function prepareCalendarUnifinder( ){ // tell the unifinder to get ready var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { selectSelectedEventsInTree( EventSelectionArray ); } } gCalendarWindow.EventSelection.addObserver( unifinderEven... |
var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { selectSelectedEventsInTree( EventSelectionArray ); } | function onGridSelect(aEvent) { selectSelectedEventsInTree(aEvent.detail); | function prepareCalendarUnifinder( ){ // tell the unifinder to get ready var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { selectSelectedEventsInTree( EventSelectionArray ); } } gCalendarWindow.EventSelection.addObserver( unifinderEven... |
gCalendarWindow.EventSelection.addObserver( unifinderEventSelectionObserver ); | function prepareCalendarUnifinder( ){ // tell the unifinder to get ready var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { selectSelectedEventsInTree( EventSelectionArray ); } } gCalendarWindow.EventSelection.addObserver( unifinderEven... | |
viewDeck.addEventListener("itemselect", onGridSelect, true); | function prepareCalendarUnifinder( ){ // tell the unifinder to get ready var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { selectSelectedEventsInTree( EventSelectionArray ); } } gCalendarWindow.EventSelection.addObserver( unifinderEven... | |
var viewDeck = document.getElementById("view-deck") viewDeck.addEventListener("dayselect", unifinderOnDaySelect, false); | function prepareCalendarUnifinder( ){ // tell the unifinder to get ready var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { selectSelectedEventsInTree( EventSelectionArray ); } } gCalendarWindow.EventSelection.addObserver( unifinderEven... | |
function prepareCalendarUnifinder( eventSource ) | function prepareCalendarUnifinder( ) | function prepareCalendarUnifinder( eventSource ){ // tell the unifinder to get ready unifinderInit(); // set up our calendar event observer gICalLib.addObserver( unifinderEventDataSourceObserver );} |
unifinderInit(); | calendarUnifinderInit( ); | function prepareCalendarUnifinder( eventSource ){ // tell the unifinder to get ready unifinderInit(); // set up our calendar event observer gICalLib.addObserver( unifinderEventDataSourceObserver );} |
const selectedBrowser = gBrowser.selectedBrowser; if (selectedBrowser.securityUI) selectedBrowser.securityUI.init(selectedBrowser.contentWindow); | function prepareForStartup(){ gURLBar = document.getElementById("urlbar"); gNavigatorBundle = document.getElementById("bundle_browser"); gProgressMeterPanel = document.getElementById("statusbar-progresspanel"); gBrowser.addEventListener("DOMUpdatePageReport", gPopupBlockerObserver.onUpdatePageReport, false); gBr... | |
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem).treeOwner .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIXULWindow) .XULBrowserWindow =... | function prepareForStartup(){ gURLBar = document.getElementById("urlbar"); gNavigatorBundle = document.getElementById("bundle_browser"); gProgressMeterPanel = document.getElementById("statusbar-progresspanel"); gBrowser.addEventListener("DOMUpdatePageReport", UpdatePageReport, false); gBrowser.addEventListener("... | |
BrowserSearch.init(); | function prepareForStartup(){ gURLBar = document.getElementById("urlbar"); gNavigatorBundle = document.getElementById("bundle_browser"); gProgressMeterPanel = document.getElementById("statusbar-progresspanel"); gBrowser.addEventListener("DOMUpdatePageReport", gPopupBlockerObserver.onUpdatePageReport, false); // No... | |
var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"] .getService(Components.interfaces.nsIGlobalHistory); gBrowser.docShell.QueryInterface(Components.interfaces.nsIDocShellHistory).globalHistory = globalHistory; | gBrowser.docShell.QueryInterface(Components.interfaces.nsIDocShellHistory).useGlobalHistory = true; | function prepareForStartup(){ gURLBar = document.getElementById("urlbar"); gNavigatorBundle = document.getElementById("bundle_browser"); gProgressMeterPanel = document.getElementById("statusbar-progresspanel"); gBrowser.addEventListener("DOMUpdatePageReport", UpdatePageReport, false); var webNavigation; try {... |
return ReplaceWhitespace(string,"_").replace(/\W+/g,'') | return ReplaceWhitespace(string,"_").replace(/\W+/g,''); | function PrepareStringForURL(string){ return ReplaceWhitespace(string,"_").replace(/\W+/g,'')} |
var soundURL = document.getElementById( "alarmsoundpath" ).value; var gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound); if (soundURL.indexOf( "file: gSound.playSystemSound(soundURL); } else { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getS... | var soundURL = document.getElementById("alarmsoundpath").value; var soundiface = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var url = ioService.newURI(... | function previewAlarm() { var soundURL = document.getElementById( "alarmsoundpath" ).value; var gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound); if (soundURL.indexOf( "file://" ) == -1) { gSound.playSystemSound(soundURL); } else { var ioService = Comp... |
var preview = window.openDialog("chrome: "_blank", "chrome,resizable", preview_name, preview_URL); | window.openDialog("chrome: "_blank", "chrome,resizable", preview_name, preview_URL); | function PreviewPanel() { var tree = document.getElementById('other-panels'); var database = tree.database; var select_list = tree.selectedItems for (var nodeIndex=0; nodeIndex<select_list.length; nodeIndex++) { var node = select_list[nodeIndex]; if (!node) break; // Skip folders if (node.getAttribut... |
"_blank", "chrome,resizable", preview_name, preview_URL); | "_blank", "chrome,resizable,close,dialog=no", preview_name, preview_URL); | function PreviewPanel() { var tree = document.getElementById('other-panels'); var database = tree.database; var select_list = tree.selectedItems for (var nodeIndex=0; nodeIndex<select_list.length; nodeIndex++) { var node = select_list[nodeIndex]; if (!node) break; // Skip folders if (node.getAttribut... |
if( gCalendarWindow.currentView == gCalendarWindow.monthView && gCalendarWindow.getSelectedDate().getMonth() == 5) printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome: else printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome: | printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome: | function print(){ // print sample monthcalendar if in month-view, and june is selected if( gCalendarWindow.currentView == gCalendarWindow.monthView && gCalendarWindow.getSelectedDate().getMonth() == 5) printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome://calendar/content/converters/ecsJune... |
printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome: | var args = new Object(); args.eventSource = gEventSource; args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ; args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate(); var categoriesStringBundle = srGetStrBundle("chrome: var defaultWeekStart = categoriesStringBundle.GetStringFromName("... | function print(){ printEventArray( gCalendarWindow.EventSelection.selectedEvents, "chrome://calendar/content/converters/sortEvents.xsl" );} |
var args = new Object(); args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ; args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate(); var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "week.start", gCalendarBundle.getString("defaultWeekStart" ) ); var WeeksInVi... | window.openDialog("chrome: "printdialog","chrome"); | function print(){ var args = new Object(); args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ; args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate(); var Offset = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "week.start", ... |
escape(aAttachment.displayName), | encodeURIComponent(aAttachment.displayName), | function printAttachment(aAttachment){ /* we haven't implemented the ability to print attachments yet... messenger.printAttachment(aAttachment.contentType, aAttachment.url, escape(aAttachment.displayName), aAttachment.messageUri); */... |
escape(this.displayName), | encodeURIComponent(this.displayName), | createNewAttachmentInfo.prototype.printAttachment = function printAttachment(){ /* we haven't implemented the ability to print attachments yet... messenger.printAttachment(this.contentType, this.url, escape(this.displayName), this.uri... |
var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... | |
var printFunction; var printFunctionArg = gStartDate ; | var ccalendar = getDisplayComposite(); var listener = { mEventArray: new Array(), | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... |
switch( caltype.value ) | onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { printInitWindow(listener.mEventArray); }, onGetResult: function (aCalendar, aStatus, aItemType, aDetail, aCount, aItems) { for (var i = 0; i < aCount; i++) { listener.mEventArray.push(aItems[i]); } } }; var filter = ccalendar.ITEM_FI... | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... |
case 'month' : printFunction = "printMonthView" ; break ; | case 'currentview': case '': var displayStart = gCalendarWindow.currentView.displayStartDate; var displayEnd = gCalendarWindow.currentView.displayEndDate; if(!displayStart) { displayStart = gCalendarWindow.currentView.firstDateOfView; displayEnd = gCalendarWindow.currentView.lastDateOfView; } ccalendar.getItems(filte... | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... |
printFunction = "printEventArray" ; printFunctionArg = gSelectedEvents ; break ; case 'day' : printFunction = "printDayView" ; break ; case 'week' : printFunction = "printWeekView" ; break ; case 'multiweek' : printFunction = "printMultiWeekView" ; | printInitWindow(gCalendarWindow.EventSelection.selectedEvents); break; case 'custom' : var start = document.getElementById("start-date-picker").value; var end = document.getElementById("end-date-picker").value; ccalendar.getItems(filter, 0, jsDateToDateTime(start), jsDateToDateTime(end), listener); | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... |
alert("Error : no case in printDialog.js::printCalendar()"); return false ; | dump("Error : no case in printDialog.js::printCalendar()"); | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... |
printInitWindow(printFunction,printFunctionArg) return true ; | function printCalendar() { var caltype=document.getElementById("view-field"); if (caltype.value == '') caltype.value='month'; var printFunction; var printFunctionArg = gStartDate ; switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFuncti... | |
var ccalendar = getCompositeCalendar(); | var ccalendar = window.opener.getCompositeCalendar(); | function printCalendar() { var ccalendar = getCompositeCalendar(); var start; var end; var eventList; var listener = { mEventArray: new Array(), onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) { printInitWindow(listener.mEventArray, start, end);... |
gHtmlDocument.write("<table>"); | function printDayView(currentDate) { var dayStart = currentDate.getDate(); var mydateshow=""; mydateshow+=ArrayOfDayNames[currentDate.getDay()]; mydateshow+=", "; mydateshow+=monthNames[currentDate.getMonth()]+" "+currentDate.getDate()+" "+currentDate.getFullYear(); gHtmlDocument.write("<tr ><td colspan=2 align=c... | |
numSelected, selectionArray); | numSelected, selectionArray, statusFeedback); | function PrintEnginePrint(){ var tree = GetThreadTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; if (numSelected == 0) { dump("PrintEnginePrint(): No messages selected.\n"); return false; } var selectionArray = new Array(numSelected); for(var i = 0; i < numSelected; i+... |
var numMessages = messageList.length; if (numMessages == 0) { dump("PrintEnginePrint(): No messages selected.\n"); return false; } if (gPrintSettings == null) { gPrintSettings = GetPrintSettings(); } printEngineWindow = window.openDialog("chrome: "", "chrome,dialog=no,all,centerscreen", numMessages, messageList, sta... | return PrintEnginePrintInternal(messageList, messageList.length, false, Components.interfaces.nsIMsgPrintEngine.MNAB_PRINT_MSG); | function PrintEnginePrint(){ var messageList = GetSelectedMessages(); var numMessages = messageList.length; if (numMessages == 0) { dump("PrintEnginePrint(): No messages selected.\n"); return false; } if (gPrintSettings == null) { gPrintSettings = GetPrintSettings(); } printEngin... |
var xslDocument = domParser.parseFromString(xslContent, 'text/xml'); | var xslDocument = domParser.parseFromString(xslContent, 'application/xml'); | function printEventArray( calendarEventArray, stylesheetName ){ var xslProcessor = new XSLTProcessor(); var domParser = new DOMParser; var xcsDocument = getXcsDocument( calendarEventArray ); printWindow = window.open( "", "CalendarPrintWindow"); if( printWindow ) { // if only passsed a filename, assume... |
printwindow.title = printwindow.name ; | function printInitWindow(printFunction,printFunctionArg){ var mytitle=document.getElementById("title-field").value; var showprivate=document.getElementById("private-checkbox"); printwindow=window.openDialog("chrome://calendar/content/calPrintEngine.xul", "CalendarPrintWindow", "chrome,dialog=no,all,centerscree... | |
function printInitWindow(printFunction,printFunctionArg) | function printInitWindow(eventList) | function printInitWindow(printFunction,printFunctionArg){ var mytitle=document.getElementById("title-field").value; var showprivate=document.getElementById("private-checkbox"); printwindow=window.openDialog("chrome://calendar/content/calPrintEngine.xul", "CalendarPrintWindow", "chrome,dialog=no,all,centerscree... |
var mytitle=document.getElementById("title-field").value; var showprivate=document.getElementById("private-checkbox"); | var args = new Object(); args.title = document.getElementById("title-field").value; args.showprivate = document.getElementById("private-checkbox"); args.eventList = eventList; | function printInitWindow(printFunction,printFunctionArg){ var mytitle=document.getElementById("title-field").value; var showprivate=document.getElementById("private-checkbox"); printwindow=window.openDialog("chrome://calendar/content/calPrintEngine.xul", "CalendarPrintWindow", "chrome,dialog=no,all,centerscree... |
printwindow=window.openDialog("chrome: | window.openDialog("chrome: | function printInitWindow(printFunction,printFunctionArg){ var mytitle=document.getElementById("title-field").value; var showprivate=document.getElementById("private-checkbox"); printwindow=window.openDialog("chrome://calendar/content/calPrintEngine.xul", "CalendarPrintWindow", "chrome,dialog=no,all,centerscree... |
printFunction,printFunctionArg,mytitle,showprivate,gArgs,gCalendarWindow ); return printwindow ; | args); | function printInitWindow(printFunction,printFunctionArg){ var mytitle=document.getElementById("title-field").value; var showprivate=document.getElementById("private-checkbox"); printwindow=window.openDialog("chrome://calendar/content/calPrintEngine.xul", "CalendarPrintWindow", "chrome,dialog=no,all,centerscree... |
gHtmlString += "<td align=left valign=top style='border:1px solid black;vertical-alignment:top;' >"; gHtmlString += "<table valign=top height=100 width=100 style='font-size:10px;'><tr valign=top><td valign=top width=20%>"; | gHtmlString += "<td align=left valign=top style='border:1px solid black;vertical-align:top;' >"; gHtmlString += "<table valign=top height=100 width=100 style='font-size:10px;'><tr valign=top><td valign=top width=20%>"; | function printMonthView(currentDate) { // ok first let's get the array of events for this month. var calDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1); var dayFirst = calDate.getDay(); var dowStart = (startOfWeek <= dayFirst) ? dayFirst-startOfWeek : 7-startOfWeek; var weekStart=new Date(ca... |
dump("Set Message Priority to " + target.getAttribute('id') + "\n"); | function PriorityMenuSelect(target){ dump("Set Message Priority to " + target.getAttribute('id') + "\n"); if (gMsgCompose) { var msgCompFields = gMsgCompose.compFields; if (msgCompFields) msgCompFields.priority = target.getAttribute('id'); }} | |
msgCompFields.priority = target.getAttribute('id'); | switch (target.getAttribute('id')) { case "priority_lowest": msgCompFields.priority = "lowest"; break; case "priority_low": msgCompFields.priority = "low"; break; case "priority_normal": msgCompFields.priority = "normal"; break; case "priority_high": msgCompFields.priority = "high"; break; case "p... | function PriorityMenuSelect(target){ dump("Set Message Priority to " + target.getAttribute('id') + "\n"); if (gMsgCompose) { var msgCompFields = gMsgCompose.compFields; if (msgCompFields) msgCompFields.priority = target.getAttribute('id'); }} |
if (msgCompose) | if (gMsgCompose) | function PriorityMenuSelect(target){ dump("Set Message Priority to " + target.getAttribute('id') + "\n"); if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) msgCompFields.priority = target.getAttribute('id'); }} |
var msgCompFields = msgCompose.compFields; | var msgCompFields = gMsgCompose.compFields; | function PriorityMenuSelect(target){ dump("Set Message Priority to " + target.getAttribute('id') + "\n"); if (msgCompose) { var msgCompFields = msgCompose.compFields; if (msgCompFields) msgCompFields.priority = target.getAttribute('id'); }} |
showElement("alarm-length-field"); showElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "popupAndSound": | function processAlarmType(){ var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { debug("processAlarmType: " + alarmMenu.selectedItem.value ); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideEl... | |
profile.createNewProfile( aProfName, aProfDir ); | profile.createNewProfile( aProfName, aProfDir, useExistingDir ); | function processCreateProfileData( aProfName, aProfDir ){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved to that page.. but how ... |
var profile = Components.classes["component: profile = profile.QueryInterface(Components.interfaces.nsIProfile); | function processCreateProfileData(){ //Process Create Profile Data var i; for (i in wizardHash) { if (i == "ProfileName") { profName = wizardHash[i]; } if (i == "ProfileDir") { profDir = wizardHash[i]; } } var profile = Components.classes["component://netscape/profile/manager"].createInstance(... | |
return; | return false; | function processCreateProfileData(){ //Process Create Profile Data var i; for (i in wizardHash) { if (i == "ProfileName") { profName = wizardHash[i]; } if (i == "ProfileDir") { profDir = wizardHash[i]; } } var profile = Components.classes["component://netscape/profile/manager"].createInstance(... |
ExitApp(); | return false; | function processCreateProfileData(){ //Process Create Profile Data var i; for (i in wizardHash) { if (i == "ProfileName") { profName = wizardHash[i]; } if (i == "ProfileDir") { profDir = wizardHash[i]; } } var profile = Components.classes["component://netscape/profile/manager"].createInstance(... |
fileSpec.initWithUnicodePath(profile.defaultProfileParentDir.path); | fileSpec.initWithUnicodePath(profile.defaultProfileParentDir.unicodePath); | function processCreateProfileData( aProfName, aProfDir, langcode){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved to that page..... |
if( profile.profileExists( aProfName ) ) { alert( bundle.GetStringFromName( "profileExists" ) ); | if (profile.profileExists(aProfName)) { alert(gCreateProfileWizardBundle.getString("profileExists")); | function processCreateProfileData( aProfName, aProfDir, langcode){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved to that page..... |
var aString = pmbundle.GetStringFromName("invalidCharA"); var bString = pmbundle.GetStringFromName("invalidCharB"); | var aString = gProfileManagerBundle.getString("invalidCharA"); var bString = gProfileManagerBundle.getString("invalidCharB"); | function processCreateProfileData( aProfName, aProfDir, langcode){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved to that page..... |
return false; | function processCreateProfileData( aProfName, aProfDir, langcode, regioncode){ try { // note: deleted check for empty profName string here as this should be // done by panel. -bmg (31/10/99) // todo: move this check into the panel itself, activated ontyping :P // this should definetly be moved ... | |
if (!keepProgressWindowUpBox.checked) | if (!keepProgressWindowUpBox.checked) { | function processEndOfDownload(){ if (!keepProgressWindowUpBox.checked) closeWindow(); // shut down, we are all done. // o.t the user has asked the window to stay open so leave it open and enable the open and open new folder buttons setupPostProgressUI();} |
return; } | function processEndOfDownload(){ if (!keepProgressWindowUpBox.checked) closeWindow(); // shut down, we are all done. // o.t the user has asked the window to stay open so leave it open and enable the open and open new folder buttons setupPostProgressUI();} | |
if (this.mDummyMsgHeader) { if (lowerCaseHeaderName == "from") this.mDummyMsgHeader.author = header.headerValue; else if (lowerCaseHeaderName == "to") this.mDummyMsgHeader.recipients = header.headerValue; else if (lowerCaseHeaderName == "cc") this.mDummyMsgHeader.ccList = header.headerValue; else if (lowerCaseHeaderNam... | processHeaders: function(headerNameEnumerator, headerValueEnumerator, dontCollectAddress) { this.onStartHeaders(); var index = 0; while (headerNameEnumerator.hasMore()) { var header = new Object; header.headerValue = headerValueEnumerator.getNext(); header.heade... | |
abAddressCollector.collectUnicodeAddress(foo.headerValue); | { gCollectAddess = foo.headerValue; gCollectAddressTimer = setTimeout('abAddressCollector.collectUnicodeAddress(gCollectAddess);', 2000); } | processHeaders: function(headerNames, headerValues, numHeaders, dontCollectAddress) { this.onStartHeaders(); var index = 0; // process each header while (index < numHeaders) { // for consistancy sake, let's force all header names to be lower case so // we don't have to wo... |
gCollectAddress = foo.headerValue; | gCollectAddress = header.headerValue; | processHeaders: function(headerNames, headerValues, numHeaders, dontCollectAddress) { this.onStartHeaders(); var index = 0; // process each header while (index < numHeaders) { // for consistancy sake, let's force all header names to be lower case so // we don't have to wor... |
var headerName = header.headerName; headerName = headerName.toLowerCase(); if (!boxPartOfPopup && (headerName == "cc" || headerName == "from" || headerName == "to" || headerName == "reply-to")) { OutputEmailAddresses(containingBox, containerNode, header.headerValue, false, "", "", headerName) return; } var headerValue... | function ProcessHeaderValue(containingBox, containerNode, header, boxPartOfPopup){ // in the simplest case, we'll just create a text node for the header // and append it to the container Node. for certain headers, we might want to do // extra processing.... var headerName = header.headerName; headerName ... | |
var headerName = header.headerName; headerName = headerName.toLowerCase(); if (!boxPartOfPopup && (headerName == "cc" || headerName == "from" || headerName == "to" || headerName == "reply-to")) { OutputEmailAddresses(containingBox, containerNode, header.headerValue, false, "", "", headerName) return; } var headerValue... | containerNode.appendChild(textNode); | function ProcessHeaderValue(containingBox, containerNode, header, boxPartOfPopup){ // in the simplest case, we'll just create a text node for the header // and append it to the container Node. for certain headers, we might want to do // extra processing.... var headerName = header.headerName; headerName ... |
onMessageScored: function processNext(aScore) { if (aMessage) { if (aScore == 0) { aMessage.label = 3; } else if (aScore == 1) { aMessage.label = 1; } } aNextFunction(); } | function processNext() { if (counter < messages.length) { var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; mark(message, aSpam, processNext); } else { gJunkmailComponent.mBatchUpdate = false; } } | onMessageScored: function processNext(aScore) { if (aMessage) { //if (aScore == -1) debugger; if (aScore == 0) { aMessage.label = 3; } else if (aScore == 1) { aMessage.label = 1; } } aNextFunction(); } |
while (!message.isRead) { if (counter == messages.length) { dump('[bayesian filter message analysis complete.]\n'); gJunkmailComponent.mBatchUpdate = false; return; } messageUri = messages[counter]; message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; } | function processNext() { if (counter < messages.length) { // XXX TODO jumping through hoops here. var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; while (!message.... | |
gJunkmailComponent.batchUpdate = false; | gJunkmailComponent.endBatch(); | function processNext() { if (counter < messages.length) { // XXX TODO jumping through hoops here. var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; while (!message.... |
if (path[0] == '~') | try { file = sfile.clone().QueryInterface(nsILocalFile); } catch(e) { dump("Couldn't clone\n"+e); return false; } var tilde_file = file.clone(); tilde_file.append("~"); if (path[0] == '~' && !(path == "~" && tilde_file.exists()) && (path.length == 1 || path[1] == "/")) | function processPathEntry(path, fileArray){ var filePath; var file; if (path[0] == '~') filePath = homeDir.path + path.substring(1); else filePath = path; // Unescape quotes filePath = filePath.replace(/\\\"/g, "\""); try{ file = sfile.clone().QueryInterface(nsILocalFile); } catch(e) { dump("Coul... |
try{ file = sfile.clone().QueryInterface(nsILocalFile); } catch(e) { dump("Couldn't clone\n"+e); return false; } | function processPathEntry(path, fileArray){ var filePath; var file; if (path[0] == '~') filePath = homeDir.path + path.substring(1); else filePath = path; // Unescape quotes filePath = filePath.replace(/\\\"/g, "\""); try{ file = sfile.clone().QueryInterface(nsILocalFile); } catch(e) { dump("Coul... | |
if (this.locked) | if (this.isLocked()) | processQueue: function () { if (this.locked) return; var a; var hasItems = this.queue.length; while ((a = this.queue.shift())) { switch (a.action) { case 'add': this.mMemoryCalendar.addItem(a.item, a.listener); ... |
if (!path.exists()) { display(getMsg(MSG_ERR_ITEM_NOT_FOUND, scripts[i]), MT_WARN); continue; } | function processStartupScripts(){ client.plugins = new Array(); var scripts = client.prefs["initialScripts"]; for (var i = 0; i < scripts.length; ++i) { if (scripts[i].search(/^file:|chrome:/i) != 0) { display(getMsg(MSG_ERR_INVALID_SCHEME, scripts[i]), MT_ERROR); continu... | |
if (url.search(/^irc:\/?\/?\/?$/i) == -1) | if (url.search(/^ircs?:\/?\/?\/?$/i) == -1) | function processStartupURLs(){ var wentSomewhere = false; if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { var url = window.arguments[0].url; if (url.search(/^irc:\/?\/?\/?$/i) == -1) { ... |
/* if the url is not irc: irc:/ or irc: | /* if the url is not irc: irc:/, irc: | function processStartupURLs(){ var wentSomewhere = false; if ("arguments" in window && 0 in window.arguments && typeof window.arguments[0] == "object" && "url" in window.arguments[0]) { var url = window.arguments[0].url; if (url.search(/^irc:\/?\/?\/?$/i) == -1) { ... |
var textboxNotEmpty; if(document.getElementById( textboxId ).textLength >= 1 ) textboxNotEmpty = true else textboxNotEmpty = false var buttonDisabled = document.getElementById( buttonId ).disabled; var textboxAndButton = (textboxNotEmpty + buttonDisabled); | var theTextbox = document.getElementById( textboxId ); var theButton = document.getElementById( buttonId ); | function processTextboxWithButton( textboxId, buttonId ){ var textboxNotEmpty; if(document.getElementById( textboxId ).textLength >= 1 ) textboxNotEmpty = true else textboxNotEmpty = false var buttonDisabled = document.getElementById( buttonId ).disabled; var textboxAndButton = (textboxNot... |
debug("textboxNotEmpty: " + textboxNotEmpty); debug("buttonDisabled: " + buttonDisabled); debug("textboxAndButton: " + textboxAndButton); switch(textboxAndButton) { case 1: break; case 0: | if ( theTextbox.textLength == 0 && !theButton.disabled ) { | function processTextboxWithButton( textboxId, buttonId ){ var textboxNotEmpty; if(document.getElementById( textboxId ).textLength >= 1 ) textboxNotEmpty = true else textboxNotEmpty = false var buttonDisabled = document.getElementById( buttonId ).disabled; var textboxAndButton = (textboxNot... |
break; case 2: | } else if ( theTextbox.textLength > 0 && theButton.disabled ) { | function processTextboxWithButton( textboxId, buttonId ){ var textboxNotEmpty; if(document.getElementById( textboxId ).textLength >= 1 ) textboxNotEmpty = true else textboxNotEmpty = false var buttonDisabled = document.getElementById( buttonId ).disabled; var textboxAndButton = (textboxNot... |
break; | function processTextboxWithButton( textboxId, buttonId ){ var textboxNotEmpty; if(document.getElementById( textboxId ).textLength >= 1 ) textboxNotEmpty = true else textboxNotEmpty = false var buttonDisabled = document.getElementById( buttonId ).disabled; var textboxAndButton = (textboxNot... | |
var oldPercentComplete = getElementValue("percent-complete-menulist", "data"); | var oldPercentComplete = getElementValue("percent-complete-menulist", "value"); | function processToDoStatus(status, passedInCompletedDate){ // RFC2445 doesn't support completedDates without the todo's status // being "COMPLETED", however twiddling the status menulist shouldn't // nuking that information at this point (in case you change status // back to COMPLETED). When we go to store ... |
case "None": menuListSelectItem("todo-status-field", "None"); | case "NONE": menuListSelectItem("todo-status-field", "NONE"); | function processToDoStatus(status, passedInCompletedDate){ // RFC2445 doesn't support completedDates without the todo's status // being "COMPLETED", however twiddling the status menulist shouldn't // nuking that information at this point (in case you change status // back to COMPLETED). When we go to store ... |
var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); | var ps = Components.classes[PROMPT_CTRID].getService(nsIPromptService); | function prompt(msg, initial, parent, title){ var PROMPT_CTRID = "@mozilla.org/embedcomp/prompt-service;1"; var nsIPromptService = Components.interfaces.nsIPromptService; var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); if (!parent) parent = window; if (!title) ti... |
var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); | var ps = Components.classes[PROMPT_CTRID].getService(nsIPromptService); | function prompt(msg, initial, parent, title){ var PROMPT_CTRID = "@mozilla.org/embedcomp/prompt-service;1"; var nsIPromptService = Components.interfaces.nsIPromptService; var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); if (!parent) parent = window; if (!title) ti... |
var promptService = null; try { promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); } catch (e) {} | var promptService = GetPromptService(); | function PromptAndSetTitleIfNone(aHTMLDoc){ if (!aHTMLDoc) throw NS_ERROR_NULL_POINTER; var title = aHTMLDoc.title; if (title.length > 0) // we have a title; no need to prompt! return true; var promptService = null; try { promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getServic... |
var fileLocation = ioService.getFileFromURLSpec(aDocumentURLString); | var fileLocation = fileHandler.getFileFromURLSpec(aDocumentURLString); | function PromptForSaveLocation(aDoSaveAsText, aEditorType, aMIMEType, ahtmlDocument, aDocumentURLString){ var dialogResult = {}; dialogResult.filepickerClick = nsIFilePicker.returnCancel; dialogResult.resultingURI = ""; dialogResult.resultingLocalFile = null; var fp = null; try { fp = Components.classes["@mozi... |
dialogResult.resultingURIString = ioService.getURLSpecFromFile(fp.file); | dialogResult.resultingURIString = fileHandler.getURLSpecFromFile(fp.file); | function PromptForSaveLocation(aDoSaveAsText, aEditorType, aMIMEType, ahtmlDocument, aDocumentURLString){ var dialogResult = {}; dialogResult.filepickerClick = nsIFilePicker.returnCancel; dialogResult.resultingURI = ""; dialogResult.resultingLocalFile = null; var fp = null; try { fp = Components.classes["@mozi... |
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); | var ioService = GetIOService(); | function PromptForSaveLocation(aDoSaveAsText, aEditorType, aMIMEType, ahtmlDocument, aDocumentURLString){ var dialogResult = new Object; dialogResult.filepickerClick = nsIFilePicker.returnCancel; dialogResult.resultingURI = ""; dialogResult.resultingLocalFile = null; var fp = null; try { fp = Components.classe... |
throw Components.results.NS_ERROR_FAILURE; | return null; | promptForSaveToFile: function(aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .createInstan... |
if (aSuggestedFileExtension) { picker.defaultExtension = aSuggestedFileExtension.substring(1); } else { try { picker.defaultExtension = this.mLauncher.MIMEInfo.primaryExtension; } catch (ex) { } } | promptForSaveToFile: function(aContext, aDefaultFile, aSuggestedFileExtension) { var result = ""; // Use file picker to show dialog. var nsIFilePicker = Components.interfaces.nsIFilePicker; var picker = Components.classes[ "@mozilla.org/filepicker;1" ] .createInstan... | |
var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); | var ps = Components.classes[PROMPT_CTRID].getService(nsIPromptService); | function promptPassword(msg, initial, parent, title){ var PROMPT_CTRID = "@mozilla.org/embedcomp/prompt-service;1"; var nsIPromptService = Components.interfaces.nsIPromptService; var ps = Components.classes[PROMPT_CTRID].createInstance(nsIPromptService); if (!parent) parent = window; if (!title) ... |
this.rpcPending_ = false; | function PROT_ListManager() { this.debugZone = "listmanager"; G_debugService.enableZone(this.debugZone); this.currentUpdateChecker_ = null; // set when we toggle updates this.rpcPending_ = false; this.prefs_ = new G_Preferences(); this.updateserverURL_ = this.prefs_.getPref(kUpdateServerUrl, null); // The list... | |
this.updateserverURL_ = this.prefs_.getPref(kUpdateServerUrl, null); | this.updateserverURL_ = null; | function PROT_ListManager() { this.debugZone = "listmanager"; G_debugService.enableZone(this.debugZone); this.currentUpdateChecker_ = null; // set when we toggle updates this.rpcPending_ = false; this.prefs_ = new G_Preferences(); this.updateserverURL_ = this.prefs_.getPref(kUpdateServerUrl, null); // The list... |
this.appDir_ = null; | this.appDir_ = null; this.initAppDir_(); | function PROT_ListManager() { this.debugZone = "listmanager"; G_debugService.enableZone(this.debugZone); // We run long-lived operations on "threads" (user-level // time-slices) in order to prevent locking up the UI var threadConfig = { "interleave": true, "runtime": 80, "delay": 400, }; this.threadQueu... |
this.listManager_.setUpdateUrl(gDataProvider.getUpdateURL()); | function PROT_ListWarden() { this.debugZone = "listwarden"; var listManager = Cc["@mozilla.org/url-classifier/listmanager;1"] .getService(Ci.nsIUrlListManager); this.listManager_ = listManager; // Once we register tables, their respective names will be listed here. this.blackTables_ = []; thi... | |
var proxy = FindProxyForURL(uri.spec, uri.host); | var proxy = LocalFindProxyForURL(uri.spec, uri.host); | ProxyForURL: function(url, host, port, type) { var uri = url.QueryInterface(Components.interfaces.nsIURI); // Call the original function- var proxy = FindProxyForURL(uri.spec, uri.host); debug("Proxy = " + proxy); if (proxy == "DIRECT") { host.value = null; t... |
} | }, | ProxyForURL: function(url, host, port, type) { var uri = url.QueryInterface(Components.interfaces.nsIURI); // Call the original function- var proxy = FindProxyForURL(uri.spec, uri.host); debug("Proxy = " + proxy); if (proxy == "DIRECT") { host.value = null; t... |
if (proxy == "DIRECT") { | if(proxy == null) { return; } proxy = proxy.split(";")[0]; if ( proxy.search(/^\s*DIRECT\s*$/i) != -1 ) { | ProxyForURL: function(url, host, port, type) { /* If we're not done loading the pac yet, wait (ideally). For now, just return DIRECT to avoid loops. A simple mutex between ProxyForURL and LoadPACFromURL locks-up the browser. */ if (!this.done) { host.value = nu... |
var typehostport = /^\s*(\w+)\s+([^:]+)(:\d+)?/(proxy); if(typehostport != null) { host.value = typehostport[2]; typehostport[1] = typehostport[1].toUpperCase(); | ProxyForURL: function(url, host, port, type) { /* If we're not done loading the pac yet, wait (ideally). For now, just return DIRECT to avoid loops. A simple mutex between ProxyForURL and LoadPACFromURL locks-up the browser. */ if (!this.done) { host.value = nu... | |
var hostport = /^PROXY ([^:]+):(\d+)/(proxy); host.value = hostport[1]; port.value = hostport[2]; type.value = "http"; | switch(typehostport[1]) { case "PROXY": port.value = (typehostport[3] != null)? typehostport[3].substr(1): 80; type.value = "http"; break; case "SOCKS": port.value = (typehostport[3] != null)? typehostport[3].substr(1): 1080; type.value = "socks4"; break; } } | ProxyForURL: function(url, host, port, type) { /* If we're not done loading the pac yet, wait (ideally). For now, just return DIRECT to avoid loops. A simple mutex between ProxyForURL and LoadPACFromURL locks-up the browser. */ if (!this.done) { host.value = nu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.