summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/models
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-04 19:45:15 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-04 19:45:15 +0100
commitdfbb7dbeb5551b7b60aa05e59855f628c2e001ea (patch)
tree471e297783ce906869e32322d71e4de6d04e1c90 /pyload/web/app/scripts/models
parentfixed changing the dl speed limit (diff)
downloadpyload-dfbb7dbeb5551b7b60aa05e59855f628c2e001ea.tar.xz
password field for linkgrabber
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');