Permalink
Browse files

navigate without extraneous GET requests cancelling searches

  • Loading branch information...
1 parent 3b90eac commit b6dacc25faff4af58cc9898468f8ca2640112fbc @lstein lstein committed Aug 30, 2011
Showing with 8 additions and 5 deletions.
  1. +3 −2 lib/Bio/Graphics/Browser2/Render/HTML.pm
  2. +5 −3 lib/Bio/Graphics/Browser2/Render/SnapshotManager.pm
@@ -99,7 +99,6 @@ sub render_login_required {
# Render Tabbed Pages - Returns the HTML containing the tabs & the page DIVs to hold the content.
sub render_tabbed_pages {
my $self = shift;
- # ***Add the title for the snapshots***
my ($main_html,$tracks_html,$snapshot_html,$community_tracks_html,$custom_tracks_html,$settings_html) = @_;
my $uses_database = $self->user_tracks->database;
@@ -1206,7 +1205,9 @@ sub render_community_tracks_section {
sub render_snapshots_section {
my $self = shift;
my $userdata = $self->user_tracks;
- my $html = $self->is_admin? h2({-style=>'font-style:italic;background-color:yellow'}, $self->translate('ADMIN_MODE_WARNING')) : "";
+ my $html = $self->is_admin ? h2({-style=>'font-style:italic;background-color:yellow'},
+ $self->translate('ADMIN_MODE_WARNING'))
+ : "";
# Snapshot page rendering is done in the snapshotmanager.pm file
my $snapshot_manager = Bio::Graphics::Browser2::Render::SnapshotManager->new();
$html .= div({-id => "snapshots_page"}, $snapshot_manager->render_snapshots_listing($self));
@@ -66,11 +66,13 @@ sub render_snapshots_listing {
-name => "Cancel",
-value => "Cancel",
-onclick => '$(\'save_snapshot_2\').hide(); this.style.zIndex = \'0\'',}),
- ),),
+ )),
div({-id => "enlarge_image",
- -style => 'display: none; position:absolute; left: 155px; top:100px; width: 1000px; border: #F0E68C; z-index: 10000;'},
+ -style => 'display: none; position:absolute; left: 155px; top:100px; width: 1000px; border: #F0E68C; z-index: 10000;'
+ },
img({-style => 'cursor:pointer;', -onclick=> '$(\'enlarge_image\').hide(); Box.prototype.greyout(false);', -src => "$closeImage"},),
- img({-id => 'large_snapshot', -src => '', -width=>'1000', -height => 'auto'},),),
+ img({-id => 'large_snapshot', -width=>'1000', -height => 'auto'})
+ )
);
$html .= div({-id=>'headingRow',-style=>"height:20px;background-color:#F0E68C"},

0 comments on commit b6dacc2

Please sign in to comment.