Fix suggestion list template

Convention collision.

// FREEBIE
This commit is contained in:
lilia 2015-09-04 18:44:33 -07:00
parent 98aed2975c
commit 1427369bd0
2 changed files with 3 additions and 3 deletions

View file

@ -118,7 +118,7 @@
{{> avatar }}
<div class='contact-details'> {{> contact_name_and_number }} </div>
</script>
<script type='text/x-tmpl-mustache' id='conversation_preview'>
<script type='text/x-tmpl-mustache' id='conversation-preview'>
{{> avatar }}
<div class='contact-details'>
{{> contact_name_and_number }}

View file

@ -21,7 +21,7 @@
Whisper.ConversationListItemView = Whisper.View.extend({
tagName: 'div',
className: 'conversation-list-item contact',
template: Whisper.View.Templates.conversation_preview,
templateName: 'conversation-preview',
events: {
'click': 'select'
},
@ -40,7 +40,7 @@
render: function() {
this.$el.html(
Mustache.render(this.template, {
Mustache.render(_.result(this,'template', ''), {
title: this.model.getTitle(),
last_message: this.model.get('lastMessage'),
last_message_timestamp: moment(this.model.get('timestamp')).format('MMM D'),