diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/Article.js | 7 | ||||
-rwxr-xr-x | js/Headlines.js | 39 |
2 files changed, 0 insertions, 46 deletions
diff --git a/js/Article.js b/js/Article.js index 587243a01..a075e321f 100644 --- a/js/Article.js +++ b/js/Article.js @@ -175,11 +175,6 @@ const Article = { return comments; }, - formatOriginallyFrom: function(hl) { - return hl.orig_feed ? `<span> - ${__('Originally from:')} <a target="_blank" rel="noopener noreferrer" href="${App.escapeHtml(hl.orig_feed[1])}">${hl.orig_feed[0]}</a> - </span>` : ""; - }, unpack: function(row) { if (row.hasAttribute("data-content")) { console.log("unpacking: " + row.id); @@ -220,7 +215,6 @@ const Article = { if (hl) { const comments = this.formatComments(hl); - const originally_from = this.formatOriginallyFrom(hl); const article = `<div class="post post-${hl.id}" data-article-id="${hl.id}"> <div class="header"> @@ -243,7 +237,6 @@ const Article = { </div> <div id="POSTNOTE-${hl.id}">${hl.note}</div> <div class="content" lang="${hl.lang ? hl.lang : 'en'}"> - ${originally_from} ${hl.content} ${hl.enclosures} </div> diff --git a/js/Headlines.js b/js/Headlines.js index 03e3f506a..d0c352aed 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -420,7 +420,6 @@ const Headlines = { row_class += App.getInitParam("cdm_expanded") ? " expanded" : " expandable"; const comments = Article.formatComments(hl); - const originally_from = Article.formatOriginallyFrom(hl); row = `<div class="cdm ${row_class} ${Article.getScoreClass(hl.score)}" id="RROW-${hl.id}" @@ -483,7 +482,6 @@ const Headlines = { </div> <div class="right"> - ${originally_from} ${hl.buttons} </div> </div> @@ -1085,43 +1083,6 @@ const Headlines = { } } }, - /* not exposed in the UI by default, deprecated - ? */ - archiveSelection: function () { - const rows = Headlines.getSelected(); - - if (rows.length == 0) { - alert(__("No articles selected.")); - return; - } - - const fn = Feeds.getName(Feeds.getActive(), Feeds.activeIsCat()); - let str; - let op; - - if (Feeds.getActive() != 0) { - str = ngettext("Archive %d selected article in %s?", "Archive %d selected articles in %s?", rows.length); - op = "archive"; - } else { - str = ngettext("Move %d archived article back?", "Move %d archived articles back?", rows.length); - str += " " + __("Please note that unstarred articles might get purged on next feed update."); - - op = "unarchive"; - } - - str = str.replace("%d", rows.length); - str = str.replace("%s", fn); - - if (App.getInitParam("confirm_feed_catchup") && !confirm(str)) { - return; - } - - const query = {op: "rpc", method: op, ids: rows.toString()}; - - xhrPost("backend.php", query, (transport) => { - App.handleRpcJson(transport); - Feeds.reloadCurrent(); - }); - }, catchupSelection: function () { const rows = Headlines.getSelected(); |