From e7aa60c7d2c83ce4105c48aa0d9b3dc2cd2e77bb Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Wed, 30 May 2012 23:39:26 +0100 Subject: [PATCH] [#77,view/timeline][xs]: use new summary function to product timeline text and use title attribute (if present) for heading. --- src/view-timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view-timeline.js b/src/view-timeline.js index 8c943ffd..18ad35ef 100644 --- a/src/view-timeline.js +++ b/src/view-timeline.js @@ -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); }