Anton Shestakov <engored@ya.ru>, Tue, 25 Dec 2012 17:09:32 +0900
Since CodernityDB 0.4.0 get_many is not limited to 1 item by default, so omit limit=-1.
static/js/ui.js
Permissions: -rw-r--r--
fruitbar.tasks = new Tasks(data['tasks']); fruitbar.projects = new Projects(data['projects']); fruitbar.projectCounter = new CollectionCounterView({ el: $('.project-counter'), collection: fruitbar.projects fruitbar.projectsView = new ProjectsView({ collection: fruitbar.projects, project: $('#project-template').html(), task: $('#task-template').html() create: $('.btn-new-project') window.setInterval(function() {fruitbar.projects.fetch({update: true});}, 60000); window.setInterval(function() {fruitbar.tasks.fetch({update: true});}, 60000);