--- a/static/js/ui.js Thu Dec 27 00:47:02 2012 +0900
+++ b/static/js/ui.js Thu Dec 27 02:42:10 2012 +0900
+ fruitbar.xhrs.done = function() {
+ return _(this).all(function(xhr) {
+ return xhr.readyState == 4;
fruitbar.xhrs.abort = function() {
_(this).each(function(xhr) {
fruitbar.on('workspace', function(workspace) {
+ $('body').stop().animate({opacity: 0});
this.tasks.url = '/' + encodeURIComponent(workspace) + '/tasks/';
this.projects.url = '/' + encodeURIComponent(workspace) + '/projects/';
this.xhrs.push(this.tasks.fetch(), this.projects.fetch());
+ _(this.xhrs).each(function(fetch, index, xhrs) {
+ fetch.then(function() {
+ $('body').stop().animate({opacity: 1});
fruitbar.once('workspace', function() {
--- a/templates/index.html Thu Dec 27 00:47:02 2012 +0900
+++ b/templates/index.html Thu Dec 27 02:42:10 2012 +0900
+ <body style="opacity: 0;">