diff rhodecode/templates/admin/repos/repos.html @ 3776:13241a4075e9 beta

Unified the paginators for pylons and YUI. - YUI based paginators now behave more like the ones generated with pylons - introduced new custom pylons paginator for customizations needed to unify both
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 22 Apr 2013 14:11:40 +0200
parents 690a955ba785
children b02a5406924f
line wrap: on
line diff
--- a/rhodecode/templates/admin/repos/repos.html	Sun Apr 21 23:37:56 2013 +0200
+++ b/rhodecode/templates/admin/repos/repos.html	Mon Apr 22 14:11:40 2013 +0200
@@ -79,20 +79,7 @@
 
   var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
     sortedBy:{key:"name",dir:"asc"},
-    paginator: new YAHOO.widget.Paginator({
-        rowsPerPage: 25,
-        alwaysVisible: false,
-        template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}",
-        pageLinks: 5,
-        containerClass: 'pagination-wh',
-        currentPageClass: 'pager_curpage',
-        pageLinkClass: 'pager_link',
-        nextPageLinkLabel: '&gt;',
-        previousPageLinkLabel: '&lt;',
-        firstPageLinkLabel: '&lt;&lt;',
-        lastPageLinkLabel: '&gt;&gt;',
-        containers:['user-paginator']
-    }),
+    paginator: YUI_paginator(25, ['user-paginator']),
 
     MSG_SORTASC:"${_('Click to sort ascending')}",
     MSG_SORTDESC:"${_('Click to sort descending')}",