VRFS-2701 fixed cancel and back buttons
This commit is contained in:
parent
32b36ea28b
commit
82f35e221f
|
|
@ -234,7 +234,7 @@
|
|||
|
||||
function navToAccount() {
|
||||
resetForm();
|
||||
window.location = '/client#/account';
|
||||
window.location = '/client#/profile/' + context.JK.currentUserId;
|
||||
}
|
||||
|
||||
function navToAvatar() {
|
||||
|
|
|
|||
|
|
@ -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; } );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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; } );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue