From dfbb7dbeb5551b7b60aa05e59855f628c2e001ea Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 4 Dec 2013 19:45:15 +0100 Subject: password field for linkgrabber --- pyload/web/app/scripts/models/CollectorPackage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pyload/web/app/scripts/models') 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'); -- cgit v1.2.3