Fix suggestion list template
Convention collision. // FREEBIE
This commit is contained in:
parent
98aed2975c
commit
1427369bd0
2 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@
|
||||||
{{> avatar }}
|
{{> avatar }}
|
||||||
<div class='contact-details'> {{> contact_name_and_number }} </div>
|
<div class='contact-details'> {{> contact_name_and_number }} </div>
|
||||||
</script>
|
</script>
|
||||||
<script type='text/x-tmpl-mustache' id='conversation_preview'>
|
<script type='text/x-tmpl-mustache' id='conversation-preview'>
|
||||||
{{> avatar }}
|
{{> avatar }}
|
||||||
<div class='contact-details'>
|
<div class='contact-details'>
|
||||||
{{> contact_name_and_number }}
|
{{> contact_name_and_number }}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
Whisper.ConversationListItemView = Whisper.View.extend({
|
Whisper.ConversationListItemView = Whisper.View.extend({
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
className: 'conversation-list-item contact',
|
className: 'conversation-list-item contact',
|
||||||
template: Whisper.View.Templates.conversation_preview,
|
templateName: 'conversation-preview',
|
||||||
events: {
|
events: {
|
||||||
'click': 'select'
|
'click': 'select'
|
||||||
},
|
},
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html(
|
this.$el.html(
|
||||||
Mustache.render(this.template, {
|
Mustache.render(_.result(this,'template', ''), {
|
||||||
title: this.model.getTitle(),
|
title: this.model.getTitle(),
|
||||||
last_message: this.model.get('lastMessage'),
|
last_message: this.model.get('lastMessage'),
|
||||||
last_message_timestamp: moment(this.model.get('timestamp')).format('MMM D'),
|
last_message_timestamp: moment(this.model.get('timestamp')).format('MMM D'),
|
||||||
|
|
Loading…
Reference in a new issue