lib/jschat/http/public/javascripts/app/protocol/change.js in jschat-0.1.5 vs lib/jschat/http/public/javascripts/app/protocol/change.js in jschat-0.2.0

- old
+ new

@@ -1,12 +1,12 @@ var Change = { - user: function(user) { + user: function(user, time) { if (user['name']) { change = $H(user['name']).toArray()[0]; var old = change[0], new_value = change[1]; if (new_value !== PageHelper.nickname()) { - Display.add_message("#{old} is now known as #{new_value}".interpolate({ old: old, new_value: new_value }), 'server', user['time']); + Display.add_message("#{old} is now known as #{new_value}".interpolate({ old: old, new_value: new_value }), 'server', time); } $$('#names li').each(function(element) { if (element.innerHTML == old) element.innerHTML = new_value; }); }