rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
version = getChildById (this.currentContent, "source2-version-label"); help = getChildById (this.currentContent, "source2-help-label");
function s2v_show (){ var source2View = this; function tryAgain () { //dd ("source2 view trying again..."); source2View.onShow(); }; var version; var help; try { this.tabs = getChildById (this.currentContent, "source2-tabs"); this.deck = getChildById (this.curre...
version.setAttribute ("value", console.userAgent); help.setAttribute ("value", MSG_SOURCE2_HELP);
function s2v_show (){ var source2View = this; function tryAgain () { //dd ("source2 view trying again..."); source2View.onShow(); }; var version; var help; try { this.tabs = getChildById (this.currentContent, "source2-tabs"); this.deck = getChildById (this.curre...
this.tabs.selectedItem = this.tabs.childNodes[index];
{ for (var i = 0; i < this.tabs.childNodes.length; ++i) { var tab = this.tabs.childNodes[i]; tab.selected = false; tab.removeAttribute("selected"); tab.removeAttribute("beforeselected"); tab.removeAttribute("afterselected"); } tab = this.tabs.childNodes[index]; tab.selected = true; tab.setAttribute("selected", "true")...
function s2v_showtab (index){ //dd ("show tab " + index); if (this.tabs) this.tabs.selectedItem = this.tabs.childNodes[index]; else this.lastSelectedTab = index;}
var listener = console.views.source2.progressListener; iframe.addProgressListener (listener, WINDOW); iframe.loadURI (iframe.getAttribute ("targetSrc"));
function s2v_syncframe (iframe){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var source2View = this; function tryAgain () { dd ("s...
dd ("caught exception showing session view, will try again later."); dd (ex); dd (dumpObjectTree(ex));
function s2v_syncframe (iframe){ const nsIWebProgress = Components.interfaces.nsIWebProgress; const ALL = nsIWebProgress.NOTIFY_ALL; const DOCUMENT = nsIWebProgress.NOTIFY_STATE_DOCUMENT; const WINDOW = nsIWebProgress.NOTIFY_STATE_WINDOW; var source2View = this; function tryAgain () { dd ("s...
document.getElementById("privacySanitize").disabled=true;
function sanitizeAll(){ // Cache var classID = Components.classes["@mozilla.org/network/cache-service;1"]; var cacheService = classID.getService(Components.interfaces.nsICacheService); cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY); cacheService.evictEntries(Components.interfa...
if (name.length > maxLength) name = name.substring(0, maxLength);
function sanitizeName(aName) { const chars = "-abcdefghijklmnopqrstuvwxyz0123456789"; var name = aName.toLowerCase(); name = name.replace(/ /g, "-"); name = name.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join(""); if (!name) { ...
var panel = current_panels.getNext();
panel = current_panels.getNext();
function Save(){ persist_dialog_dimensions(); var all_panels = document.getElementById('other-panels'); var current_panels = document.getElementById('current-panels'); // See if list membership has changed var root = document.getElementById('current-panels-root'); var panels = root.childNodes; var list_unchang...
persist_dialog_dimensions();
function Save(){ var all_panels = document.getElementById('other-panels'); var current_panels = document.getElementById('current-panels'); // See if list membership has changed var root = document.getElementById('current-panels-root'); var panels = root.childNodes; var list_unchanged = (panels.length == origina...
panel = current_panels.getNext();
var panel = current_panels.getNext();
function Save(){ persist_dialog_dimensions(); var all_panels = document.getElementById('other-panels'); var current_panels = document.getElementById('current-panels'); // See if list membership has changed var root = document.getElementById('current-panels-root'); var panels = root.childNodes; var list_unchang...
if (!has_element(panels, id) || has_targets(all_panels.database, panel)) {
if (has_element(panels, id)) { have_panel_attributes[id] = true; container.RemoveElement(panel, false); } else {
function Save(){ persist_dialog_dimensions(); var all_panels = document.getElementById('other-panels'); var current_panels = document.getElementById('current-panels'); // See if list membership has changed var root = document.getElementById('current-panels-root'); var panels = root.childNodes; var list_unchang...
} else { container.RemoveElement(panel, false);
function Save(){ persist_dialog_dimensions(); var all_panels = document.getElementById('other-panels'); var current_panels = document.getElementById('current-panels'); // See if list membership has changed var root = document.getElementById('current-panels-root'); var panels = root.childNodes; var list_unchang...
copy_resource_deeply(all_panels.database, RDF.GetResource(panels[ii]), container);
var id = panels[ii]; var resource = RDF.GetResource(id); if (have_panel_attributes[id]) { container.AppendElement(resource); } else { copy_resource_deeply(all_panels.database, resource, container); }
function Save(){ persist_dialog_dimensions(); var all_panels = document.getElementById('other-panels'); var current_panels = document.getElementById('current-panels'); // See if list membership has changed var root = document.getElementById('current-panels-root'); var panels = root.childNodes; var list_unchang...
if (dest[slot] != typeArray[slot]) {
if (slot in dest && dest[slot] != typeArray[slot]) {
function saveAccount(accountValues, account){ var identity = null; var server = null; if (account) { identity = account.defaultIdentity; server = account.incomingServer; } for (var type in accountValues) { var typeArray = accountValues[type]; for (var slot in typeArray) { var dest; try { ...
}
function saveAccount(accountValues, account){ var identity = null; var server = null; if (account) { identity = account.defaultIdentity; server = account.incomingServer; } for (var type in accountValues) { var typeArray = accountValues[type]; for (var slot in typeArray) { var dest; try { ...
attachmentDisplayNameArray[index] = escape(attachment.displayName);
attachmentDisplayNameArray[index] = encodeURIComponent(attachment.displayName);
function SaveAllAttachments(){ try { // convert our attachment data into some c++ friendly structs var attachmentContentTypeArray = new Array(); var attachmentUrlArray = new Array(); var attachmentDisplayNameArray = new Array(); var attachmentMessageUriArray = new Array(); // populate these arrays.. for ...
attachmentDisplayNameArray[index] = escape(attachment.displayName);
attachmentDisplayNameArray[index] = encodeURI(attachment.displayName);
function SaveAllAttachments(){ try { // convert our attachment data into some c++ friendly structs var attachmentContentTypeArray = new Array(); var attachmentUrlArray = new Array(); var attachmentDisplayNameArray = new Array(); var attachmentMessageUriArray = new Array(); // populate these arrays.. for ...
messenger.saveAllAttachments(attachmentUrlArray.length, attachmentUrlArray, attachmentDisplayNameArray, attachmentMessageUriArray);
messenger.saveAllAttachments(attachmentContentTypeArray.length, attachmentContentTypeArray, attachmentUrlArray, attachmentDisplayNameArray, attachmentMessageUriArray);
function SaveAllAttachments(){ try { // convert our attachment data into some c++ friendly structs var attachmentUrlArray = new Array(); var attachmentDisplayNameArray = new Array(); var attachmentMessageUriArray = new Array(); // populate these arrays.. for (index in currentAttachments) { var attach...
GenericSendMessage(msgCompDeliverMode.SaveAsDraft);
GenericSendMessage(nsIMsgCompDeliverMode.SaveAsDraft);
function SaveAsDraft(){ dump("SaveAsDraft from XUL\n"); GenericSendMessage(msgCompDeliverMode.SaveAsDraft); defaultSaveOperation = "draft";}
var subject = messenger.messageServiceFromURI(uri) .messageURIToMsgHdr(uri).mime2DecodedSubject;
var subject = messenger.msgHdrFromURI(uri).mime2DecodedSubject;
function SaveAsFile(uri){ if (uri) { var filename = null; try { var subject = messenger.messageServiceFromURI(uri) .messageURIToMsgHdr(uri).mime2DecodedSubject; filename = GenerateValidFilename(subject, ".eml"); } catch (ex) {} messenger.saveAs(uri, true, null, file...
var subject = document.getElementById('msgSubject').value;
var subject = GetMsgSubjectElement().value;
function SaveAsFile(saveAs){ dump("SaveAsFile from XUL\n"); var subject = document.getElementById('msgSubject').value; GetCurrentEditor().setDocumentTitle(subject); if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain) SaveDocument(saveAs, false, "text/plain"); else SaveDocument(saveAs, false, "t...
editorShell.saveDocument(saveAs, false, "text/plain");
SaveDocument(saveAs, false, "text/plain");
function SaveAsFile(saveAs){ dump("SaveAsFile from XUL\n"); if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain) editorShell.saveDocument(saveAs, false, "text/plain"); else editorShell.saveDocument(saveAs, false, "text/html"); defaultSaveOperation = "file";}
editorShell.saveDocument(saveAs, false, "text/html");
SaveDocument(saveAs, false, "text/html");
function SaveAsFile(saveAs){ dump("SaveAsFile from XUL\n"); if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain) editorShell.saveDocument(saveAs, false, "text/plain"); else editorShell.saveDocument(saveAs, false, "text/html"); defaultSaveOperation = "file";}
if (msgCompose.bodyConvertible() == msgCompConvertible.Plain)
if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain)
function SaveAsFile(saveAs){ dump("SaveAsFile from XUL\n"); if (msgCompose.bodyConvertible() == msgCompConvertible.Plain) editorShell.saveDocument(saveAs, false, "text/plain"); else editorShell.saveDocument(saveAs, false, "text/html"); defaultSaveOperation = "file";}
>>>>>>> 1.26
function SaveAsFile(saveAs){ dump("SaveAsFile from XUL\n"); var subject = document.getElementById('msgSubject').value; GetCurrentEditor().setDocumentTitle(subject); if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain) SaveDocument(saveAs, false, "text/plain"); else SaveDocument(saveAs, false, ...
editorShell.saveDocument(saveAs, false);
editorShell.saveDocument(saveAs, false, "text/html");
function SaveAsFile(saveAs){ dump("SaveAsFile from XUL\n"); editorShell.saveDocument(saveAs, false); defaultSaveOperation = "file";}
dump("SaveAsDraft from XUL\n");
dump("SaveAsTemplate from XUL\n");
function SaveAsTemplate(){ dump("SaveAsDraft from XUL\n"); // 5 = nsMsgSaveAsTemplate // RICHIE: We should really have a way of using constants and not // hardcoded numbers for the first argument GenericSendMessage(msgCompDeliverMode.SaveAsTemplate);}
GenericSendMessage(msgCompDeliverMode.SaveAsTemplate);
GenericSendMessage(nsIMsgCompDeliverMode.SaveAsTemplate);
function SaveAsTemplate(){ dump("SaveAsTemplate from XUL\n"); GenericSendMessage(msgCompDeliverMode.SaveAsTemplate); defaultSaveOperation = "template";}
escape(aAttachment.displayName),
encodeURIComponent(aAttachment.displayName),
function saveAttachment(aAttachment){ messenger.saveAttachment(aAttachment.contentType, aAttachment.url, escape(aAttachment.displayName), aAttachment.messageUri);}
escape(this.displayName),
encodeURIComponent(this.displayName),
createNewAttachmentInfo.prototype.saveAttachment = function saveAttachment(){ messenger.saveAttachment(this.contentType, this.url, escape(this.displayName), this.uri);}
messenger.saveAttachment(url, displayName, messageUri);
messenger.saveAttachment(contentType, url, displayName, messageUri);
function saveAttachment(contentType, url, displayName, messageUri){ messenger.saveAttachment(url, displayName, messageUri);}
outputStream.init(LocalFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, 0664);
outputStream.init(LocalFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, 0664, 0);
function saveDataToFile(aFilePath, aDataStream){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream; var localFile...
LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile);
var LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile);
function saveDataToFile(aFilePath, aDataStream){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream; var localFile...
var localFileInstance;
function saveDataToFile(aFilePath, aDataStream, charset){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream; var ...
var LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile); LocalFileInstance.initWithPath(aFilePath);
var localFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile); localFileInstance.initWithPath(aFilePath);
function saveDataToFile(aFilePath, aDataStream, charset){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream; var ...
outputStream.init(LocalFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, 0664, 0);
outputStream.init(localFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, 0664, 0);
function saveDataToFile(aFilePath, aDataStream, charset){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream; var ...
var startTime = gStartTime; var endTime = gEndTime;
var startTime = gStartTime.getInTimezone(gStartTimezone); var endTime = gEndTime.getInTimezone(gEndTimezone);
function saveDateTime(item) { var kDefaultTimezone = calendarDefaultTimezone(); if (isEvent(item)) { var startTime = gStartTime; var endTime = gEndTime; var isAllDay = getElementValue("event-all-day", "checked"); if (isAllDay) { startTime = startTime.clone(); endTime = endTime.clone(); star...
var startTime = gStartTime; var endTime = gEndTime;
var startTime = gStartTime ? gStartTime.getInTimezone(gStartTimezone) : null; var endTime = gEndTime ? gEndTime.getInTimezone(gEndTimezone) : null;
function saveDateTime(item) { var kDefaultTimezone = calendarDefaultTimezone(); if (isEvent(item)) { var startTime = gStartTime; var endTime = gEndTime; var isAllDay = getElementValue("event-all-day", "checked"); if (isAllDay) { startTime = startTime.clone(); endTime = endTime.clone(); star...
if (ndays == "") ndays = 1;
function saveDialog(){ // This works, but if we ever support more complex recurrence, // e.g. recurrence for Martians, then we're going to want to // not clone and just recreate the recurrenceInfo each time. // The reason is that the order of items (rules/dates/datesets) // matters, so we can't always ju...
setItemProperty(item, "URL", getElementValue("item-url")); setItemProperty(item, "DESCRIPTION", getElementValue("item-description"));
function saveDialog(item){ setItemProperty(item, "title", getElementValue("item-title")); setItemProperty(item, "LOCATION", getElementValue("item-location")); setItemProperty(item, "URL", getElementValue("item-url")); setItemProperty(item, "DESCRIPTION", getElementValue("item-description"))...
setItemProperty(item, "isCompleted", getElementValue("todo-completed", "checked")); } item.removeAllAttendees(); var attendees = getElementValue("item-attendees"); if (attendees != "") { for each (var addr in attendees.split(",")) { if (addr != "") { var attendee = createAttendee(); attendee.id = "mailto:" + addr; it...
function saveDialog(item){ setItemProperty(item, "title", getElementValue("item-title")); setItemProperty(item, "LOCATION", getElementValue("item-location")); setItemProperty(item, "URL", getElementValue("item-url")); setItemProperty(item, "DESCRIPTION", getElementValue("item-description"))...
alarmTime = item.startDate.clone();
if (isEvent(item)) alarmTime = item.startDate.clone(); else alarmTime = item.entryDate.clone();
function saveDialog(item){ setItemProperty(item, "title", getElementValue("item-title")); setItemProperty(item, "LOCATION", getElementValue("item-location")); setItemProperty(item, "URL", getElementValue("item-url")); setItemProperty(item, "DESCRIPTION", getElementValue("item-description"))...
alarmTime = item.endDate.clone();
if (isEvent(item)) alarmTime = item.endDate.clone(); else alarmTime = item.dueDate.clone();
function saveDialog(item){ setItemProperty(item, "title", getElementValue("item-title")); setItemProperty(item, "LOCATION", getElementValue("item-location")); setItemProperty(item, "URL", getElementValue("item-url")); setItemProperty(item, "DESCRIPTION", getElementValue("item-description"))...
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var ioService = GetIOService();
function SaveDocument(aSaveAs, aSaveCopy, aMimeType){ if (!aMimeType || aMimeType == "" || !window.editorShell) throw NS_ERROR_NOT_INITIALIZED; var editorDoc = window.editorShell.editorDocument; if (!editorDoc) throw NS_ERROR_NOT_INITIALIZED; // if we don't have the right editor type bail (we handle text and ...
if (aDocument) saveInternal(aDocument.location.href, aDocument, false, aSkipPrompt); else saveInternal(content.location.href, null, false, aSkipPrompt);
if (!aDocument) throw "Must have a document when calling saveDocument"; var contentDisposition = null; try { contentDisposition = aDocument.defaultView .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } cat...
function saveDocument(aDocument, aSkipPrompt){ // In both cases here, we want to use cached data because the // document is currently visible. if (aDocument) saveInternal(aDocument.location.href, aDocument, false, aSkipPrompt); else saveInternal(content.location.href, null, false, aSkipPrompt);}
var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;
calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;
function saveEventsToFile( calendarEventArray ){ if( !calendarEventArray) var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; if (calendarEventArray.length == 0) { alert("No events selected to save"); return; } // No show the 'Save As' dialog and ask for a filename to save t...
fp.defaultString = "Mozilla Calendar events";
if(calendarEventArray.length == 1 && calendarEventArray[0].title) fp.defaultString = calendarEventArray[0].title; else fp.defaultString = "Mozilla Calendar events";
function saveEventsToFile( calendarEventArray ){ if( !calendarEventArray) var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; if (calendarEventArray.length == 0) { alert("No events selected to save"); return; } // No show the 'Save As' dialog and ask for a filename to save t...
fp.appendFilter( "Calendar Files", "*.ics" ); fp.appendFilter( "Rich Text Format (RTF)", "*.rtf" );
fp.appendFilter( filterCalendar, "*" + extensionCalendar ); fp.appendFilter( filterRtf, "*" + extensionRtf );
function saveEventsToFile( calendarEventArray ){ if( !calendarEventArray) var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; if (calendarEventArray.length == 0) { alert("No events selected to save"); return; } // No show the 'Save As' dialog and ask for a filename to save t...
fp.appendFilter( filterCsv, "*" + extensionCsv ); fp.appendFilter( filterXcs, "*" + extensionXcs ); fp.appendFilter( filterRdf, "*" + extensionRdf );
function saveEventsToFile( calendarEventArray ){ if( !calendarEventArray) var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; if (calendarEventArray.length == 0) { alert("No events selected to save"); return; } // No show the 'Save As' dialog and ask for a filename to save t...
saveDataToFile(fp.file.path, aDataStream);
var filePath = fp.file.path; if(filePath.indexOf(".") == -1 ) filePath += extension; saveDataToFile(filePath, aDataStream);
function saveEventsToFile( calendarEventArray ){ if( !calendarEventArray) var calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; if (calendarEventArray.length == 0) { alert("No events selected to save"); return; } // No show the 'Save As' dialog and ask for a filename to save t...
fp.appendFilter(type.description, "*."+type.extension);
fp.appendFilter(type.description, type.extensionFilter);
function saveEventsToFile(calendarEventArray){ if (!calendarEventArray) return; if (!calendarEventArray.length) { alert(getStringBundle().GetStringFromName("noEventsToSave")); return; } // Show the 'Save As' dialog and ask for a filename to save to const nsIFilePicker = Components.interfaces...
filePath += "."+exporter.getFileTypes({})[0].extension;
filePath += "."+exporter.getFileTypes({})[0].defaultExtension;
function saveEventsToFile(calendarEventArray){ if (!calendarEventArray) return; if (!calendarEventArray.length) { alert(getStringBundle().GetStringFromName("noEventsToSave")); return; } // Show the 'Save As' dialog and ask for a filename to save to const nsIFilePicker = Components.interfaces...
dump("folder target = " + gActionTargetElement.selectedItem + "\n");
function saveFilter() { var isNewFilter; var filterName= gFilterNameElement.value; if (!filterName || filterName == "") { var str = Bundle.GetStringFromName("mustEnterName"); window.alert(str); gFilterNameElement.focus(); return false; } var targetUri; var action = gActionE...
if (gCopyToFolderCheckbox.checked) { if (gActionTargetCopyElement) targetUri = gActionTargetCopyElement.getAttribute("uri"); if (!targetUri || targetUri == "") { str = gFilterBundle.getString("mustSelectFolder"); window.alert(str); return false; } filterAction = gFilter.createAction(); filterAction.type = nsMsgFilterA...
function saveFilter() { var isNewFilter; var filterAction; var targetUri; var filterName= gFilterNameElement.value; if (!filterName || filterName == "") { if (gPromptService) gPromptService.alert(window, null, gFilterBundle.getString("mustEnterName")); gFilterNameElement.foc...
gFilter = gFilterList.createFilter(gFilterNameElement.value);
gFilter = gFilterList.createFilter(filterName);
function saveFilter() { var isNewFilter; var filterAction; var targetUri; var filterName= gFilterNameElement.value; if (!filterName || filterName == "") { if (gPromptService) gPromptService.alert(window, null, gFilterBundle.getString("mustEnterName")); gFilterNameElement.foc...
gFilter.filterName = gFilterNameElement.value;
gFilter.filterName = filterName;
function saveFilter() { var isNewFilter; var filterAction; var targetUri; var filterName= gFilterNameElement.value; if (!filterName || filterName == "") { if (gPromptService) gPromptService.alert(window, null, gFilterBundle.getString("mustEnterName")); gFilterNameElement.foc...
var searchTitle = "Find: " + gMatchName + " " + gMethodName + " '" + gTextName + "' in " gDatasourceName;
var searchTitle = "Find: " + gMatchName + " " + gMethodName + " '" + gTextName + "' in " + gDatasourceName;
function saveFind(){ var resultsTree = document.getElementById("findresultstree"); var searchURL = resultsTree.getAttribute("ref"); if (!searchURL) return false; var searchTitle = "Find: " + gMatchName + " " + gMethodName + " '" + gTextName + "' in " gDatasourceName; var bmks = Components.classes["@mozilla.org...
for (var i = 0; i < items.length; ++i) {
for (i = 0; i < items.length; ++i) {
function saveFontPrefs(){ var dataObject = top.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-fonts.xul"]; var pref = top.hPrefWindow.pref; for (var language in dataObject.languageData) { for (var type in dataObject.languageData[language].types) { var fontPrefString = "font.name." +...
this.savePage( this.target.ownerDocument.location.href, true );
saveDocument( this.target.ownerDocument );
saveFrame : function () { this.savePage( this.target.ownerDocument.location.href, true ); },
this.savePage( this.imageURL() );
this.savePage( this.imageURL );
saveImage : function () { this.savePage( this.imageURL() ); },
getReferrer(document) );
getReferrer(this.target.ownerDocument) );
saveImage : function () { // Note: getReferrer wants our chrome document, not the actual // target document; it handles getting that itself. saveImageURL( this.imageURL, null, "SaveImageTitle", false, getReferrer(document) ); },
this.savePage( this.imageURL, true );
saveURL( this.imageURL, null, "SaveImageTitle" );
saveImage : function () { this.savePage( this.imageURL, true ); },
saveURL( this.imageURL, null, "SaveImageTitle", false );
saveImageURL( this.imageURL, null, "SaveImageTitle", false, false, getReferrer(document) );
saveImage : function () { saveURL( this.imageURL, null, "SaveImageTitle", false ); },
url: aURL,
function saveInternal(aURL, aDocument, aFileName, aFilePickerTitleKey, aShouldBypassCache){ var data = { fileName: aFileName, filePickerTitle: aFilePickerTitleKey, document: aDocument, bypassCache: aShouldBypassCache, window: window }; var sniffer = new nsHea...
if (!originalEvent.parent || (originalEvent.parent == calendar))
if (!originalEvent.parent || (originalEvent.parent.uri.equals(calendar.uri)))
function saveItem( calendarEvent, calendar, functionToRun, originalEvent ){ dump(functionToRun + " " + calendarEvent.title + "\n"); if (functionToRun == 'addEvent') calendar.addItem(calendarEvent, null); else if (functionToRun == 'modifyEvent') { if (!originalEvent.parent || (originalEvent.parent...
originalEvent.parent.removeItem(calendarEvent, null);
originalEvent.parent.deleteItem(calendarEvent, null);
function saveItem( calendarEvent, calendar, functionToRun, originalEvent ){ dump(functionToRun + " " + calendarEvent.title + "\n"); if (functionToRun == 'addEvent') calendar.addItem(calendarEvent, null); else if (functionToRun == 'modifyEvent') { if (!originalEvent.parent || (originalEvent.parent...
getReferrer(document) );
getReferrer(this.target.ownerDocument) );
saveLink : function () { saveURL( this.linkURL(), this.linkText(), null, true, getReferrer(document) ); },
this.savePage( this.linkURL(), false );
saveURL( this.linkURL(), this.linkText() );
saveLink : function () { this.savePage( this.linkURL(), false ); },
var outliner = document.getElementById("imageoutliner"); var item = getSelectedItem(outliner);
var tree = document.getElementById("imagetree"); var item = getSelectedItem(tree);
function saveMedia(){ var outliner = document.getElementById("imageoutliner"); var item = getSelectedItem(outliner); var url = getAbsoluteURL(getSource(item), item); if (url) { saveURL(url, null, 'SaveImageTitle', false ); }}
top.globals.document.setupPlugin.FlushCache();
function saveNewOrOldFile(){ //alert("in SavenewOrOldFile"); //first checkData var fileName = checkData(); if (fileName == false) return fileName; //flush data from currenly open tab into globals if(parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData) { parent.tabs.tabbody.saveData(); } iasDirty(false)...
if ( window.appCore ) { postData = window.appCore.postData;
try { var sessionHistory = getWebNavigation().sessionHistory; var entry = sessionHistory.getEntryAtIndex(sessionHistory.index, false); postData = entry.postData; } catch(e) {
savePage : function ( url, doNotValidate ) { var postData = null; // No post data, usually. // Default is to save current page. if ( !url ) { url = window._content.location.href; // Post data comes from appcore. if ( window.appCore ) { postData = ...
function savePage( url ) { if ( !url ) { url = window.content.location.href; } var xfer = Components .classes[ "component: .getService( Components.interfaces.nsIStreamTransfer ); try { xfer.SelectFileAndTransferLocationSpec( url, window ); } catch( exception ) { dump( "SelectFileAndTransferLocationSpec failed, r...
function savePage( url ) { url = url ? url : window.content.location.href; var xfer = getService("component: try { xfer.SelectFileAndTransferLocationSpec( url, window ); } catch( exception ) { } }
function savePage( url ) { // Default is to save current page. if ( !url ) { url = window.content.location.href; } // Use stream xfer component to prompt for destination and save. var xfer = Components .classes[ "component://netscape/appshell/component/x...
if (top.frames["contentFrame"].onSave)
if ("onSave" in top.frames["contentFrame"])
function savePage(serverId) { if (!serverId) return; // tell the page that it's about to save if (top.frames["contentFrame"].onSave) top.frames["contentFrame"].onSave(); var accountValues = getValueArrayFor(serverId); var pageElements = getPageFormElements(); if (pageElements == null) return; // store the v...
var type = vals[0]; var slot = vals[1]; setAccountValue(accountValues, type, slot, getFormElementValue(pageElements[i]));
if (vals.length >= 2) { var type = vals[0]; var slot = vals[1]; setAccountValue(accountValues, type, slot, getFormElementValue(pageElements[i])); }
function savePage(serverId) { if (!serverId) return; // tell the page that it's about to save if (top.frames["contentFrame"].onSave) top.frames["contentFrame"].onSave(); var accountValues = getValueArrayFor(serverId); var pageElements = getPageFormElements(); if (pageElements == null) return; // store the v...
return true;
return;
function savePage(serverId) { if (!serverId) return; // tell the page that it's about to save if ("onSave" in top.frames["contentFrame"]) top.frames["contentFrame"].onSave(); var accountValues = getValueArrayFor(serverId); if (!accountValues) return true; var pageElements = getPageFormElements(); if (pa...
if (pageElements == null) return;
if (!pageElements) return;
function savePage(serverId) { if (!serverId) return; // tell the page that it's about to save if ("onSave" in top.frames["contentFrame"]) top.frames["contentFrame"].onSave(); var accountValues = getValueArrayFor(serverId); if (!accountValues) return true; var pageElements = getPageFormElements(); if (pa...
postData = window.appCore.postData;
var sessionHistory = getWebNavigation().sessionHistory; var entry = sessionHistory.getEntryAtIndex(sessionHistory.index, false); postData = entry.postData;
function savePage(url) { var postData = null; // No post data, usually. // Default is to save current page. if ( !url ) url = window._content.location.href; // Post data comes from appcore. try { postData = window.appCore.postData; } catch(e) { } // Use stream xfer component to pro...
if (dataObject) this.dataManager.setPageData(aPageTag, dataObject);
if (dataObject) this.dataManager.pageData[aPageTag].userData = dataObject;
savePageData: function (aPageTag, aWindow) { gCurrentWindow = aWindow || this.contentArea; if (!(aPageTag in this.dataManager.pageData)) return; if ("GetFields" in gCurrentWindow) { // save page data based on user supplied function in content area var dataObject = gCurrentWindow.GetFiel...
if (!(aPageTag in this.dataManager.pageData) ) this.dataManager.pageData[aPageTag] = new Object(); this.dataManager.pageData[aPageTag][elementID] = new Object();
savePageData: function (aPageTag, aWindow) { gCurrentWindow = aWindow || this.contentArea; if (!(aPageTag in this.dataManager.pageData)) return; if ("GetFields" in gCurrentWindow) { // save page data based on user supplied function in content area var dataObject = gCurrentWindow.GetFiel...
var dataObject = gCurrentWindow.GetFields();
var dataObject = this.dataManager.getPageData(aPageTag); dataObject = this.contentArea.GetFields(dataObject);
savePageData: function (aPageTag, aWindow) { gCurrentWindow = aWindow || this.contentArea; if (!(aPageTag in this.dataManager.pageData)) return; if ("GetFields" in gCurrentWindow) { // save page data based on user supplied function in content area var dataObject = gCurrentWindow.GetFiel...
elements[elements.length] = this.contentArea.document.getElementById( this.contentArea._elementIDs[i] );
var elt = this.contentArea.document.getElementById( this.contentArea._elementIDs[i] ); if (elt) { elements[elements.length] = elt; } else { dump("*** FIX ME: '_elementIDs' in '" + this.contentArea.location.href.split('/').pop() + "' contains a reference to a non-existent element ID '" + this.contentArea._elementIDs[i]...
savePageData: function ( aPageTag ) { if( this.contentArea.GetFields ) { // save page data based on user supplied function in content area var dataObject = this.contentArea.GetFields(); this.dataManager.setPageData( aPageTag, dataObject ); ...
var dataObject = this.dataManager.getPageData(aPageTag); dataObject = this.contentArea.GetFields(dataObject);
var dataObject = gCurrentWindow.GetFields();
savePageData: function (aPageTag, aWindow) { gCurrentWindow = aWindow || this.contentArea; if (!(aPageTag in this.dataManager.pageData)) return; if ("GetFields" in gCurrentWindow) { // save page data based on user supplied function in content area var dataObject = this.dataManager.getPa...
lastSearchText = unescape(target);
lastSearchText = decodeURI(target);
function saveSearch(){ var ds = document.getElementById("resultList").database; if (!ds) return; var lastSearchURI = ""; var lastSearchText = ""; var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); // look for last search URI var source = rdf.GetResource("NC:LastSearchRoot", true); ...
target = target.replace(/+/g, " ");
target = target.replace(/\+/g, " ");
function saveSearch(){ var ds = document.getElementById("resultList").database; if (!ds) return; var lastSearchURI = ""; var lastSearchText = ""; var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); // look for last search URI var source = rdf.GetResource("NC:LastSearchRoot", true); ...
controls["imap.dualUseFolders"].value = imapServer.dualUseFolders; controls["imap.usingSubscription"].value = imapServer.usingSubscription;
document.getElementById("imap.dualUseFolders").value = imapServer.dualUseFolders; document.getElementById("imap.usingSubscription").value = imapServer.usingSubscription;
function saveServerLocally(imapServer){ var controls = document.controls; // boolean prefs, JS does the conversion for us controls["imap.dualUseFolders"].value = imapServer.dualUseFolders; controls["imap.usingSubscription"].value = imapServer.usingSubscription; // string prefs controls["imap.personalN...
controls["imap.personalNamespace"].value = imapServer.personalNamespace; controls["imap.publicNamespace"].value = imapServer.publicNamespace; controls["imap.serverDirectory"].value = imapServer.serverDirectory; controls["imap.otherUsersNamespace"].value = imapServer.otherUsersNamespace;
document.getElementById("imap.personalNamespace").value = imapServer.personalNamespace; document.getElementById("imap.publicNamespace").value = imapServer.publicNamespace; document.getElementById("imap.serverDirectory").value = imapServer.serverDirectory; document.getElementById("imap.otherUsersNamespace").value = imap...
function saveServerLocally(imapServer){ var controls = document.controls; // boolean prefs, JS does the conversion for us controls["imap.dualUseFolders"].value = imapServer.dualUseFolders; controls["imap.usingSubscription"].value = imapServer.usingSubscription; // string prefs controls["imap.personalN...
if ( dirTree && resultsTree ) { var ref = resultsTree.getAttribute('ref'); var folder = document.getElementById(ref); if ( folder ) { folder.setAttribute('sortColumn', column); folder.setAttribute('sortKey', key); folder.setAttribute('sortDirection', direction); } }
if (dirTree && resultsTree) { var ref = resultsTree.getAttribute("ref"); var folder = document.getElementById(ref); if (folder) { folder.setAttribute("sortColumn", column); folder.setAttribute("sortKey", key); folder.setAttribute("sortDirection", direction); } }
function SaveSortSetting(column, key, direction){ if ( dirTree && resultsTree ) { var ref = resultsTree.getAttribute('ref'); var folder = document.getElementById(ref); if ( folder ) { folder.setAttribute('sortColumn', column); folder.setAttribute('sortKey', key); folder.setAttribute('sortDirection', directio...
formElement = document.getElementById(fieldName);
var formElement = document.getElementById(fieldName);
function SaveUriFromPicker(fieldName, pickerID){ var picker = document.getElementById(pickerID); var uri = picker.getAttribute("uri"); //dump("uri = " + uri + "\n"); formElement = document.getElementById(fieldName); //dump("old value = " + formElement.value + "\n"); formElement.setAttribute("value",uri); //dump("new v...
saveInternal(aURL, null, aFileName, aFilePickerTitleKey, aShouldBypassCache, aSkipPrompt, aReferrer);
internalSave(aURL, null, aFileName, null, null, aShouldBypassCache, aFilePickerTitleKey, null, aReferrer, aSkipPrompt);
function saveURL(aURL, aFileName, aFilePickerTitleKey, aShouldBypassCache, aSkipPrompt, aReferrer){ saveInternal(aURL, null, aFileName, aFilePickerTitleKey, aShouldBypassCache, aSkipPrompt, aReferrer);}
getViewName(CreateView, gSearchInput.value);
openNewVirtualFolderDialogWithArgs(gSearchInput.value, gSearchSession.searchTerms);
function saveViewAsVirtualFolder(){// prompt for view name - create virtual folder in ok callback. getViewName(CreateView, gSearchInput.value);}
console.scriptsView.outliner.invalidate();
function scr_guessnames (sourceText){ for (var i = 0; i < this.childData.length; ++i) { this.childData[i].guessFunctionName(sourceText); }}
if (col.id != "scripts:col-0")
if (typeof col == "object") col = col.id; if (col != "scripts:col-0")
function scv_cellprops (index, col, properties){ if (col.id != "scripts:col-0") return null; var row = this.childData.locateChildByVisualRow(index); if (row) { if ("getProperties" in row) return row.getProperties (properties); if (row.property) return propertie...
switch (col.value.id)
if (typeof col.value == "object") col.value = col.value.id; switch (col.value)
function scv_click (e){ if (e.originalTarget.localName == "treecol") { /* resort by column */ var rowIndex = new Object(); var col = new Object(); var childElt = new Object(); var treeBox = console.views.scripts.tree; treeBox.getCellAt(e.clientX, e.clientY, rowInd...
if (row.fileType && colID == "script-name")
if ("fileType" in row && colID == "script-name")
function scv_getcprops (index, colID, properties){ var row; if ((row = this.childData.locateChildByVisualRow (index, 0))) { if (row.fileType && colID == "script-name") properties.AppendElement (row.fileType); if (row.isGuessedName && colID == "script-name") properties.Append...
if (row.isGuessedName && colID == "script-name")
if ("isGuessedName" in row && colID == "script-name")
function scv_getcprops (index, colID, properties){ var row; if ((row = this.childData.locateChildByVisualRow (index, 0))) { if (row.fileType && colID == "script-name") properties.AppendElement (row.fileType); if (row.isGuessedName && colID == "script-name") properties.Append...
gQSViewIsDirty = str != gSearchInput.value;
if (str != gSearchInput.value) gQSViewIsDirty = true;
function Search(str){ GetSearchInput(); gQSViewIsDirty = str != gSearchInput.value; gSearchInput.value = str; //on input does not get fired for some reason onSearchInput(true);}
gQSViewIsDirty = str != gSearchInput.value;
function Search(str){ GetSearchInput(); gSearchInput.value = str; //on input does not get fired for some reason onSearchInput(true);}
GetSearchInput();
function Search(str){ viewDebug("in Search str = " + str + "gSearchInput.showingSearchCriteria = " + gSearchInput.showingSearchCriteria + "\n"); GetSearchInput(); if (str != gSearchInput.value) { gQSViewIsDirty = true; viewDebug("in Search(), setting gQSViewIsDirty true\n"); } gSearchInput.value = str; //...
if (searchURL != undefined) {
if (searchURL != no_result) {
function Search(url, input, searchLong) { var inputstring = new String(input); var word = inputstring.split(/[\s]+/); // Check for empty input if ( word.length == 1 && word[0] == "" ) return; // Check for potential Bugzilla-busting intensive queries if ((searchLong!=false) && word.length ...
"find:datasource=history&match=Name&method=contains&text=" + escape(aInput));
"find:datasource=history&match=Name&method=contains&text=" + encodeURIComponent(aInput));
function searchHistory(aInput){ if (!aInput) GroupBy(gHistoryGrouping); else gHistoryTree.setAttribute("ref", "find:datasource=history&match=Name&method=contains&text=" + escape(aInput)); }