From 3cb8b634947a3e1f6f3a4eb33ef3ec5a37d73919 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 5 Jun 2013 20:00:20 +0200 Subject: [PATCH] Adds handlers for empty template (group) tables --- .../files/acp/templates/templateGroupList.tpl | 14 +++++++++++++- .../install/files/acp/templates/templateList.tpl | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/templateGroupList.tpl b/wcfsetup/install/files/acp/templates/templateGroupList.tpl index 7eec3304d0..043abbe744 100644 --- a/wcfsetup/install/files/acp/templates/templateGroupList.tpl +++ b/wcfsetup/install/files/acp/templates/templateGroupList.tpl @@ -7,6 +7,18 @@ // 1} + options.refreshPage = true; + {if $pages == $pageNo} + options.updatePageNumber = -1; + {/if} + {else} + options.emptyMessage = '{lang}wcf.acp.template.group.noItems{/lang}'; + {/if} + + new WCF.Table.EmptyTableHandler($('#templateGroupTableContainer'), 'jsTemplateGroupRow', options); }); //]]> @@ -25,7 +37,7 @@ {if $objects|count} -
+

{lang}wcf.acp.template.group.list{/lang} {#$items}

diff --git a/wcfsetup/install/files/acp/templates/templateList.tpl b/wcfsetup/install/files/acp/templates/templateList.tpl index a5dfec5eb4..6ba52a6f2a 100644 --- a/wcfsetup/install/files/acp/templates/templateList.tpl +++ b/wcfsetup/install/files/acp/templates/templateList.tpl @@ -4,6 +4,18 @@ // 1} + options.refreshPage = true; + {if $pages == $pageNo} + options.updatePageNumber = -1; + {/if} + {else} + options.emptyMessage = '{lang}wcf.acp.template.noItems{/lang}'; + {/if} + + new WCF.Table.EmptyTableHandler($('#templateTableContainer'), 'jsTemplateRow', options); }); //]]> @@ -72,7 +84,7 @@
{if $objects|count} -
+

{lang}wcf.acp.template.list{/lang} {#$items}

-- 2.20.1