Permalink
Browse files

posted messages now get the current_user class

  • Loading branch information...
1 parent 8cee08f commit dad50706f62f5f56b14414178c3c7dfd2b86a900 @MichaelEvans MichaelEvans committed May 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/assets/javascripts/backbone/views/show_activity.js.coffee
View
3 app/assets/javascripts/backbone/views/show_activity.js.coffee
@@ -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

0 comments on commit dad5070

Please sign in to comment.