From df145c8064a43218def12ed05d1398977f042744 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Apr 2021 10:43:34 +0300 Subject: * cdm: render enclosures into content element * deprecate cdm.intermediate * implement lazy-load for rendered enclosures * simplify pack/unpack logic for articles --- js/Headlines.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'js/Headlines.js') diff --git a/js/Headlines.js b/js/Headlines.js index 134bdad6d..d01993838 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -490,7 +490,9 @@ const Headlines = { id="RROW-${hl.id}" data-article-id="${hl.id}" data-orig-feed-id="${hl.feed_id}" + data-is-packed="1" data-content="${App.escapeHtml(hl.content)}" + data-rendered-enclosures="${App.escapeHtml(Article.renderEnclosures(hl.enclosures))}" data-score="${hl.score}" data-article-title="${App.escapeHtml(hl.title)}" onmouseover="Article.mouseIn(${hl.id})" @@ -537,9 +539,10 @@ const Headlines = { ${__("Loading, please wait...")} -
- ${Article.renderEnclosures(hl.enclosures)} -
+ + +
+