summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/downloads
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 00:19:51 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 00:19:51 +0200
commit72def35cd0cf3649b6d7ab72b66117df3e1c33fc (patch)
tree6b3a8584ae015b2f1c537fae57539dded4be1b3f /application/palemoon/components/downloads
parent1e7bbbf01cdecf57823ca302730827c15175cd22 (diff)
downloadUXP-72def35cd0cf3649b6d7ab72b66117df3e1c33fc.tar
UXP-72def35cd0cf3649b6d7ab72b66117df3e1c33fc.tar.gz
UXP-72def35cd0cf3649b6d7ab72b66117df3e1c33fc.tar.lz
UXP-72def35cd0cf3649b6d7ab72b66117df3e1c33fc.tar.xz
UXP-72def35cd0cf3649b6d7ab72b66117df3e1c33fc.zip
[PALEMOON] [frontend vs backend] Downloads: Fix - the context menu - "Copy Download Link"
Issue #121
Diffstat (limited to 'application/palemoon/components/downloads')
-rw-r--r--application/palemoon/components/downloads/content/allDownloadsViewOverlay.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
index 4ed2b6e3d..054f0405f 100644
--- a/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
+++ b/application/palemoon/components/downloads/content/allDownloadsViewOverlay.js
@@ -1394,16 +1394,11 @@ DownloadsPlacesView.prototype = {
_copySelectedDownloadsToClipboard:
function DPV__copySelectedDownloadsToClipboard() {
- let selectedElements = this._richlistbox.selectedItems;
- // Tycho: let urls = [e._shell.downloadURI for each (e in selectedElements)];
- let urls = [];
-
- for each (e in selectedElements) {
- urls.push(e._shell.downloadURI);
- }
+ let urls = [for (element of this._richlistbox.selectedItems)
+ element._shell.downloadURI];
Cc["@mozilla.org/widget/clipboardhelper;1"].
- getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"), document);
+ getService(Ci.nsIClipboardHelper).copyString(urls.join("\n"));
},
_getURLFromClipboardData: function DPV__getURLFromClipboardData() {