summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/models
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 17:28:38 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-18 17:28:38 +0200
commit28c5883a27ae58ab347fd3d7b9f02ee00a39c4c9 (patch)
tree8235dbaa88f0a9f610b767ce58916034d045b62d /pyload/web/app/scripts/models
parentnew linkgrabber (diff)
downloadpyload-28c5883a27ae58ab347fd3d7b9f02ee00a39c4c9.tar.xz
renaming of packages
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');