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.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyload/web/app/scripts/models/CollectorPackage.js b/pyload/web/app/scripts/models/CollectorPackage.js
index 293342440..1bba59f67 100644
--- a/pyload/web/app/scripts/models/CollectorPackage.js
+++ b/pyload/web/app/scripts/models/CollectorPackage.js
@@ -20,6 +20,11 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'collection
model.trigger('destroy', model, model.collection);
},
+ // overwrites original name
+ setName: function(name) {
+ this.set('new_name', name);
+ },
+
// get the actual name
getName: function() {
var new_name = this.get('new_name');