Logout button no longer opens Account dialog.

This commit is contained in:
Samuel Clay 2016-02-27 16:02:58 -08:00
parent 0d8cdf1f54
commit 9785f3dea2

View file

@ -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();
});