mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fix acp logout
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user