From: Andrew Dolgov Date: Wed, 6 Feb 2013 08:24:17 +0000 (+0400) Subject: remove zoomToArticle() and PTITLE bits X-Git-Tag: 1.7.0~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=35be65a1da408c7fe87c33c062d777c04a4b8a85;p=tt-rss.git remove zoomToArticle() and PTITLE bits --- diff --git a/include/functions.php b/include/functions.php index b2d93acd..4e5b8e39 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2902,9 +2902,6 @@ $title_escaped = htmlspecialchars($line['title']); - $rv['content'] .= "
" . - truncate_string(strip_tags($line['title']), 15) . "
"; - $rv['content'] .= "
" . strip_tags($line['title']) . "
"; diff --git a/js/viewfeed.js b/js/viewfeed.js index a950ec7a..34548ea3 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1368,61 +1368,6 @@ function getArticleUnderPointer() { return post_under_pointer; } -function zoomToArticle(event, id) { - try { - var cached_article = cache_get("article: " + id); - - if (dijit.byId("ATSTRTIP-" + id)) - dijit.byId("ATSTRTIP-" + id).destroyRecursive(); - - if (cached_article) { - //closeArticlePanel(); - - var article_pane = new dijit.layout.ContentPane({ - title: __("Loading...") , content: cached_article, - style: 'padding : 0px;', - id: 'ATAB-' + id, - closable: true }); - - if ($("PTITLE-" + id)) - article_pane.attr('title', $("PTITLE-" + id).innerHTML); - - } else { - - var query = "?op=rpc&method=getArticles&ids=" + param_escape(id); - - notify_progress("Loading, please wait...", true); - - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function(transport) { - notify(''); - - var reply = JSON.parse(transport.responseText); - - if (reply) { - //closeArticlePanel(); - - var content = reply[0]['content']; - - var article_pane = new dijit.layout.ContentPane({ - title: "article-" + id , content: content, - style: 'padding : 0px;', - id: 'ATAB-' + id, - closable: true }); - - if ($("PTITLE-" + id)) - article_pane.attr('title', $("PTITLE-" + id).innerHTML); - } - - } }); - } - - } catch (e) { - exception_error("zoomToArticle", e); - } -} - function scrollArticle(offset) { try { if (!isCdmMode()) {