rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var box = document.getElementById("alarmlist"); for each (kid in box.childNodes) { item = kid.item.parentItem.clone(); item.alarmLastAck = now... | function onDismissAll(){ return true;} | |
if (!kid.item) { | if (!kid || !kid.item) { | function onDismissAll(){ var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var box = document.getElementById("alarmlist"); for each (kid in box.childNodes) { if (!kid... |
var item = kid.item.parentItem.clone(); item.alarmLastAck = now; item.calendar.modifyItem(item, kid.item, null); | onDismissWidget(kid); | function onDismissAll(){ var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var box = document.getElementById("alarmlist"); for each (kid in box.childNodes) { if (!kid... |
gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(""); gStatusBar.setAttribute("mode","normal"); | gStatusFeedback._stopMeteors(); | OnDonePopulating: function() { gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(""); gStatusBar.setAttribute("mode","normal"); // only re-root the tree, if it is null. // otherwise, we are in here because we are populating // a part of the tree var refValue = gSubscrib... |
gStatusFeedback.showStatusString(Bundle.GetStringFromName("doneString")); | gStatusFeedback.showStatusString(gSubscribeBundle.getString("doneString")); | OnDonePopulating: function() { gStatusFeedback.showProgress(100); gStatusFeedback.showStatusString(Bundle.GetStringFromName("doneString")); gStatusBar.setAttribute("mode","normal"); // only re-root the tree, if it is null. // otherwise, we are in here because we are populating // a part of the ... |
gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex; | function onDownloadCancel(aEvent){ gDownloadManager.cancelDownload(aEvent.target.id); setRDFProperty(aEvent.target.id, "DownloadAnimated", "false"); // XXXben - // If we got here because we resumed the download, we weren't using a temp file // because we used saveURL instead. (this is because the proper download ... | |
var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); | var f = getLocalFileFromNativePathOrUrl(aEvent.target.id); | function onDownloadCancel(aEvent){ gDownloadManager.cancelDownload(aEvent.target.id); setRDFProperty(aEvent.target.id, "DownloadAnimated", "false"); // XXXben - // If we got here because we resumed the download, we weren't using a temp file // because we used saveURL instead. (this is because the proper download ... |
provider.doWriteICS(); | aCallback.call(savedthis); | onDownloadComplete: function(downloader, request, ctxt, status, result) { if (doInitialBackup) copyToOverwriting(result, backupDir, makeName('initial')); if (doDailyBackup) copyToOverwriting(result, backupDir, dailyBackupFileName); ... |
result.copyTo(backupDir, makeName('day',1)); if (doInitialBackup) result.copyTo(backupDir, makeName('initial','')); | result.copyTo(backupDir, dailyBackupFileName); | onDownloadComplete: function(downloader, request, ctxt, status, result) { if (doDailyBackup) result.copyTo(backupDir, makeName('day',1)); if (doInitialBackup) result.copyTo(backupDir, makeName('initial','')); provider.doWrite... |
if (feed.downloadCallback) feed.downloadCallback(feed); | Feed.onDownloaded = function(event) { var request = event.target; var url = request.channel.originalURI.spec; debug(url + " downloaded"); var feed = gFzFeedCache[url]; if (!feed) throw("error after downloading " + url + ": couldn't retrieve feed from request"); feed.parse();} | |
if (feed.downloadCallback) feed.downloadCallback(nsnull); } | Feed.onDownloadError = function(event) { // XXX add error message if available and notify the user? var request = event.target; var url = request.channel.originalURI.spec; var feed = gFzFeedCache[url]; if (feed) debug(feed.title + " download failed"); throw("error downloading feed " + url);} | |
var message = strings.getFormattedString("fileDoesNotExistOpenError", [name, appName]); | var message = strings.getFormattedString("fileDoesNotExistError", [name, appName]); | function onDownloadOpen(aEvent){ var download = aEvent.target; if (download.localName == "download") { if (download.openable) { var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); if (f.exists()) { if (f... |
var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); | var f = getLocalFileFromNativePathOrUrl(aEvent.target.id); | function onDownloadOpen(aEvent){ if (aEvent.type == "dblclick" && aEvent.button != 0) return; var download = aEvent.target; if (download.localName == "download") { if (download.openable) { var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.in... |
var selectedIndex = gDownloadsView.selectedIndex; | function onDownloadPause(aEvent){ var selectedIndex = gDownloadsView.selectedIndex; var uri = aEvent.target.id; gDownloadManager.pauseDownload(uri); setRDFProperty(uri, "DownloadStatus", aEvent.target.getAttribute("status-internal")); setRDFProperty(uri, "ProgressPercent", aEvent.target.getAttribute("progress")); ... | |
gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex; gDownloadsView.selectedItem.focus(); | function onDownloadPause(aEvent){ var selectedIndex = gDownloadsView.selectedIndex; var uri = aEvent.target.id; gDownloadManager.pauseDownload(uri); setRDFProperty(uri, "DownloadStatus", aEvent.target.getAttribute("status-internal")); setRDFProperty(uri, "ProgressPercent", aEvent.target.getAttribute("progress")); ... | |
gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex; | function onDownloadPause(aEvent){ var uri = aEvent.target.id; gDownloadManager.pauseDownload(uri); setRDFProperty(uri, "DownloadStatus", aEvent.target.getAttribute("status-internal")); setRDFProperty(uri, "ProgressPercent", aEvent.target.getAttribute("progress"));} | |
gDownloadsView.clearSelection(); if (selectedIndex >= gDownloadsView.getRowCount()) gDownloadsView.selectedIndex = selectedIndex - 1; else gDownloadsView.selectedIndex = selectedIndex; gDownloadsView.focus(); | function onDownloadRemove(aEvent){ if (aEvent.target.removable) { var selectedIndex = gDownloadsView.selectedIndex; gDownloadManager.removeDownload(aEvent.target.id); gDownloadViewController.onCommandUpdate(); }} | |
var selectedIndex = gDownloadsView.selectedIndex; | function onDownloadResume(aEvent){ var selectedIndex = gDownloadsView.selectedIndex; gDownloadManager.resumeDownload(aEvent.target.id); // now reset the richlistbox gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCou... | |
gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex gDownloadsView.selectedItem.focus(); | function onDownloadResume(aEvent){ var selectedIndex = gDownloadsView.selectedIndex; gDownloadManager.resumeDownload(aEvent.target.id); // now reset the richlistbox gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCou... | |
gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex; | function onDownloadResume(aEvent){ gDownloadManager.resumeDownload(aEvent.target.id);} | |
gDownloadsView.selectedIndex = 0; | function onDownloadRetry(aEvent){ var download = aEvent.target; if (download.localName == "download") { var src = getRDFProperty(download.id, "URL"); var f = getLocalFileFromNativePathOrUrl(aEvent.target.id); saveURL(src, f, null, true, true); } gDownloadViewController.onCommandUpdate();} | |
var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); | var f = getLocalFileFromNativePathOrUrl(aEvent.target.id); | function onDownloadRetry(aEvent){ var download = aEvent.target; if (download.localName == "download") { var src = getRDFProperty(download.id, "URL"); var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); saveURL(src, f... |
#ifdef XP_WIN var message = strings.getFormattedString("fileDoesNotExistShowErrorWin", [name, appName]); #else #ifdef XP_MACOSX var message = strings.getFormattedString("fileDoesNotExistShowErrorMac", [name, appName]); #else var message = strings.getFormattedString("fileDoesNotExistShowErrorUnix", [name, appName]); #en... | var message = strings.getFormattedString("fileDoesNotExistError", [name, appName]); | function onDownloadShow(aEvent){ var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); if (f.exists()) {#ifdef XP_UNIX#ifndef XP_MACOSX // on unix, open a browser window rooted at the parent var parent = f.parent; if (pa... |
var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); | var f = getLocalFileFromNativePathOrUrl(aEvent.target.id); | function onDownloadShow(aEvent){ var f = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); f.initWithPath(aEvent.target.id); if (f.exists()) { try { f.reveal(); } catch (ex) { // if reveal failed for some reason (eg on unix it's not currently // ... |
var dir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); dir.initWithPath(folderName.getAttribute("path")); | var dir = getLocalFileFromNativePathOrUrl(folderName.getAttribute("path")); | function onDownloadShowFolder(){ var folderName = document.getElementById("saveToFolder"); var dir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); dir.initWithPath(folderName.getAttribute("path")); if (!dir.exists()) dir.create(Components... |
if (gDownloadsView.selected) fireEventForElement(gDownloadsView.selected, "properties"); | if (gDownloadsView.selectedItem) fireEventForElement(gDownloadsView.selectedItem, "properties"); | function onDownloadShowInfo(){ if (gDownloadsView.selected) fireEventForElement(gDownloadsView.selected, "properties");} |
if (children[i].id == "innermostBox") { | if (children[i].id == "NC:PersonalToolbarFolder") { | onDragCloseMenu: function (aNode) { var children = aNode.childNodes; for (var i = 0; i < children.length; i++) { if (children[i].id == "innermostBox") { this.onDragCloseMenu(children[i]); } else if (this.isContainer(children[i]) && children[i].getAttribute("open") == "true") { this... |
if (this.mCurrentDragOverTarget.parentNode.id == "innermostBox") | if (this.mCurrentDragOverTarget.parentNode.id == "NC:PersonalToolbarFolder") | onDragCloseTarget: function () { // if the mouse is not over a menu, then close everything. if (!this.mCurrentDragOverTarget) { this.onDragCloseMenu(document.getElementById("PersonalToolbar")); return } // The bookmark button is not a sibling of the folders in the PT if (this.mCurrentDragOve... |
var string = XPCU.QI(data.value, "nsISupportsWString"); | var string = XPCU.QI(data.value, "nsISupportsString"); | onDragDrop: function(aEvent) { this.markColumnInsert(null); var dragService = XPCU.getService("@mozilla.org/widget/dragservice;1", "nsIDragService"); var dragSession = dragService.getCurrentSession(); if (!dragSession.isDataFlavorSupported("TreeBuilder/column-add")) return false; var trans = XPCU... |
var string = XPCU.QI(data, "nsISupportsWString"); | var string = XPCU.QI(data, "nsISupportsString"); | onDragDropIn: function(aEvent) { var data = DNDUtils.getData("TreeBuilder/column-remove", 0); var string = XPCU.QI(data, "nsISupportsWString"); this.addItem(string.data); }, |
#endif | onDragEnter: function (aEvent, aDragSession) { this._ensureServices(); var count = aDragSession.numDropItems; for (var i = 0; i < count; ++i) { var fileData = this._getDataFromDragSession(aDragSession, i); if (!fileData) { this._canDrop = false; return; } } this._canDrop =... | |
aEvent.target.removeAttribute("dragover"); | onDragExit: function (aEvent, aDragSession) { var statusTextFld = document.getElementById("statusbar-display"); statusTextFld.label = ""; }, | |
case -1: | case this.DROP_BEFORE: | onDragOver: function (aEvent, aFlavour, aDragSession) { var dropPosition = this.determineDropPosition(aEvent); if (this.mCurrentDragOverButton != aEvent.target || (this.mCurrentDragOverButton == aEvent.target && this.mCurrentDragPosition != dropPosition)) { if (this.mCu... |
case 1: | case this.DROP_AFTER: | onDragOver: function (aEvent, aFlavour, aDragSession) { var dropPosition = this.determineDropPosition(aEvent); if (this.mCurrentDragOverButton != aEvent.target || (this.mCurrentDragOverButton == aEvent.target && this.mCurrentDragPosition != dropPosition)) { if (this.mCu... |
case 0: | case this.DROP_ON: | onDragOver: function (aEvent, aFlavour, aDragSession) { var dropPosition = this.determineDropPosition(aEvent); if (this.mCurrentDragOverButton != aEvent.target || (this.mCurrentDragOverButton == aEvent.target && this.mCurrentDragPosition != dropPosition)) { if (this.mCu... |
statusTextFld.label = gNavigatorBundle.getString("droponhomebutton"); aDragSession.dragAction = Components.interfaces.nsIDragService.DRAGDROP_ACTION_LINK; | statusTextFld.label = gNavigatorBundle.getString("droponnewwindowbutton"); aEvent.target.setAttribute("dragover", "true"); return true; | onDragOver: function (aEvent, aFlavour, aDragSession) { var statusTextFld = document.getElementById("statusbar-display"); statusTextFld.label = gNavigatorBundle.getString("droponhomebutton"); aDragSession.dragAction = Components.interfaces.nsIDragService.DRAGDROP_ACTION_LINK; }, |
while (toolbar && toolbar.localName != "toolbar") | var dropTarget = aEvent.target; while (toolbar && toolbar.localName != "toolbar") { dropTarget = toolbar; | onDragOver: function (aEvent, aFlavour, aDragSession) { var toolbar = aEvent.target; while (toolbar && toolbar.localName != "toolbar") toolbar = toolbar.parentNode; var previousDragItem = gCurrentDragOverItem; // Make sure we are dragging over a customizable toolbar. if (!isCustomizableToolbar(to... |
} | onDragOver: function (aEvent, aFlavour, aDragSession) { var toolbar = aEvent.target; while (toolbar && toolbar.localName != "toolbar") toolbar = toolbar.parentNode; var previousDragItem = gCurrentDragOverItem; // Make sure we are dragging over a customizable toolbar. if (!isCustomizableToolbar(to... | |
if (aEvent.target.localName == "toolbar") { gCurrentDragOverItem = aEvent.target; | if (dropTarget.localName == "toolbar") { gCurrentDragOverItem = dropTarget; | onDragOver: function (aEvent, aFlavour, aDragSession) { var toolbar = aEvent.target; while (toolbar && toolbar.localName != "toolbar") toolbar = toolbar.parentNode; var previousDragItem = gCurrentDragOverItem; // Make sure we are dragging over a customizable toolbar. if (!isCustomizableToolbar(to... |
var dropTargetWidth = aEvent.target.boxObject.width; var dropTargetX = aEvent.target.boxObject.x; | var dropTargetWidth = dropTarget.boxObject.width; var dropTargetX = dropTarget.boxObject.x; | onDragOver: function (aEvent, aFlavour, aDragSession) { var toolbar = aEvent.target; while (toolbar && toolbar.localName != "toolbar") toolbar = toolbar.parentNode; var previousDragItem = gCurrentDragOverItem; // Make sure we are dragging over a customizable toolbar. if (!isCustomizableToolbar(to... |
gCurrentDragOverItem = aEvent.target.nextSibling; | gCurrentDragOverItem = dropTarget.nextSibling; | onDragOver: function (aEvent, aFlavour, aDragSession) { var toolbar = aEvent.target; while (toolbar && toolbar.localName != "toolbar") toolbar = toolbar.parentNode; var previousDragItem = gCurrentDragOverItem; // Make sure we are dragging over a customizable toolbar. if (!isCustomizableToolbar(to... |
gCurrentDragOverItem = aEvent.target; | gCurrentDragOverItem = dropTarget; | onDragOver: function (aEvent, aFlavour, aDragSession) { var toolbar = aEvent.target; while (toolbar && toolbar.localName != "toolbar") toolbar = toolbar.parentNode; var previousDragItem = gCurrentDragOverItem; // Make sure we are dragging over a customizable toolbar. if (!isCustomizableToolbar(to... |
var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data; | var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data.split("\n")[0]; | onDragOver: function (aEvent, aFlavor, aDragSession) { this._ensureServices(); aDragSession.canDrop = true; var count = aDragSession.numDropItems; for (var i = 0; i < count; ++i) { var xfer = Components.classes["@mozilla.org/widget/transferable;1"] .createInstance(Componen... |
flavourList["text/x-moz-url"] = { width: 2, data: urlBar.value + " " + window.title }; | flavourList["text/x-moz-url"] = { width: 2, data: urlBar.value + " " + window._content.document.title }; | onDragStart: function () { var urlBar = document.getElementById("urlbar"); var flavourList = { }; flavourList["text/unicode"] = { width: 2, data: urlBar.value }; flavourList["text/x-moz-url"] = { width: 2, data: urlBar.value + " " + window.title }; var htmlString = "<a href=\"" + urlBar.va... |
aAttachmentData.data.addDataForFlavour("text/x-moz-url", tmpurl + "\n" + attachmentDisplayName); | onDragStart: function (aEvent, aAttachmentData, aDragAction) { var target = aEvent.target; if (target.localName == "listitem") { var attachmentUrl = target.getAttribute("attachmentUrl"); var attachmentDisplayName = target.getAttribute("label"); var attachmentContentType = target.getAttribute(... | |
dump("*** title = " + title + "; uri = " + uri + "\n"); if ( aEvent.target.localName != "treecell" ) | if (aEvent.target.localName != "treecell") | onDragStart: function (aEvent) { var title = aEvent.target.getAttribute("value"); var uri = aEvent.target.parentNode.parentNode.id; dump("*** title = " + title + "; uri = " + uri + "\n"); if ( aEvent.target.localName != "treecell" ) // make sure we have something to drag return null; va... |
if ( title == "" && uri == "" ) return null; | onDragStart: function (aEvent) { var title = aEvent.target.getAttribute("value"); var uri = aEvent.target.parentNode.parentNode.id; dump("*** title = " + title + "; uri = " + uri + "\n"); var htmlString = "<A HREF='" + uri + "'>" + title + "</A>"; var flavourList = { }; flavourList["text/unicode"] ... | |
flavourList["text/x-moz-url"] = { width: 2, data: urlBar.value }; | flavourList["text/x-moz-url"] = { width: 2, data: urlBar.value + " " + "( TEMP TITLE )" }; | onDragStart: function () { var urlBar = document.getElementById("urlbar"); var flavourList = { }; flavourList["text/unicode"] = { width: 2, data: urlBar.value }; flavourList["text/x-moz-url"] = { width: 2, data: urlBar.value }; var htmlString = "<a href=\"" + urlBar.value + "\">" + urlBar.... |
var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); | var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder); var url = builder.getResourceAtIndex(currentIndex).Value; | onDragStart: function (aEvent, aXferData, aDragAction) { var currentIndex = gHistoryTree.currentIndex; if (isContainer(gHistoryTree, currentIndex)) return false; var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); var title = gHistoryTree.treeBoxObje... |
if (url) { | if (url) { getBrowser().dragDropSecurityCheck(aEvent, aDragSession, url); | onDrop: function (aEvent, aXferData, aDragSession) { var url = transferUtils.retrieveURLFromData(aXferData.data, aXferData.flavour.contentType); // The URL bar automatically handles inputs with newline characters, // so we can get away with treating text/x-moz-url flavours as text/unicode. if ... |
var elementRes = RDFUtils.getResource(aXferData.data); | var xferData = aXferData.data.split("\n"); var elementRes = RDFUtils.getResource(xferData[0]); | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... |
linkTitle = potentialTitle ? potentialTitle : element; childDB.Assert(elementRes, historyTitleProperty, gRDFService.GetLiteral(linkTitle), true); | linkTitle = potentialTitle; if (linkTitle) childDB.Assert(elementRes, historyTitleProperty, gRDFService.GetLiteral(linkTitle), true); | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... |
case -1: | case this.DROP_BEFORE: if (dropIndex<1) dropIndex = 1; | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... |
dump("*** elt= " + elementRes.Value + "\n"); | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... | |
case 0: | case this.DROP_ON: if (dropIndex<1) dropIndex = 1; | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... |
case 1: | case this.DROP_AFTER: | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... |
if (dropIndex<0) dropIndex = 0; | onDrop: function (aEvent, aXferData, aDragSession) { var dropElement = aEvent.target.id; var elementRes = RDFUtils.getResource(aXferData.data); var dropElementRes = RDFUtils.getResource(dropElement); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = d... | |
var msgHdr = GetMsgHdrFromUri(sourceUri); var folderUri = msgHdr.folder.URI; SelectFolder(folderUri); | SelectFolder(GetMsgHdrFromUri(sourceUri).folder.URI); | onDrop: function (aEvent, aData, aDragSession) { var sourceUri = aData.data; if (sourceUri != gCurrentMessageUri) { var msgHdr = GetMsgHdrFromUri(sourceUri); var folderUri = msgHdr.folder.URI; SelectFolder(folderUri); SelectMessage(sourceUri); } }, |
return; | continue; | onDrop: function(aEvent, aXferData, aDragSession) { this._ensureServices(); var xpinstallObj = { }; var themes = { }; var xpiCount = 0; var themeCount = 0; var count = aDragSession.numDropItems; for (var i = 0; i < count; ++i) { var fileData = this._getDataFromDragSession(aDragSessi... |
var historyTitleProperty = gRDFService.GetResource(NC_RDF("URL")); | var historyTitleProperty = gRDFService.GetResource(NC_RDF("Name")); | onDrop: function (aEvent, aData) { // temporary if (!isPToolbarDNDEnabled()) return false; var element = aData.data.data; var elementRes = RDFUtils.getResource(element); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = docu... |
if (titleFromHistory) | dump("*** titleFromHistory = " + titleFromHistory + "\n"); if (titleFromHistory) { titleFromHistory = titleFromHistory.QueryInterface(Components.interfaces.nsIRDFLiteral); dump("*** titleFromHistory2 = " + titleFromHistory + "\n"); } | onDrop: function (aEvent, aData) { // temporary if (!isPToolbarDNDEnabled()) return false; var element = aData.data.data; var elementRes = RDFUtils.getResource(element); var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder"); var childDB = docu... |
AddAttachment(rawData, prettyName); | { var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = rawData; attachment.name = prettyName; AddAttachment(attachment); } | onDrop: function (aEvent, aData, aDragSession) { var prettyName; var rawData = aData.data; switch (aData.flavour.contentType) { case "text/x-moz-url": case "text/nsmessageOrFolder": var separator = rawData.indexOf("\n"); if (separator != -1) { prettyName = rawData.su... |
var selTarget = bt.getBTTarget(aEvent.originalTarget, orientation); | var selTarget = bt.getBTTarget(target, orientation); | onDrop: function (aEvent, aXferData, aDragSession) { var target = aEvent.originalTarget; this.onDragRemoveFeedBack(target); var bt = document.getElementById("bookmarks-toolbar"); var selection = BookmarksUtils.getSelectionFromXferData(aDragSession); // if the personal toolbar does not exist, re... |
var menuTarget = target.localName == "toolbarbutton" || target.localName == "menu" && | var menuTarget = (target.localName == "toolbarbutton" || target.localName == "menu") && | onDrop: function (aEvent, aXferData, aDragSession) { var target = aEvent.originalTarget; this.onDragRemoveFeedBack(target); var bt = document.getElementById("bookmarks-toolbar"); var selection = BookmarksUtils.getSelectionFromXferData(aDragSession); // if the personal toolbar does not exist, re... |
var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) return; | var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) return; var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); var newStartDate = new Date( OldStartDate.getTime() ); newStartDate.setDate( newDay ); | onDrop: function (evt,dropdata,session){ //get the date of the current event box. //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start ); var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) return; var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); va... |
var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); var newStartDate = new Date( OldStartDate.getTime() ); newStartDate.setDate( newDay ); var Difference = newStartDate.getTime() - OldStartDate.getTime(); var oldEndDate = new Date( gEventBeingDragged.end.getTime() ); var newEndDate = oldEndDate.getTime(... | var Difference = newStartDate.getTime() - OldStartDate.getTime(); var oldEndDate = new Date( gEventBeingDragged.end.getTime() ); var newEndDate = oldEndDate.getTime() + Difference; | onDrop: function (evt,dropdata,session){ //get the date of the current event box. //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start ); var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) return; var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); va... |
gEventBeingDragged.start.setTime( newStartDate.getTime() ); gEventBeingDragged.end.setTime( newEndDate ); | gEventBeingDragged.start.setTime( newStartDate.getTime() ); gEventBeingDragged.end.setTime( newEndDate ); if( gEventBeingDragged.recurWeekdays > 0 ) { if( Difference < 0 ) Difference += 7; | onDrop: function (evt,dropdata,session){ //get the date of the current event box. //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start ); var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) return; var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); va... |
gICalLib.modifyEvent( gEventBeingDragged, gEventBeingDragged.parent.server ); | gEventBeingDragged.recurWeekdays = gEventBeingDragged.recurWeekdays << Difference; } if( evt.ctrlKey == true ) { var eventToCopy = gEventBeingDragged.clone(); eventToCopy.id = 0; gICalLib.addEvent( eventToCopy, gEventBeingDragged.parent.server ); } else { gICalLib.modifyEvent( gEventBeingDragged, gEventBeingDragged.... | onDrop: function (evt,dropdata,session){ //get the date of the current event box. //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start ); var newDay = gBoxBeingDroppedOn.dayNumber; if( newDay == null ) return; var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); va... |
rawData = rawData.path; | const FileContractID = "@mozilla.org/network/standard-url;1"; const FileURLIID = Components.interfaces.nsIFileURL; var fileURL = Components.classes[FileContractID].createInstance(FileURLIID); fileURL.file = aData.data; rawData = fileURL.spec; | onDrop: function (aEvent, aData, aDragSession) { var prettyName; var rawData = aData.data; switch (aData.flavour.contentType) { case "text/x-moz-url": case "text/nsmessage": var separator = rawData.indexOf("\n"); if (separator != -1) { prettyName = rawData.substr(sep... |
var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data; | var fileURL = data.value.QueryInterface(Components.interfaces.nsISupportsString).data.split("\n")[0]; | onDrop: function(aEvent, aXferData, aDragSession) { this._ensureServices(); var xpinstallObj = {}; var themes = {}; var xpiCount = 0; var themeCount = 0; var count = aDragSession.numDropItems; for (var i = 0; i < count; ++i) { var xfer = Components.classes["@mozilla.org/widget/trans... |
case "text/nsmessageOrfolder": | case "text/x-moz-message-or-folder": | onDrop: function (aEvent, aData, aDragSession) { var prettyName; var rawData = aData.data; switch (aData.flavour.contentType) { case "text/x-moz-url": case "text/nsmessageOrfolder": var separator = rawData.indexOf("\n"); if (separator != -1) { prettyName = rawData.su... |
promptService.Alert(window, errorTitle, errorMsg); | promptService.alert(window, errorTitle, errorMsg); | onDrop: function (aEvent, aData, aDragSession) { var prettyName; var rawData = aData.data; switch (aData.flavour.contentType) { case "text/x-moz-url": case "text/nsmessage": var separator = rawData.indexOf("\n"); if (separator != -1) { prettyName = rawData.substr(sep... |
var errorTitle = Bundle.GetStringFromName("DuplicateFileErrorDlogTitle"); var errorMsg = Bundle.GetStringFromName("DuplicateFileErrorDlogMessage"); | var errorTitle = gComposeMsgsBundle.getString("DuplicateFileErrorDlogTitle"); var errorMsg = gComposeMsgsBundle.getString("DuplicateFileErrorDlogMessage"); | onDrop: function (aEvent, aData, aDragSession) { var prettyName; var rawData = aData.data; switch (aData.flavour.contentType) { case "text/x-moz-url": case "text/nsmessage": var separator = rawData.indexOf("\n"); if (separator != -1) { prettyName = rawData.substr(sep... |
if (!isXPInstallEnabled()) return; | onDrop: function(aEvent, aXferData, aDragSession) { this._ensureServices(); var xpinstallObj = { }; var themes = { }; var xpiCount = 0; var themeCount = 0; var count = aDragSession.numDropItems; for (var i = 0; i < count; ++i) { var fileData = this._getDataFromDragSession(aDragSessi... | |
const FileContractID = "@mozilla.org/network/standard-url;1"; const FileURLIID = Components.interfaces.nsIFileURL; var fileURL = Components.classes[FileContractID].createInstance(FileURLIID); fileURL.file = aData.data; rawData = fileURL.spec; | rawData = aData.data.URL; | onDrop: function (aEvent, aData, aDragSession) { var prettyName; var rawData = aData.data; switch (aData.flavour.contentType) { case "text/x-moz-url": case "text/nsmessage": var separator = rawData.indexOf("\n"); if (separator != -1) { prettyName = rawData.substr(sep... |
unifinderRefesh(); | unifinderRefresh(); | onEndBatch : function() { unifinderRefesh(); }, |
onEndBatch: function() {}, | onEndBatch: function() { this.mInBatch = false; this.mCalendar.writeICS(); }, | onEndBatch: function() {}, |
toDoUnifinderRefesh(); | toDoUnifinderRefresh(); | onEndBatch : function() { toDoUnifinderRefesh(); }, |
agendaTreeView.calendarObserver.onEndBatch = function() {}; | agendaTreeView.calendarObserver.onEndBatch = function() { this.mBatchCount--; if (this.mBatchCount == 0) { this.agendaTreeView.refreshCalendarQuery(); } }; | agendaTreeView.calendarObserver.onEndBatch = function() {}; |
for (index in gMessageListeners) gMessageListeners[index].onEndHeaders(); | onEndHeaders: function() { // WARNING: This is the ONLY routine inside of the message Header Sink that should // trigger a reflow! CheckNotify(); ClearHeaderView(gCollapsedHeaderView); ClearHeaderView(gExpandedHeaderView); EnsureSubjectValue(); // make sure there is a subjec... | |
if (gIsEditableMsgFolder) ShowEditMessageButton(); | ShowEditMessageButton(); | onEndHeaders: function() { // WARNING: This is the ONLY routine inside of the message Header Sink that should // trigger a reflow! CheckNotify(); ClearHeaderView(gCollapsedHeaderView); ClearHeaderView(gExpandedHeaderView); EnsureSubjectValue(); // make sure there is a subjec... |
ClearEmailField(msgPaneData.ReplyToValue); | onEndHeaders: function() { // WARNING: This is the ONLY routine inside of the message Header Sink that should // trigger a reflow! if (this.NotifyClearAddresses != undefined) NotifyClearAddresses(); // (1) clear out the email fields for to, from, cc.... ClearEmailField(msg... | |
if (gIsEditableMsgFolder) ShowEditMessageButton(); | onEndHeaders: function() { // WARNING: This is the ONLY routine inside of the message Header Sink that should // trigger a reflow! if (this.NotifyClearAddresses != undefined) NotifyClearAddresses(); ClearHeaderView(gCollapsedHeaderView); ClearHeaderView(gExpandedHeaderView... | |
winWatcher.openWindow(winWatcher.activeWindow, updateInfo.URL, "_blank", "", null); | { var browserURL = "chrome: try { browserURL = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch) .getCharPref("browser.chromeURL"); } catch (e) { } var argstring = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISuppo... | onEndLoad: function(aSink) { debug("onEndLoad"); aSink.removeXMLSinkObserver(this); var ds = aSink.QueryInterface(Components.interfaces.nsIRDFDataSource); var updateInfo = this.getUpdateInfo(ds); if (updateInfo && this.newerVersionAvailable(updateInfo)) { var promptService = Components. ... |
OnMsgParsed(url); | onEndMsgDownload: function(url) { }, | |
this.mSaveHdr = messenger.messageServiceFromURI(messageUrl.uri).messageURIToMsgHdr(messageUrl.uri); | this.mSaveHdr = messenger.msgHdrFromURI(messageUrl.uri); | onEndMsgDownload: function(url) { // if we don't have any attachments, turn off the attachments flag if (!this.mSaveHdr) { var messageUrl = url.QueryInterface(Components.interfaces.nsIMsgMessageUrl); try { this.mSaveHdr = messenger.messageServiceFromURI(messageUrl.uri... |
if (!gSearchInput) | if (!gSearchBundle) | function onEnterInSearchBar(){ if (!gSearchInput) getDocumentElements(); viewDebug ("onEnterInSearchBar gSearchInput.value = " + gSearchInput.value + " showing criteria = " + gSearchInput.showingSearchCriteria +"\n"); if (gSearchInput.value == "" /* || gSearchInput.showingSearchCriteria */) { if ... |
SetAbView(searchURI, sortColumn, sortDirection); | SetAbView(searchURI, true, sortColumn, sortDirection); | function onEnterInSearchBar(){ var selectedNode = abList.selectedItem; if (!selectedNode) return; if (!gQueryURIFormat) { gQueryURIFormat = gPrefs.getComplexValue("mail.addr_book.quicksearchquery.format", Components.interfaces.nsIPrefLocalizedString).data; } v... |
if (!sortColumn.Length) sortColumn = "GeneratedName"; | function onEnterInSearchBar(){ var selectedNode = abList.selectedItem; if (!selectedNode) return; if (!gQueryURIFormat) { gQueryURIFormat = gPrefs.getComplexValue("mail.addr_book.quicksearchquery.format", Components.interfaces.nsIPrefLocalizedString).data; } v... | |
if (!gSearchInput) getDocumentElements(); | function onEnterInSearchBar(){ viewDebug ("onEnterInSearchBar gSearchInput.value = " + gSearchInput.value + " showing criteria = " + gSearchInput.showingSearchCriteria +"\n"); if (gSearchInput.value == "" /* || gSearchInput.showingSearchCriteria */) { if (gDBView.viewType == nsMsgViewType.eShowQuickSea... | |
if (gSearchInput.value == "" || gSearchInput.showingSearchCriteria) | if (gSearchInput.value == "" ) | function onEnterInSearchBar(){// dump ("onEnterInSearchBar gSearchInput.value = " + gSearchInput.value + " showing criteria = " + gSearchInput.showingSearchCriteria +"\n"); if (gSearchInput.value == "" || gSearchInput.showingSearchCriteria) { if (gDBView.viewType == nsMsgViewType.eShowQuickSearchResults ... |
gSearchInput.showingSearchCriteria = true; | function onEnterInSearchBar(){// dump ("onEnterInSearchBar gSearchInput.value = " + gSearchInput.value + " showing criteria = " + gSearchInput.showingSearchCriteria +"\n"); if (gSearchInput.value == "" || gSearchInput.showingSearchCriteria) { if (gDBView.viewType == nsMsgViewType.eShowQuickSearchResults ... | |
ClearCardViewPane(); gSearchInput.select(); | ClearCardViewPane(); | function onEnterInSearchBar(){ ClearCardViewPane(); gSearchInput.select(); if (!gQueryURIFormat) gQueryURIFormat = gPrefs.getComplexValue("mail.addr_book.quicksearchquery.format", Components.interfaces.nsIPrefLocalizedString).data; var searchURI = GetSelectedDirector... |
gSearchInput.select(); | function onEnterInSearchBar(){ if (gSearchInput.value == "") { if (gDBView.viewType == nsMsgViewType.eShowQuickSearchResults) { statusFeedback.showStatusString(""); disableQuickSearchClearButton(); if (gDefaultSearchViewTerms) { if (gQSViewIsDirty) { initia... | |
onError: function(aMessage) {}, | onError: function(aMessage) {} | onError: function(aMessage) {}, |
onError: function(aMessage) {}, | onError: function(aErrNo, aMessage) {}, | onError: function(aMessage) {}, |
this.errorreport=this.errorreport+calendarStringBundle.GetStringFromName( errorid )+"\n"; | this.errorreport=this.errorreport+gCalendarBundle.getString( errorid )+"\n"; | onError : function( severity, errorid, errorstring ) { this.errorreport=this.errorreport+calendarStringBundle.GetStringFromName( errorid )+"\n"; }, |
onStatus( "Error. Press Close button to close dialog." ); dialog.cancel.childNodes[0].nodeValue = "Close"; | onStatus( bundle.GetStringFromName("error")); dialog.cancel.childNodes[0].nodeValue = bundle.GetStringFromName("close"); | function onError( errorCode ) { // XXX - l10n var msg = "Unknown error"; switch ( errorCode ) { default: break; } alert( msg ); try { window.close(); } catch ( exception ) { } dump( "Error closing dialog\n" ); onStatus( "Error. Press Close button to close dialog... |
debug("bookmarks in event"); | onEvent: function(event) { debug("bookmarks in event"); // On blur events set the menu item texts back to the normal values /*if (event == 'blur' ) { goSetMenuValue('cmd_undo', 'valueDefault'); goSetMenuValue('cmd_redo', 'valueDefault'); }*/ } | |
if ( event == 'blur' ) { } if ( event == 'focus' ) { } | onEvent: function(event) { // on blur events set the menu item texts back to the normal values if ( event == 'blur' ) { //document.getElementById("threadTree").setAttribute("focusring","false"); } if ( event == 'focus' ) { //alert("focus") //document.getElementById... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.