mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Merge pull request #227 from joppiesaus/browsemodefix
Fixed browsing tiles leading to unintended pages
This commit is contained in:
commit
3e485fcf30
1 changed files with 6 additions and 3 deletions
|
@ -82,8 +82,6 @@
|
|||
title="<%= site.title %>"
|
||||
<% if @surfmode %>
|
||||
onclick="surf(<%= ((@page-1)*Site::BROWSE_PAGINATION_LENGTH)+i+1 %>); return false"
|
||||
<% else %>
|
||||
href="<%= site.uri %>"
|
||||
<% end %>
|
||||
>
|
||||
<span class="img-Holder" style="background:url(<%= site.screenshot_url('index.html', '540x405') %>) no-repeat;">
|
||||
|
@ -91,7 +89,12 @@
|
|||
</span>
|
||||
</a>
|
||||
<div class="title">
|
||||
<a href="<%= site.uri %>" title="<%= site.title %>" onclick="surf(<%= i+1 %>); return false"><%= site.title.shorten(30) %></a>
|
||||
<a href="<%= site.uri %>"
|
||||
title="<%= site.title %>"
|
||||
<% if @surfmode %>
|
||||
onclick="surf(<%= ((@page-1)*Site::BROWSE_PAGINATION_LENGTH)+i+1 %>); return false"
|
||||
<% end %>
|
||||
><%= site.title.shorten(30) %></a>
|
||||
</div>
|
||||
<div class="site-info">
|
||||
<div class="username">
|
||||
|
|
Loading…
Add table
Reference in a new issue