From c41dad9ca496f3122a5ccb43a4d498f139c44cb1 Mon Sep 17 00:00:00 2001 From: Ramon Wijnands <rayman747@hotmail.com> Date: Sun, 13 Jul 2014 15:40:44 +0200 Subject: [PATCH] use the pathFor helper --- client/views/userProfile.html | 4 +++- client/views/userProfile.js | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/views/userProfile.html b/client/views/userProfile.html index 2d1098b..d590ad8 100644 --- a/client/views/userProfile.html +++ b/client/views/userProfile.html @@ -16,7 +16,9 @@ <div class="col-md-9"> <h2>Friends <span class="badge">{{this.profile.friends.length}}</span></h2> {{#each userFriends}} - <div class="avatar" style="background-image:url('{{avatarUrl}}')"></div> + <a href="{{pathFor 'userProfile'}}"> + <div class="avatar" style="background-image:url('{{avatarUrl}}')"></div> + </a> {{/each}} </div> diff --git a/client/views/userProfile.js b/client/views/userProfile.js index 23c27e0..e690ccc 100644 --- a/client/views/userProfile.js +++ b/client/views/userProfile.js @@ -23,9 +23,6 @@ Template.userProfile.events = { 'click [data-action="edit-avatar"]': function() { Session.set("showEditAvatarBar",!Session.get("showEditAvatarBar")); }, - 'click div.avatar': function() { - Router.go('userProfile', {_id: this._id}); - } }; Template.userPlaylist.songCount = function() {