[#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:
Rufus Pollock 2012-05-30 23:39:26 +01:00
parent 2a7807638b
commit e7aa60c7d2

View File

@ -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);
}