Skip to content

Commit

Permalink
Fix unload message if queue is running/active
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 11, 2015
1 parent 4da5f13 commit 82c7327
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions client/galaxy/scripts/mvc/upload/upload-view.js
Expand Up @@ -61,9 +61,10 @@ return Backbone.View.extend({
self.show()
},
onunload : function() {
//if (self.counter.running > 0) {
// return 'Several uploads are still processing.';
//}
var percentage = self.ui_button.get('percentage', 0);
if (percentage > 0 && percentage < 100) {
return 'Several uploads are queued.';
}
}
});

Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/upload/upload-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/mvc/upload/upload-view.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82c7327

Please sign in to comment.