From 163b70fba9ca85af998bbde43bd77a9c2f61ceae Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 28 Apr 2015 12:59:00 -0400 Subject: [PATCH] fix acp logout --- public/src/admin/general/dashboard.js | 4 +--- src/views/admin/header.tpl | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/public/src/admin/general/dashboard.js b/public/src/admin/general/dashboard.js index 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.tpl index 26136d550e..52f12d0e0c 100644 --- a/src/views/admin/header.tpl +++ b/src/views/admin/header.tpl @@ -97,7 +97,7 @@ -
  • @@ -137,7 +137,7 @@
  • -
  • Log out