commit/galaxy-central: jgoecks: Fixes for loading embedded grids in Trackster.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/c802de6bf0ba/ changeset: c802de6bf0ba user: jgoecks date: 2013-01-11 15:14:21 summary: Fixes for loading embedded grids in Trackster. affected #: 1 file diff -r 790d86fdc5a5fd7b5de2683ca07c0665094bb73e -r c802de6bf0ba697d9a5038ab41dfa1425f0c296f templates/tracks/history_select_grid.mako --- a/templates/tracks/history_select_grid.mako +++ b/templates/tracks/history_select_grid.mako @@ -10,21 +10,20 @@ <%def name="select_header()"><script type="text/javascript"> - // Handle all label clicks. - var f = function() { + // Load all grid URLs into modal-body element so that + // grid + links stays embedded. + var load_urls_into_modal_body = function() { $(".addtracktab, #grid-table a").click(function() { - var parent_body = $(".divider").parent(); - if (parent_body.length !== 0) { - parent_body.load($(this).attr("href")); - f(); + var modal_body = $(".modal-body"); + if (modal_body.length !== 0) { + modal_body.load($(this).attr("href")); return false; } }); }; // Need to process label URLs when document loaded and when grid changes. $(document).ready(function() { - f(); - // $('#grid-table-body').bind('update', f); + load_urls_into_modal_body(); }); </script><style> 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