summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/views/linkgrabber/collectorView.js
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/scripts/views/linkgrabber/collectorView.js')
-rw-r--r--pyload/web/app/scripts/views/linkgrabber/collectorView.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyload/web/app/scripts/views/linkgrabber/collectorView.js b/pyload/web/app/scripts/views/linkgrabber/collectorView.js
index 08b426aff..ba1bbbf69 100644
--- a/pyload/web/app/scripts/views/linkgrabber/collectorView.js
+++ b/pyload/web/app/scripts/views/linkgrabber/collectorView.js
@@ -21,6 +21,10 @@ define(['jquery', 'underscore', 'backbone', 'app', './packageView'],
self.collection.add(pack);
}
+ // set destination pid
+ if (self.model)
+ pack.set('pid', self.model.get('pid'));
+
// Remove links from other packages and delete empty ones
self.collection.each(function(pack2) {
console.log(pack2, links);