1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/5579c3bcbb71/ changeset: 5579c3bcbb71 user: jgoecks date: 2012-02-21 20:14:48 summary: Trackster bug fixes: hide 'more rows' icons by default and fix adding dataset from a history. affected #: 2 files diff -r 34e65f85699a1ccd40b5e815451bc6495de362ce -r 5579c3bcbb719f9810942a1bdc96c36d44b9c0b4 static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -842,12 +842,15 @@ /** * Add an action icon to this object. Appends icon unless prepend flag is specified. */ - add_action_icon: function(name, title, css_class, on_click_fn, prepend) { + add_action_icon: function(name, title, css_class, on_click_fn, prepend, hide) { var drawable = this; this.action_icons[name] = $("<a/>").attr("href", "javascript:void(0);").attr("title", title) .addClass("icon-button").addClass(css_class).tipsy( {gravity: 's'} ) .click( function() { on_click_fn(drawable); } ) .appendTo(this.icons_div); + if (hide) { + this.action_icons[name].hide(); + } }, /** * Build drawable's icons div from object's icons_dict. @@ -858,7 +861,7 @@ for (var i = 0; i < action_icons_def.length; i++) { icon_dict = action_icons_def[i]; this.add_action_icon(icon_dict.name, icon_dict.title, icon_dict.css_class, - icon_dict.on_click_fn, icon_dict.prepend); + icon_dict.on_click_fn, icon_dict.prepend, icon_dict.hide); } }, /** @@ -3396,7 +3399,8 @@ // HACKish: is it always reasonble to use view to get w_scale/current resolution? track.slotters[ track.view.resolution_px_b ].max_rows *= 2; track.request_draw(true); - } + }, + hide: true } ] ), /** diff -r 34e65f85699a1ccd40b5e815451bc6495de362ce -r 5579c3bcbb719f9810942a1bdc96c36d44b9c0b4 templates/tracks/browser.mako --- a/templates/tracks/browser.mako +++ b/templates/tracks/browser.mako @@ -221,7 +221,7 @@ url: "${h.url_for( action='add_track_async' )}", data: { hda_id: "${add_dataset}" }, dataType: "json", - success: function(track_data) { view.add_drawable( object_from_dict(track_data, view) ) } + success: function(track_data) { view.add_drawable( object_from_template(track_data, view) ) } }); %endif 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.