VRFS-2701 wired up action buttons on samples page
This commit is contained in:
parent
d3cf83db85
commit
bc98a17786
|
|
@ -114,7 +114,6 @@
|
|||
|
||||
function events() {
|
||||
$btnCancel.click(function(evt) {
|
||||
console.log("HERE");
|
||||
evt.stopPropagation();
|
||||
navigateTo('/client#/profile/' + context.JK.currentUserId);
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -196,6 +196,18 @@
|
|||
}
|
||||
});
|
||||
|
||||
$btnCancel.click(function(evt) {
|
||||
evt.stopPropagation();
|
||||
navigateTo('/client#/profile/' + context.JK.currentUserId);
|
||||
return false;
|
||||
});
|
||||
|
||||
$btnBack.click(function(evt) {
|
||||
evt.stopPropagation();
|
||||
navigateTo('/client#/account/profile/interests');
|
||||
return false;
|
||||
});
|
||||
|
||||
$btnSubmit.click(function(evt) {
|
||||
$document.triggerHandler(EVENTS.USER_UPDATED, response);
|
||||
|
||||
|
|
@ -204,6 +216,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
function navigateTo(targetLocation) {
|
||||
context.location = targetLocation;
|
||||
}
|
||||
|
||||
function addOnlinePresence(presenceArray, username, type) {
|
||||
if ($.trim($soundCloudUsername.val()).length > 0) {
|
||||
presenceArray.push({
|
||||
|
|
|
|||
Loading…
Reference in New Issue