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:
taggon 2011-08-18 07:28:39 +00:00
parent eeb849c836
commit 19e395eb2c

View file

@ -202,14 +202,11 @@ jQuery(function($){
// pagination
$('.pagination')
.find('span.tgContent')
.attr('id', function(idx){ return 'goTo-'+(idx+1) })
.css('whiteSpace', 'nowrap')
.end()
.find('span.tgContent').css('whiteSpace', 'nowrap').end()
.find('a.tgAnchor[href="#goTo"]')
.each(function(idx){
var id = '#goTo-'+(idx+1);
$(this).attr('href', id).after($(id));
var $this = $(this);
$this.after( $($this.attr('href')) );
})
.end();