add tooltips to stream faces [ci skip]
This commit is contained in:
parent
a1cf279226
commit
f09da04c8a
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<% _.each(people, function(person) { %>
|
||||
<a href="/people/<%= person.id %>" title="<%= person.name %>">
|
||||
<img class="avatar" src="<%= person.avatar.small %>" />
|
||||
<a href="/people/<%= person.id %>">
|
||||
<img class="avatar" src="<%= person.avatar.small %>" title="<%= person.name %>"/>
|
||||
</a>
|
||||
<% }) %>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ app.views.StreamFaces = app.views.Base.extend({
|
|||
|
||||
template_name : "#stream-faces-template",
|
||||
|
||||
className : "stream-faces",
|
||||
|
||||
tooltipSelector : ".avatar",
|
||||
|
||||
initialize : function(){
|
||||
this.updatePeople()
|
||||
this.collection.bind("add", this.updatePeople, this)
|
||||
|
|
|
|||
Loading…
Reference in a new issue