directory-backbone-topcoat-require
directory-backbone-topcoat-require copied to clipboard
rendering the 'reports list' is not OK when using the json storage
When I use the memory storage , there is no issue.. people can see the manager and the list of user reporting to him..
but when I use the json storage with same data on the node.js server sent (checked the json returned ), then people can see ONLY the manager.... not the list of people reporting to him...
render: function () {
this.$el.html(template(this.model.attributes));
this.model.reports.fetch();
this.listView = new EmployeeListView({collection: this.model.reports, el: $(".scroller", this.el)});
return this;
}
I wish I would have seen this yesterday as I had to resolve the same issue. +1 to this solution. Works with json or jsonp.
I'm still getting "Uncaught ReferenceError: reports is not defined" afer using the above code in directory-backbone-topcoat-require-master\js\app\models\jsonp\employee.js . Am i missing something?