From bbffdeb689bca15b96abf07027df9558965da71e Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 9 Jun 2013 16:38:12 +0200 Subject: [PATCH] Allow pagination on Transaction page * Added pager to all three transaction tables * Added two additional pagination definitions to JS * Added pagination ID to pagination template --- public/site_assets/mmcFE/js/custom.js | 6 ++++++ public/templates/mmcFE/account/transactions/default.tpl | 9 ++++++--- public/templates/mmcFE/global/pagination.tpl | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/public/site_assets/mmcFE/js/custom.js b/public/site_assets/mmcFE/js/custom.js index 2070bd82..fcecd8e7 100644 --- a/public/site_assets/mmcFE/js/custom.js +++ b/public/site_assets/mmcFE/js/custom.js @@ -69,6 +69,12 @@ $(function () { $("table.pagesort") .tablesorter({ widgets: ['zebra'] }) .tablesorterPager({ positionFixed: false, container: $("#pager") }); + $("table.pagesort2") + .tablesorter({ widgets: ['zebra'] }) + .tablesorterPager({ positionFixed: false, container: $("#pager2") }); + $("table.pagesort4") + .tablesorter({ widgets: ['zebra'] }) + .tablesorterPager({ positionFixed: false, container: $("#pager3") }); $('.block table tr th.header').css('cursor', 'pointer'); diff --git a/public/templates/mmcFE/account/transactions/default.tpl b/public/templates/mmcFE/account/transactions/default.tpl index 8f5282e1..88f749c1 100644 --- a/public/templates/mmcFE/account/transactions/default.tpl +++ b/public/templates/mmcFE/account/transactions/default.tpl @@ -1,7 +1,8 @@ {include file="global/block_header.tpl" BLOCK_HEADER="Transaction Log" BUTTONS=array(Confirmed,Unconfirmed,Orphan)}
- + {include file="global/pagination.tpl"} +
@@ -42,7 +43,8 @@
-
TX #
+ {include file="global/pagination.tpl" ID=2} +
@@ -86,7 +88,8 @@
-
TX #
+ {include file="global/pagination.tpl"} +
diff --git a/public/templates/mmcFE/global/pagination.tpl b/public/templates/mmcFE/global/pagination.tpl index 0bae6db5..22bdb0e3 100644 --- a/public/templates/mmcFE/global/pagination.tpl +++ b/public/templates/mmcFE/global/pagination.tpl @@ -1,4 +1,4 @@ -
+
TX #