mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 15:20:39 +01:00
closes #6238
This commit is contained in:
@@ -31,7 +31,7 @@ define('forum/account/edit/email', ['forum/account/header'], function (header) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
ajaxify.go('user/' + ajaxify.data.userslug);
|
||||
ajaxify.go('user/' + ajaxify.data.userslug + '/edit');
|
||||
});
|
||||
|
||||
return false;
|
||||
|
||||
@@ -82,8 +82,11 @@ define('forum/account/edit/password', ['forum/account/header', 'translator', 'zx
|
||||
onPasswordConfirmChanged();
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
window.location.href = config.relative_path + '/login';
|
||||
if (parseInt(app.user.uid, 10) === parseInt(ajaxify.data.uid, 10)) {
|
||||
window.location.href = config.relative_path + '/login';
|
||||
} else {
|
||||
ajaxify.go('user/' + ajaxify.data.userslug + '/edit');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (!passwordsmatch) {
|
||||
|
||||
@@ -39,7 +39,7 @@ define('forum/account/edit/username', ['forum/account/header'], function (header
|
||||
$('[component="header/usericon"]').css('background-color', data['icon:bgColor']).text(data['icon:text']);
|
||||
}
|
||||
|
||||
ajaxify.go('user/' + userslug);
|
||||
ajaxify.go('user/' + userslug + '/edit');
|
||||
});
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user