Skip to content

Commit

Permalink
posted messages now get the current_user class
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEvans committed May 11, 2012
1 parent 8cee08f commit dad5070
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,9 +16,10 @@ class Kandan.Views.ShowActivity extends Backbone.View
@compiledTemplate = Kandan.Helpers.Activities.buildFromMessageTemplate activity

$(@el).data("activity-id", activity.id)
if activity.action == "message" && activity.user_id == Kandan.Helpers.Users.currentUser().id
if activity.action == "message" && activity.user.id == Kandan.Helpers.Users.currentUser().id
$(@el).addClass("current_user")


if activity.id == undefined
$(@el).attr("id", "activity-c#{activity.cid}")
else
Expand Down

0 comments on commit dad5070

Please sign in to comment.