app/assets/javascripts/task-manager/extjs/app/model/Assignee.js in task-manager-0.1.2 vs app/assets/javascripts/task-manager/extjs/app/model/Assignee.js in task-manager-0.1.3
- old
+ new
@@ -13,7 +13,23 @@
url: '/assignees.json',
reader: {
root: 'assignees',
totalProperty: 'total'
}
+ },
+
+ getId: function(detailed) {
+ if(detailed) {
+ return this.get('class_name') + '-' + this.get('id');
+ } else {
+ return this.get('id');
+ }
+ },
+
+ getParentId: function(detailed) {
+ if(this.get('parent_id') && detailed) {
+ return this.get('class_name') + '-' + this.get('parent_id');
+ } else {
+ return this.get('parent_id');
+ }
}
});