FIX: avoid ID usage in pagination as multiple comment form instances can exist

This commit is contained in:
Will Rossiter 2012-07-22 13:31:13 +12:00
parent 95667fdf41
commit 8e0f83a0a9

View File

@ -28,24 +28,24 @@
</ul> </ul>
<% if Comments.MoreThanOnePage %> <% if Comments.MoreThanOnePage %>
<div id="PageCommentsPagination"> <div class="comments-pagination">
<p> <p>
<% if Comments.PrevLink %> <% if Comments.PrevLink %>
<a href="$Comments.PrevLink">&laquo; <% _t('PREV','previous') %></a> <a href="$Comments.PrevLink" class="previous">&laquo; <% _t('PREV','previous') %></a>
<% end_if %> <% end_if %>
<% if Comments.Pages %> <% if Comments.Pages %>
<% control Comments.Pages %> <% loop Comments.Pages %>
<% if CurrentBool %> <% if CurrentBool %>
<strong>$PageNum</strong> <strong>$PageNum</strong>
<% else %> <% else %>
<a href="$Link">$PageNum</a> <a href="$Link">$PageNum</a>
<% end_if %> <% end_if %>
<% end_control %> <% end_loop %>
<% end_if %> <% end_if %>
<% if Comments.NextLink %> <% if Comments.NextLink %>
<a href="$Comments.NextLink"><% _t('NEXT','next') %> &raquo;</a> <a href="$Comments.NextLink" class="next"><% _t('NEXT','next') %> &raquo;</a>
<% end_if %> <% end_if %>
</p> </p>
</div> </div>
@ -61,9 +61,9 @@
</p> </p>
<% end_if %> <% end_if %>
<p id="CommentsRSSFeed"> <p class="commenting-rss-feed">
<a class="commentrss" href="$CommentRssLink"><% _t('RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %></a> | <a href="$RssLinkPage"><% _t('RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %></a> |
<a href="PageComment/rss" class="commentrss" title="<% _t('RSSVIEWALLCOMMENTS', 'View all Comments') %>"><% _t('RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %></a> <a href="$RssLink"><% _t('RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %></a>
</p> </p>
</div> </div>
<% end_if %> <% end_if %>