[#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 = {
|
var tlEntry = {
|
||||||
"startDate": moment(start).toDate(),
|
"startDate": moment(start).toDate(),
|
||||||
"endDate": end,
|
"endDate": end,
|
||||||
"headline": String(doc.get(self.model.fields.models[0].id)),
|
"headline": String(doc.get('title') || ''),
|
||||||
"text": ''
|
"text": doc.summary()
|
||||||
};
|
};
|
||||||
out.timeline.date.push(tlEntry);
|
out.timeline.date.push(tlEntry);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user