From: Vlad Chernushevich Date: Thu, 20 Jun 2013 22:41:52 +0000 (+0200) Subject: Add comment to time_difference X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6314cb3b071efa6b147509c4a8960d2932dee72b;p=KiwiIRC.git Add comment to time_difference --- diff --git a/client/assets/src/views/panel.js b/client/assets/src/views/panel.js index af8d171..553f2d4 100644 --- a/client/assets/src/views/panel.js +++ b/client/assets/src/views/panel.js @@ -118,6 +118,7 @@ _kiwi.view.Panel = Backbone.View.extend({ template_vars = _.clone(msg); if (prev_msg) { + // Time difference between this message and the last (in minutes) time_difference = (template_vars.date.getTime() - prev_msg.date.getTime())/1000/60; if (prev_msg.nick === template_vars.nick && time_difference < 1) { template_vars.nick = '';