diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-18 17:28:38 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-18 17:28:38 +0200 |
commit | 28c5883a27ae58ab347fd3d7b9f02ee00a39c4c9 (patch) | |
tree | 8235dbaa88f0a9f610b767ce58916034d045b62d /pyload/web/app/scripts/models | |
parent | new linkgrabber (diff) | |
download | pyload-28c5883a27ae58ab347fd3d7b9f02ee00a39c4c9.tar.xz |
renaming of packages
Diffstat (limited to 'pyload/web/app/scripts/models')
-rw-r--r-- | pyload/web/app/scripts/models/CollectorPackage.js | 5 |
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'); |