summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/models
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/scripts/models')
-rw-r--r--pyload/web/app/scripts/models/CollectorPackage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyload/web/app/scripts/models/CollectorPackage.js b/pyload/web/app/scripts/models/CollectorPackage.js
index b608b8e18..9582c6af8 100644
--- a/pyload/web/app/scripts/models/CollectorPackage.js
+++ b/pyload/web/app/scripts/models/CollectorPackage.js
@@ -6,6 +6,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'collection
idAttribute: 'name',
defaults: {
name: 'Unnamed package',
+ password: null,
new_name: null,
links: null
},
@@ -41,7 +42,8 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'collection
$.ajax(App.apiRequest('addPackage',
{name: this.getName(),
- links: links},
+ links: links,
+ password: this.get('password')},
{success: function() {
self.destroy();
App.vent.trigger('package:added');