diff --git a/browser/components/downloads/content/allDownloadsViewOverlay.js b/browser/components/downloads/content/allDownloadsViewOverlay.js index 90cf7cab061..eb65f2ee841 100644 --- a/browser/components/downloads/content/allDownloadsViewOverlay.js +++ b/browser/components/downloads/content/allDownloadsViewOverlay.js @@ -16,6 +16,7 @@ Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource://gre/modules/NetUtil.jsm"); Cu.import("resource://gre/modules/DownloadUtils.jsm"); Cu.import("resource:///modules/DownloadsCommon.jsm"); +Cu.import("resource://gre/modules/PlacesUtils.jsm"); const nsIDM = Ci.nsIDownloadManager; diff --git a/browser/components/downloads/content/allDownloadsViewOverlay.xul b/browser/components/downloads/content/allDownloadsViewOverlay.xul index 63d0d4e3ac4..ee9d8a3dad1 100644 --- a/browser/components/downloads/content/allDownloadsViewOverlay.xul +++ b/browser/components/downloads/content/allDownloadsViewOverlay.xul @@ -21,13 +21,14 @@ - 3. Make sure your window also has the editMenuOverlay overlay applied, + 3. Make sure your window has the editMenuOverlay overlay applied, because the view implements cmd_copy and cmd_delete. - 4. To initialize the view + 4. Make sure your window has the globalOverlay.js script loaded. + 5. To initialize the view let view = new DownloadsPlacesView(document.getElementById("downloadsRichListBox")); // This is what the Places Library uses. It could be tweaked a bit as long as the // transition-type is set correctly - view.places = "place:transition=7&sort=4"; + view.place = "place:transition=7&sort=4"; --> + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + + + + + + + + +