6:2a4d20de1da1
Anton Shestakov <engored@ya.ru>, Wed, 26 Dec 2012 22:01:21 +0900
Added tag 0.1.0 for changeset 1622dbdfa709

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);
});