VRFS-2701 fixed cancel and back buttons

This commit is contained in:
Brian Smith 2015-03-18 21:42:18 -04:00
parent 32b36ea28b
commit 82f35e221f
3 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@
function navToAccount() {
resetForm();
window.location = '/client#/account';
window.location = '/client#/profile/' + context.JK.currentUserId;
}
function navToAvatar() {

View File

@ -121,8 +121,8 @@
}
function events() {
$screen.find('#account-edit-profile-cancel').on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/account'); return false; } );
$screen.find('#account-edit-profile-back').on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/account/profile'); return false; } );
$screen.find('#account-edit-profile-cancel').on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/profile/' + context.JK.currentUserId); return false; } );
$screen.find('#account-edit-profile-back').on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/account/profile/'); return false; } );
$screen.find('#account-edit-profile-submit').on('click', function(evt) { evt.stopPropagation(); handleUpdateProfile(); return false; } );
}

View File

@ -167,7 +167,7 @@
bindGenreSelector($btnFreeSessionsGenreSelect, $freeSessionsGenreList);
bindGenreSelector($btnCowritingGenreSelect, $cowritingGenreList);
$btnCancel.on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/account'); return false; } );
$btnCancel.on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/profile/' + context.JK.currentUserId); return false; } );
$btnBack.on('click', function(evt) { evt.stopPropagation(); navigateTo('/client#/account/profile/experience'); return false; } );
$btnSubmit.on('click', function(evt) { evt.stopPropagation(); handleUpdateProfile(); return false; } );