This commit is contained in:
Barış Soner Uşaklı
2018-01-15 10:52:33 -05:00
parent d97946926a
commit 3d81bcb1fe
3 changed files with 7 additions and 4 deletions

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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;