[#77,view/timeline][xs]: use new summary function to product timeline text and use title attribute (if present) for heading.
This commit is contained in:
parent
2a7807638b
commit
e7aa60c7d2
@ -86,8 +86,8 @@ my.Timeline = Backbone.View.extend({
|
||||
var tlEntry = {
|
||||
"startDate": moment(start).toDate(),
|
||||
"endDate": end,
|
||||
"headline": String(doc.get(self.model.fields.models[0].id)),
|
||||
"text": ''
|
||||
"headline": String(doc.get('title') || ''),
|
||||
"text": doc.summary()
|
||||
};
|
||||
out.timeline.date.push(tlEntry);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user