From 19e395eb2cbd52ea3cb85256821e1177933bb6be Mon Sep 17 00:00:00 2001 From: taggon Date: Thu, 18 Aug 2011 07:28:39 +0000 Subject: [PATCH] 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 --- modules/admin/tpl/js/admin.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js index 8d618f504..c8ab28438 100644 --- a/modules/admin/tpl/js/admin.js +++ b/modules/admin/tpl/js/admin.js @@ -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();