2:cc1e5f212e6c
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.

next change 7:5c5d433b3a14
previous change 0:a02e94c5b96b

static/js/ui.js

Permissions: -rw-r--r--

Other formats: Feeds:
$(function() {
window.fruitbar = {};
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({
el: $('.projects'),
collection: fruitbar.projects,
tasks: fruitbar.tasks,
templates: {
project: $('#project-template').html(),
task: $('#task-template').html()
},
controls: {
create: $('.btn-new-project')
}
});
window.setInterval(function() {fruitbar.projects.fetch({update: true});}, 60000);
window.setInterval(function() {fruitbar.tasks.fetch({update: true});}, 60000);
});