Adds content group "Delete" and "Usage" functionality to group configurations page on cms.

TNL-1185
This commit is contained in:
muzaffaryousaf
2015-01-20 15:44:35 +05:00
parent 985a492efd
commit a31e38416d
19 changed files with 1156 additions and 271 deletions

View File

@@ -8,8 +8,17 @@ define([
return {
name: '',
version: 1,
order: null
};
order: null,
usage: []
};
},
url : function() {
var parentModel = this.collection.parents[0];
return parentModel.urlRoot + '/' + encodeURIComponent(parentModel.id) + '/' + encodeURIComponent(this.id);
},
reset: function() {
this.set(this._originalAttributes, { parse: true });
},
isEmpty: function() {
@@ -20,7 +29,8 @@ define([
return {
id: this.get('id'),
name: this.get('name'),
version: this.get('version')
version: this.get('version'),
usage: this.get('usage')
};
},