Skip to content

Commit dad5070

Browse files
committedMay 11, 2012
posted messages now get the current_user class
1 parent 8cee08f commit dad5070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎app/assets/javascripts/backbone/views/show_activity.js.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ class Kandan.Views.ShowActivity extends Backbone.View
1616
@compiledTemplate = Kandan.Helpers.Activities.buildFromMessageTemplate activity
1717

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

22+
2223
if activity.id == undefined
2324
$(@el).attr("id", "activity-c#{activity.cid}")
2425
else

0 commit comments

Comments
 (0)
Please sign in to comment.