--- a/static/js/ui.js Fri Jan 11 17:22:25 2013 +0900
+++ b/static/js/ui.js Fri Jan 11 17:24:48 2013 +0900
fruitbar.projects = new Projects();
fruitbar.router = new Router();
- fruitbar.workspaceTitleDisplayer = new Displayer({
- el: $('.workspace-title')
- fruitbar.projectCounter = new CollectionCounterView({
- el: $('.project-counter'),
- collection: fruitbar.projects,
- plurals: ['project', 'projects']
- fruitbar.projectsView = new ProjectsView({
- collection: fruitbar.projects,
- project: $('#project-template').html(),
- task: $('#task-template').html()
- create: $('.btn-new-project')
fruitbar.xhrs.done = function() {
return _(this).all(function(xhr) {
+ fruitbar.workspaceTitleDisplayer = new Displayer({
+ el: $('.workspace-title')
+ fruitbar.projectCounter = new CollectionCounterView({
+ el: $('.project-counter'),
+ collection: fruitbar.projects,
+ plurals: ['project', 'projects']
+ fruitbar.projectsView = new ProjectsView({
+ collection: fruitbar.projects,
+ project: $('#project-template').html(),
+ task: $('#task-template').html()
+ create: $('.btn-new-project')
fruitbar.on('workspace', function(workspace) {
$('body').stop().animate({opacity: 0});