]> git.sesse.net Git - pr0n/commitdiff
Use anchors instead of start= on fullscreen link; fixes the close button.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 24 Nov 2015 19:43:58 +0000 (20:43 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 24 Nov 2015 19:43:58 +0000 (20:43 +0100)
perl/Sesse/pr0n/Index.pm

index ad3af8fc088d86ecdb71b290965024de91c60fe5..68c6a10d386eacb35f193cd51464951f816c4793 100644 (file)
@@ -343,8 +343,8 @@ sub handler {
                        # Add fullscreen link.
                        my %fssettings = %settings;
                        $fssettings{'fullscreen'} = 1;
                        # Add fullscreen link.
                        my %fssettings = %settings;
                        $fssettings{'fullscreen'} = 1;
-                       $fssettings{'start'} = $img_num;
                        my $fsquery = Sesse::pr0n::Common::get_query_string(\%fssettings, \%defsettings);
                        my $fsquery = Sesse::pr0n::Common::get_query_string(\%fssettings, \%defsettings);
+                       $fsquery .= '#' . $img_num;
 
                        my $filename = $ref->{'filename'};
                        my $uri = $filename;
 
                        my $filename = $ref->{'filename'};
                        my $uri = $filename;