VRFS-2701 wired up action buttons on samples page

This commit is contained in:
Brian Smith 2015-03-23 22:32:04 -04:00
parent d3cf83db85
commit bc98a17786
2 changed files with 16 additions and 1 deletions

View File

@ -114,7 +114,6 @@
function events() {
$btnCancel.click(function(evt) {
console.log("HERE");
evt.stopPropagation();
navigateTo('/client#/profile/' + context.JK.currentUserId);
return false;

View File

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