From: Matthias Schmidt Date: Wed, 5 Jun 2013 18:00:20 +0000 (+0200) Subject: Adds handlers for empty template (group) tables X-Git-Tag: 2.0.0_Beta_4~123^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cb8b634947a3e1f6f3a4eb33ef3ec5a37d73919;p=GitHub%2FWoltLab%2FWCF.git Adds handlers for empty template (group) tables --- 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}