diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 00:19:51 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 00:19:51 +0200 |
commit | 72def35cd0cf3649b6d7ab72b66117df3e1c33fc (patch) | |
tree | 6b3a8584ae015b2f1c537fae57539dded4be1b3f /application | |
parent | 1e7bbbf01cdecf57823ca302730827c15175cd22 (diff) | |
download | UXP-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')
-rw-r--r-- | application/palemoon/components/downloads/content/allDownloadsViewOverlay.js | 11 |
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() { |