diff options
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'); |