Fixed user menu logout
authorAlexander Ebert <ebert@woltlab.com>
Tue, 27 Jan 2015 18:12:27 +0000 (19:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 27 Jan 2015 18:12:27 +0000 (19:12 +0100)
com.woltlab.wcf/templates/userPanel.tpl

index 4ebc5315bbff1a31fb70b30f41745302cd2d8a90..0acd451452ec378576a82807b8e9683abbf3d00c 100644 (file)
@@ -39,7 +39,7 @@
                                        {/if}
                                </ul>
                        </div>
-                       <a class="interactiveDropdownShowAll">{lang}wcf.user.logout{/lang}</a>
+                       <a class="interactiveDropdownShowAll" href="{link controller='Logout'}t={@SECURITY_TOKEN}{/link}" onclick="WCF.Dropdown.Interactive.Handler.close('userMenu'); WCF.System.Confirmation.show('{lang}wcf.user.logout.sure{/lang}', $.proxy(function (action) { if (action == 'confirm') window.location.href = $(this).attr('href'); }, this)); return false;">{lang}wcf.user.logout{/lang}</a>
                </div>
                <script data-relocate="true">
                        $(function() {