Skip to content

Commit

Permalink
Web PVR: When the description column for a result is clicked, open th…
Browse files Browse the repository at this point in the history
…e info page in a new tab.

Otherwise, the position on the original page is lost for at least some screen reader users when they try to go back to it.
  • Loading branch information
jcsteh authored and dinkypumpkin committed Dec 18, 2014
1 parent ab46737 commit 6706a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_iplayer.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3060,7 +3060,7 @@ sub search_progs {
} elsif ( /^desc$/ ) {
my $text = $prog{$pid}->{$_};
$text = substr($text, 0, 256).'...[more]' if length( $text ) > 256;
push @row, td( {-class=>$search_class}, label( { -class=>$search_class, -title=>"Click for full info", -onClick=>"BackupFormVars(form); form.NEXTPAGE.value='show_info'; form.INFO.value='".encode_entities("$prog{$pid}->{type}|$pid")."'; form.submit(); RestoreFormVars(form);" }, $text ) );
push @row, td( {-class=>$search_class}, label( { -class=>$search_class, -title=>"Click for full info", -onClick=>"BackupFormVars(form); form.NEXTPAGE.value='show_info'; form.INFO.value='".encode_entities("$prog{$pid}->{type}|$pid")."'; form.target='_blank'; form.submit(); RestoreFormVars(form); form.target='';" }, $text ) );
# Name / Series link
} elsif ( /^name$/ ) {
push @row, td( {-class=>$search_class}, label( { -class=>$search_class, -id=>'underline', -title=>"Click to list '$prog{$pid}->{$_}'",
Expand Down

0 comments on commit 6706a3b

Please sign in to comment.