--- a/static/js/ui.js Thu Dec 27 00:34:49 2012 +0900
+++ b/static/js/ui.js Thu Dec 27 00:47:02 2012 +0900
+ fruitbar.xhrs.abort = function() {
+ _(this).each(function(xhr) {
fruitbar.on('workspace', function(workspace) {
this.tasks.url = '/' + encodeURIComponent(workspace) + '/tasks/';
this.projects.url = '/' + encodeURIComponent(workspace) + '/projects/';
+ this.xhrs.push(this.tasks.fetch(), this.projects.fetch());
fruitbar.once('workspace', function() {
- window.setInterval(function() {fruitbar.projects.fetch({update: true});}, 60000);
- window.setInterval(function() {fruitbar.tasks.fetch({update: true});}, 60000);
+ window.setInterval(function() {
+ fruitbar.xhrs.push(fruitbar.tasks.fetch({update: true}));
+ window.setInterval(function() {
+ fruitbar.xhrs.push(fruitbar.projects.fetch({update: true}));
Backbone.history.start();