Skip to content

Commit

Permalink
Fixes local activity times
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 13, 2012
1 parent 33e3fc0 commit 2f9ea7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/javascripts/backbone/views/chatbox.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class Kandan.Views.Chatbox extends Backbone.View
})

$chatbox.val("")
Kandan.Helpers.Channels.addActivity _.extend(activity.toJSON(), {cid: activity.cid, user: Kandan.Data.Users.currentUser()}), Kandan.Helpers.Activities.ACTIVE_STATE, true
Kandan.Helpers.Channels.addActivity(
_.extend(activity.toJSON(), {cid: activity.cid, user: Kandan.Data.Users.currentUser()}, created_at: new Date()),
Kandan.Helpers.Activities.ACTIVE_STATE,
true
)

activity.save({},{success: (model, response)->
$("#activity-c#{model.cid}").attr("id", "activity-#{model.get('id')}")
Expand Down

0 comments on commit 2f9ea7e

Please sign in to comment.