mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-11-01 09:09:51 +00:00
Logout button no longer opens Account dialog.
This commit is contained in:
parent
0d8cdf1f54
commit
9785f3dea2
1 changed files with 4 additions and 1 deletions
|
|
@ -150,6 +150,7 @@
|
|||
// ========
|
||||
|
||||
logout: function() {
|
||||
console.log(['Logout']);
|
||||
window.location.href = "/reader/logout";
|
||||
},
|
||||
|
||||
|
|
@ -5910,13 +5911,15 @@
|
|||
$.targetIs(e, { tagSelector: '.NB-menu-manage-logout' }, function($t, $p){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
if (!$t.hasClass('NB-disabled')) {
|
||||
self.logout();
|
||||
}
|
||||
});
|
||||
$.targetIs(e, { tagSelector: '.NB-menu-manage-account' }, function($t, $p){
|
||||
e.preventDefault();
|
||||
if (!$t.hasClass('NB-disabled')) {
|
||||
|
||||
if (!$t.hasClass('NB-disabled') && !$($t.context).hasClass('NB-menu-manage-logout')) {
|
||||
$.modal.close(function() {
|
||||
self.open_account_modal();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue