Skip to content

Commit

Permalink
Merge pull request #577 from martenson/upload-green-button
Browse files Browse the repository at this point in the history
make the upload 'Start' button green when enabled
  • Loading branch information
dannon committed Aug 7, 2015
2 parents 3feaedb + d6d8604 commit 868087c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions client/galaxy/scripts/mvc/upload/upload-view.js
Expand Up @@ -641,22 +641,30 @@ return Backbone.View.extend({
*/

// update reset button
if (this.counter.running == 0 && this.counter.announce + this.counter.success + this.counter.error > 0)
if (this.counter.running == 0 && this.counter.announce + this.counter.success + this.counter.error > 0){
this.modal.enableButton('Reset');
else
}
else{
this.modal.disableButton('Reset');
}

// update upload button
if (this.counter.running == 0 && this.counter.announce > 0)
if (this.counter.running == 0 && this.counter.announce > 0){
this.modal.enableButton('Start');
else
$('#button-3').addClass('btn-primary');
}
else {
this.modal.disableButton('Start');
$('#button-3').removeClass('btn-primary');
}

// pause upload button
if (this.counter.running > 0)
if (this.counter.running > 0){
this.modal.enableButton('Pause');
else
}
else{
this.modal.disableButton('Pause');
}

// select upload button
if (this.counter.running == 0){
Expand Down

0 comments on commit 868087c

Please sign in to comment.