From 6706a3b19a2c7f1096c7615191708a8f8c62743b Mon Sep 17 00:00:00 2001 From: James Teh Date: Sat, 15 Feb 2014 11:54:54 +1000 Subject: [PATCH] Web PVR: When the description column for a result is clicked, open the 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. --- get_iplayer.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_iplayer.cgi b/get_iplayer.cgi index 4133de5f..abfab34d 100755 --- a/get_iplayer.cgi +++ b/get_iplayer.cgi @@ -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}->{$_}'",