Mercurial > kallithea
changeset 3784:62fb395a459d beta
make sure we hide the spans
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 22 Apr 2013 16:40:24 +0200 |
parents | f533c054fb19 |
children | 7d8154837174 |
files | rhodecode/public/js/rhodecode.js |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/js/rhodecode.js Mon Apr 22 15:49:59 2013 +0200 +++ b/rhodecode/public/js/rhodecode.js Mon Apr 22 16:40:24 2013 +0200 @@ -2206,11 +2206,9 @@ } } - - +// custom paginator +var YUI_paginator = function(links_per_page, containers){ -var YUI_paginator = function(links_per_page, containers){ - // my custom paginator (function () { var Paginator = YAHOO.widget.Paginator, @@ -2276,7 +2274,8 @@ title = p.get('firstPageLinkTitle'); this.link = document.createElement('a'); - this.span = document.createElement(); + this.span = document.createElement('span'); + YUD.setStyle(this.span, 'display', 'none'); var _pos = this.getPos(p.getCurrentPage(), p.getTotalPages(), 5); this.leftmost_page = _pos[0]; @@ -2403,7 +2402,9 @@ this.rightmost_page = _pos[2]; this.link = document.createElement('a'); - this.span = document.createElement(); + this.span = document.createElement('span'); + YUD.setStyle(this.span, 'display', 'none'); + this.na = this.span.cloneNode(false); setId(this.link, id_base + '-last-link');