Permalink
Browse files

replace ugly ? icon in the track listing with a text [?]

  • Loading branch information...
1 parent 0f334a9 commit 56af5fbd13d800c5139b25847b7e0159c8ceed3f @lstein lstein committed May 24, 2011
Showing with 6 additions and 11 deletions.
  1. +2 −2 htdocs/css/gbrowse.css
  2. +0 −2 htdocs/js/buttons.js
  3. +4 −7 lib/Bio/Graphics/Browser2/Render/HTML.pm
@@ -25,11 +25,11 @@ A.bred { color: #FFFFFF;
font-size : small;
text-align: center;
}
-.track_title {
+.track_label {
cursor: pointer;
color: black;
}
-.track_title:hover {
+.track_label:hover {
background:lightsteelblue;
}
.favorite {
@@ -16,12 +16,10 @@ function gbCheck (button,state) {
if (!checkboxes)
return false;
- // var track_names = new Array();
for (var i=0; i<checkboxes.length; i++) {
var track_name = checkboxes[i].id.substring(0,checkboxes[i].id.lastIndexOf("_"));
ShowHideTrack(track_name,state);
}
- // var added_tracks = Controller.add_tracks(track_names);
gbTurnOff(a);
button.checked = true;
updateList($(a));
@@ -917,7 +917,7 @@ sub render_track_table {
my $balloon = $source->setting('balloon style') || 'GBubble';
my $cellid = 'datacell';
- my @classes; # = 'track_title';
+ my @classes = 'track_title';
push @classes,'activeTrack' if $track_on;
push @classes,'favorite' if $favorite;
push @classes,'remote' if $label =~ /^(http|ftp|file):/;
@@ -956,15 +956,12 @@ sub render_track_table {
my $help = $link ?
a({-href=>$link,
-target=>'_new',
- },
- img({-border=>0,
- -src=>"$button_url/query.png",
- -onmouseover => "$balloon.showTooltip(event,'$mouseover')",
- -style=>'padding-left:0.5em'}))
+ -onmouseover => "$balloon.showTooltip(event,'$mouseover')",
+ }, '[?]')
: '';
$label_sort{$label} = $key;
- $labels{$label} = join(' ',$favoriteicon,span({-class=>'track_title'},$checkicon,$title),$help);
+ $labels{$label} = join(' ',$favoriteicon,span({-class=>'track_label'},$checkicon,$title),$help);
if (my ($selected,$total) = $self->subtrack_counts($label)) {
my $escaped_label = CGI::escape($label);

0 comments on commit 56af5fb

Please sign in to comment.