Bug fix: do not modify the page's address (by changing the final anchor) when clicking on a page in a paginated display. Otherwise this interferes with the tabbed navigation.

SVN:trunk[1403]
This commit is contained in:
Denis Flaven
2011-08-01 12:37:05 +00:00
parent f5ea073c2b
commit 3fc686e403
2 changed files with 8 additions and 4 deletions

View File

@@ -1062,16 +1062,20 @@ table.pagination tr td {
margin-top: 0;
margin-bottom: 0;
}
.pager td a {
.pager td span {
min-width: 20px;
display:inline-block;
text-align: center;
cursor: pointer;
}
.pager td a.curr_page {
.pager td span.curr_page {
color: #fff;
background: #999;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
img.prev, img.first, img.next, img.last {
cursor: pointer;
}

View File

@@ -290,11 +290,11 @@ function sprintf(format, etc) {
var link = ' '+page+' ';
if (i != c.page)
{
link = ' <a href="#" class="no-arrow" page="'+i+'" id="gotopage_'+i+'">'+page+'</a> ';
link = ' <span page="'+i+'" id="gotopage_'+i+'">'+page+'</span> ';
}
else
{
link = ' <a href="#" class="no-arrow curr_page" page="'+i+'">'+page+'</a> ';
link = ' <span class="curr_page" page="'+i+'">'+page+'</span> ';
}
txt += link;
}