commit/galaxy-central: jgoecks: Cleanup display of shared visualizations.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/9986212ed733/ changeset: 9986212ed733 user: jgoecks date: 2011-08-24 23:15:34 summary: Cleanup display of shared visualizations. affected #: 1 file (7 bytes) --- a/templates/visualization/display.mako Wed Aug 24 16:43:02 2011 -0400 +++ b/templates/visualization/display.mako Wed Aug 24 17:15:34 2011 -0400 @@ -58,7 +58,7 @@ </%def><%def name="render_item( visualization, config )"> - <div id="${visualization.id}" class="unified-panel-body" style="overflow:none;top:0px;"></div> + <div id="${trans.security.encode_id( visualization.id )}" class="unified-panel-body" style="overflow:none;top:0px;"></div><script type="text/javascript"> // TODO: much of this code is copied from browser.mako -- create shared base and use in both places. @@ -76,15 +76,14 @@ converted_datasets_state_url = "${h.url_for( controller='/tracks', action='converted_datasets_state' )}", addable_track_types = { "LineTrack": LineTrack, "FeatureTrack": FeatureTrack, "ReadTrack": ReadTrack }, view, - container_element = $("#${visualization.id}"); + container_element = $("#${trans.security.encode_id( visualization.id )}"); $(function() { if (container_element.parents(".item-content").length > 0) { // Embedded viz container_element.parents(".item-content").css( { "max-height": "none", "overflow": "visible" } ); } else { // Viewing just one shared viz - // TODO: need live or just bind click? - $("#right-border").live("click", function() { view.resize_window(); }); + $("#right-border").click(function() { view.resize_window(); }); } // Create view and add tracks. 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