commit/galaxy-central: jgoecks: Grid UI fixes: (a) make operation buttons work after refresh and (b) show message each time.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/89f73f1bf3be/ changeset: 89f73f1bf3be user: jgoecks date: 2011-10-07 17:47:00 summary: Grid UI fixes: (a) make operation buttons work after refresh and (b) show message each time. affected #: 1 file (-1 bytes) --- a/templates/grid_base.mako Thu Oct 06 17:10:34 2011 -0400 +++ b/templates/grid_base.mako Fri Oct 07 11:47:00 2011 -0400 @@ -116,8 +116,8 @@ async_ops['${operation.label.lower()}'] = "True"; %endfor - // Initialize grid controls - function init_grid_controls() { + // Init operation buttons. + var init_operation_buttons = function() { // Initialize operation buttons. $('input[name=operation]:submit').each(function() { $(this).click( function() { @@ -132,6 +132,11 @@ do_operation(webapp, operation_name, item_ids); }); }); + }; + + // Initialize grid controls + function init_grid_controls() { + init_operation_buttons(); // Initialize submit image elements. $('.submit-image').each( function() { @@ -569,6 +574,7 @@ // Init grid. init_grid_elements(); + init_operation_buttons(); make_popup_menus(); // Hide loading overlay. @@ -577,7 +583,7 @@ // Show message if there is one. var message = $.trim( parsed_response_text[2] ); if (message != "") { - $('#grid-message').html( message ); + $('#grid-message').html( message ).show(); setTimeout( function() { $('#grid-message').hide(); }, 5000); } } 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)
-
Bitbucket