From d1c25cb5be8797e654759e1c96d4ca0bf1da376e Mon Sep 17 00:00:00 2001 From: Mike Hatfield Date: Wed, 18 Mar 2009 08:51:35 +0000 Subject: [PATCH] Further fix for ETHREEOH-1661 - Links Paginator not responding to click events git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repository/generic-paged-results.lib.ftl | 54 +++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/generic-paged-results.lib.ftl b/config/alfresco/templates/webscripts/org/alfresco/repository/generic-paged-results.lib.ftl index 3801fd73e8..66187af094 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/generic-paged-results.lib.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/generic-paged-results.lib.ftl @@ -1,33 +1,31 @@ <#-- - - Renders paged results information. - The passed in data object should contain following attributes: - pageSize: the number of elements requested to be returned (forms part of the request) - startIndex: the index of the first element to be returned (forms part of the request) - total: the total number of elements in the result set - itemCount: the actual number of elements returned - items: the result elements - + Renders paged results information. + The passed in data object should contain following attributes: + pageSize: the number of elements requested to be returned (forms part of the request) + startIndex: the index of the first element to be returned (forms part of the request) + total: the total number of elements in the result set + itemCount: the actual number of elements returned + items: the result elements + Usage: - <#import "generic-paged-results.lib.ftl" as gen/> - { - <@gen.pagedResults data=data ; item> - output of the individual item, for example by calling another macro: - <@yourLib.itemJSON item=item /> - - } - + <#import "generic-paged-results.lib.ftl" as gen/> + { + <@gen.pagedResults data=data ; item> + output of the individual item, for example by calling another macro: + <@yourLib.itemJSON item=item /> + + } --> <#macro pagedResults data> - "total" : ${data.total?c}, - "pageSize" : ${data.pageSize?c}, - "startIndex" : ${data.startIndex?c}, - "itemCount" : ${data.itemCount?c}, - "items": - [ - <#list data.items as item> - <#nested item> - <#if item_has_next>, - - ] + "total": ${data.total?c}, + "pageSize": ${data.pageSize?c}, + "startIndex": ${data.startIndex?c}, + "itemCount": ${data.itemCount?c}, + "items": + [ + <#list data.items as item> + <#nested item> + <#if item_has_next>, + + ]