Adds table badge update if language is deleted
authorMatthias Schmidt <gravatronics@live.com>
Wed, 3 Oct 2012 12:12:45 +0000 (14:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 3 Oct 2012 12:12:45 +0000 (14:12 +0200)
acptemplates/languageList.tpl

index 88c306ac37e78b6996dcd169b42ade10bb380194..32e4f1cb0b4fdd8135352ae7edaca2478b8f5983 100644 (file)
@@ -3,7 +3,7 @@
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
-               new WCF.Action.Delete('wcf\\data\\language\\LanguageAction', $('.jsLanguageRow'));
+               new WCF.Action.Delete('wcf\\data\\language\\LanguageAction', $('.jsLanguageRow'), $('#userTableContainer hgroup span.badge'))
                new WCF.Action.SimpleProxy({
                        action: 'setAsDefault',
                        className: 'wcf\\data\\language\\LanguageAction',
 </div>
 
 {if $objects|count}
-       <div class="tabularBox tabularBoxTitle marginTop shadow">
+       <div id="userTableContainer" class="tabularBox tabularBoxTitle marginTop shadow">
                <hgroup>
                        <h1>{lang}wcf.acp.language.list{/lang} <span class="badge badgeInverse" title="{lang}wcf.acp.language.list.count{/lang}">{#$items}</span></h1>
                </hgroup>
-       
+               
                <table class="table">
                        <thead>
                                <tr>
                        </tbody>
                </table>
        </div>
-
+       
        <div class="contentNavigation">
                {@$pagesLinks}