1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7553213e0646/ Changeset: 7553213e0646 User: guerler Date: 2013-11-14 08:31:07 Summary: UI: Fix async submit of grids Affected #: 1 file diff -r 1c4bb73d630a21bf2057bdbb8b604eb0dab4ea0e -r 7553213e0646fd4337ceacc78820990c6ce0c710 static/scripts/galaxy.grids.js --- a/static/scripts/galaxy.grids.js +++ b/static/scripts/galaxy.grids.js @@ -133,27 +133,8 @@ // Code to handle grid operations: filtering, sorting, paging, and operations. // -// Init operation buttons. -function init_operation_buttons() { - // Initialize operation buttons. - $('input[name=operation]:submit').each(function() { - $(this).click( function() { - var operation_name = $(this).val(); - // For some reason, $('input[name=id]:checked').val() does not return all ids for checked boxes. - // The code below performs this function. - var item_ids = []; - $('input[name=id]:checked').each(function() { - item_ids.push( $(this).val() ); - }); - do_operation(operation_name, item_ids); - }); - }); -} - // Initialize grid controls function init_grid_controls() { - init_operation_buttons(); - // Initialize submit image elements. $('.submit-image').each( function() { // On mousedown, add class to simulate click. @@ -498,7 +479,6 @@ // Init grid. init_grid_elements(); - init_operation_buttons(); make_popup_menus(); // Hide loading overlay. @@ -558,11 +538,13 @@ if(!confirm(confirmation_text)) return false; - // set up hidden field to parse the command/operation to controller - $('#operation').val(selected_button.value); - - // submit form - selected_button.form.submit(); + // add ids + var operation_name = selected_button.value; + var item_ids = []; + $('input[name=id]:checked').each(function() { + item_ids.push( $(this).val() ); + }); + do_operation(operation_name, item_ids); // return return true; 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.