commit/galaxy-central: guerler: Upload: Fix genome selection feature
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/b042f0fac1ab/ Changeset: b042f0fac1ab User: guerler Date: 2013-11-20 04:49:48 Summary: Upload: Fix genome selection feature Affected #: 1 file diff -r f78dcb9eb2897c452c3475d21bd601c0a91b63da -r b042f0fac1abe5bace4ae32e93595a453b99d9de static/scripts/galaxy.upload.js --- a/static/scripts/galaxy.upload.js +++ b/static/scripts/galaxy.upload.js @@ -153,22 +153,30 @@ // add functionality to new row elements var self = this; + + // handle click event it.find('#symbol').on('click', function() { self.event_remove (index) }); + + // handle text editing event it.find('#text-content').on('keyup', function() { var count = it.find('#text-content').val().length; it.find('#size').html(self.size_to_string (count)); }); + + // handle genome selection event + var self = this; it.find('#genome').on('change', function(e) { - // identify target - var $target = $(e.target); - var selected_genome = $target.val(); + // identify selected genome + var selected_genome = $(e.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); + // update genome + var items = $(self.el).find('.upload-item'); + items.each(function() + { + var symbol = $(this).find('#symbol'); + if(symbol.hasClass(self.state.init)) { + $(this).find('#genome').val(selected_genome); + } }); }); 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