Node.js based forum software built for the modern web
fix acp logout
barisusakli163b70fba9ca
diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.jsindex 021b321b5f..6b7cdd5c28 100644--- a/public/src/admin/general/dashboard.js+++ b/public/src/admin/general/dashboard.js@@ -31,9 +31,7 @@ define('admin/general/dashboard', ['semver'], function(semver) {usedTopicColors.length = 0;});- $('#logout-link').on('click', function() {- app.logout();- });+ $('[component="logout"]').on('click', app.logout);$.get('https://api.github.com/repos/NodeBB/NodeBB/tags', function(releases) {// Re-sort the releases, as they do not follow Semver (wrt pre-releases)diff --git a/src/views/admin/header.tpl b/src/views/admin/header.tplindex 26136d550e..52f12d0e0c 100644--- a/src/views/admin/header.tpl+++ b/src/views/admin/header.tpl@@ -97,7 +97,7 @@</a></li><li role="presentation" class="hidden-lg hidden-md hidden-sm divider"></li>- <li class="hidden-lg hidden-md hidden-sm" id="logout-link">+ <li component="logout" class="hidden-lg hidden-md hidden-sm"><a href="#">Log out</a></li><li style="float:left;">@@ -137,7 +137,7 @@</a></li><li role="presentation" class="divider"></li>- <li id="logout-link">+ <li component="logout"><a href="#">Log out</a></li></ul>