Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #510 from cbmi/issue-509
Browse files Browse the repository at this point in the history
Don't assume export is done in renderStatus
  • Loading branch information
bruth committed Apr 2, 2014
2 parents 2cbaf54 + 0f70561 commit 861531d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/js/cilantro/ui/exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ define([
},

renderStatus: function(model, value) {
var html;
var html, done = true;

switch(value) {
case 'error':
Expand All @@ -164,6 +164,8 @@ define([
case 'loading':
html = '<div class="label label-info">' +
'<i class="icon-spinner icon-spin"></i> Downloading...</span>';
// I'm stil working, I promise I'll be done soon!
done = false;
break;
case 'canceled':
html = '<span class="label label-warning">Canceled</span>';
Expand All @@ -172,8 +174,7 @@ define([

this.ui.cancel.hide();
this.ui.status.html(html);

this.model.set('done', true);
this.model.set('done', done);
}
});

Expand Down

0 comments on commit 861531d

Please sign in to comment.