add tooltips to stream faces [ci skip]

This commit is contained in:
danielgrippi 2012-01-08 17:43:58 -08:00
parent a1cf279226
commit f09da04c8a
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<% _.each(people, function(person) { %> <% _.each(people, function(person) { %>
<a href="/people/<%= person.id %>" title="<%= person.name %>"> <a href="/people/<%= person.id %>">
<img class="avatar" src="<%= person.avatar.small %>" /> <img class="avatar" src="<%= person.avatar.small %>" title="<%= person.name %>"/>
</a> </a>
<% }) %> <% }) %>

View file

@ -2,6 +2,10 @@ app.views.StreamFaces = app.views.Base.extend({
template_name : "#stream-faces-template", template_name : "#stream-faces-template",
className : "stream-faces",
tooltipSelector : ".avatar",
initialize : function(){ initialize : function(){
this.updatePeople() this.updatePeople()
this.collection.bind("add", this.updatePeople, this) this.collection.bind("add", this.updatePeople, this)