VRFS-3336 : Fix final save button on edit account profile.
* Only bind the screen to ‘account/profile/samples’ if it is the user version * Parent parameter was being overwritten; change to use the provided argument.
This commit is contained in:
parent
946313d56b
commit
42d4e9723c
|
|
@ -20,8 +20,6 @@
|
|||
var ui = new context.JK.UIHelper(JK.app);
|
||||
var target = {};
|
||||
var profileUtils = context.JK.ProfileUtils;
|
||||
parent
|
||||
var parent = $(".account-profile-samples")
|
||||
|
||||
var $screen = $('.profile-online-sample-controls', parent);
|
||||
// online presences
|
||||
|
|
@ -227,8 +225,8 @@
|
|||
})
|
||||
}
|
||||
|
||||
function enableSubmits() {
|
||||
$btnSubmit.off("click").on("click", function(e) {
|
||||
function enableSubmits() {
|
||||
$btnSubmit.off("click").on("click", function(e) {
|
||||
e.stopPropagation();
|
||||
handleUpdateProfile();
|
||||
return false;
|
||||
|
|
@ -463,7 +461,7 @@
|
|||
});
|
||||
//});
|
||||
|
||||
|
||||
|
||||
|
||||
} // end initializeValidators.
|
||||
|
||||
|
|
@ -477,7 +475,12 @@
|
|||
'afterShow': afterShow
|
||||
};
|
||||
|
||||
app.bindScreen('account/profile/samples', screenBindings);
|
||||
// We only want to bind this screen for accounts:
|
||||
if (updateFn.name===api.updateUser.name) {
|
||||
// A little hacky, but we are soon going to replace this:
|
||||
app.bindScreen('account/profile/samples', screenBindings);
|
||||
}
|
||||
|
||||
initializeValidators();
|
||||
events();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue