commit/galaxy-central: guerler: Upload: Transfer first genome selection to unselected genome selectors
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5b91b8e9e71b/ Changeset: 5b91b8e9e71b User: guerler Date: 2013-11-19 22:30:55 Summary: Upload: Transfer first genome selection to unselected genome selectors Affected #: 2 files diff -r eb071eaf633899f235babae41240975ab98551a1 -r 5b91b8e9e71b037478dd76b105f34a775b7279dc static/scripts/galaxy.upload.js --- a/static/scripts/galaxy.upload.js +++ b/static/scripts/galaxy.upload.js @@ -151,13 +151,26 @@ // update info it.find('#size').html(this.size_to_string (file.size)); - // add functionality to remove button + // add functionality to new row elements var self = this; it.find('#symbol').on('click', function() { self.event_remove (index) }); it.find('#text-content').on('keyup', function() { var count = it.find('#text-content').val().length; it.find('#size').html(self.size_to_string (count)); }); + it.find('#genome').on('change', function(e) { + // identify target + var $target = $(e.target); + var selected_genome = $target.val(); + + // identify other genome selectors + var genomes = (self.$el).find('.genome'); + genomes.each(function() { + var $select = $(this); + if ($select.val() == '?') + $select.val(selected_genome); + }); + }); // initialize progress this.event_progress(index, file, 0); diff -r eb071eaf633899f235babae41240975ab98551a1 -r 5b91b8e9e71b037478dd76b105f34a775b7279dc static/scripts/utils/galaxy.uploadbox.js --- a/static/scripts/utils/galaxy.uploadbox.js +++ b/static/scripts/utils/galaxy.uploadbox.js @@ -24,7 +24,6 @@ error_filesize : "File exceeds 2GB. Please use an FTP client.", error_default : "Please make sure the file is available.", error_server : "Upload request failed.", - error_toomany : "You can only queue <20 files per upload session.", error_login : "Uploads require you to log in.", error_missing : "No upload content available." } Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org