From 3ebf2d530a8fd02ce59b52a2af7ff281f9b4a136 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 1 May 2015 14:49:32 +0100 Subject: [PATCH] Part of MKWS-64. Change "pager" template to accept prevHref, nextHref and href arguments in place of the old prevClick, nextClick and click. --- src/templates/pager.handlebars | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/templates/pager.handlebars b/src/templates/pager.handlebars index 16b29aa..e35dae2 100644 --- a/src/templates/pager.handlebars +++ b/src/templates/pager.handlebars @@ -1,8 +1,8 @@ {{! Pager -nextClick - handler script for "next" button, only available if there is a next page -prevClick - handler script for "previous" button if there is a previous page +nextHref - link for "next" button, only available if there is a next page +prevHref - link for "previous" button if there is a previous page moreNext - indicates there are more pages following those displayed morePrev - indicates there are more pages preceding first - first record displayed @@ -11,7 +11,7 @@ count - number of records available found - number of records found pages: number - page number - click - script to go to this page unless it is the current one + href - link to this page unless it is the current one }}
{{#if found}} @@ -24,8 +24,8 @@ pages:
- {{#if prevClick}} - {{{mkws-translate "Prev"}}} | + {{#if prevHref}} + {{{mkws-translate "Prev"}}} | {{else}} {{{mkws-translate "Prev"}}} | {{/if}} @@ -33,8 +33,8 @@ pages: {{#if morePrev}}...{{/if}} {{#each pages}} - {{#if click}} - {{number}} + {{#if href}} + {{number}} {{else}} {{number}} {{/if}} @@ -42,8 +42,8 @@ pages: {{#if moreNext}}...{{/if}} - {{#if nextClick}} - | {{{mkws-translate "Next"}}} + {{#if nextHref}} + | {{{mkws-translate "Next"}}} {{else}} | {{{mkws-translate "Next"}}} {{/if}} -- 1.7.10.4