mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Pagination script does not change the anchor's attribute
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8802 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
eeb849c836
commit
19e395eb2c
1 changed files with 3 additions and 6 deletions
|
|
@ -202,14 +202,11 @@ jQuery(function($){
|
||||||
|
|
||||||
// pagination
|
// pagination
|
||||||
$('.pagination')
|
$('.pagination')
|
||||||
.find('span.tgContent')
|
.find('span.tgContent').css('whiteSpace', 'nowrap').end()
|
||||||
.attr('id', function(idx){ return 'goTo-'+(idx+1) })
|
|
||||||
.css('whiteSpace', 'nowrap')
|
|
||||||
.end()
|
|
||||||
.find('a.tgAnchor[href="#goTo"]')
|
.find('a.tgAnchor[href="#goTo"]')
|
||||||
.each(function(idx){
|
.each(function(idx){
|
||||||
var id = '#goTo-'+(idx+1);
|
var $this = $(this);
|
||||||
$(this).attr('href', id).after($(id));
|
$this.after( $($this.attr('href')) );
|
||||||
})
|
})
|
||||||
.end();
|
.end();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue