]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove zoomToArticle() and PTITLE bits
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 6 Feb 2013 08:24:17 +0000 (12:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 6 Feb 2013 08:24:17 +0000 (12:24 +0400)
include/functions.php
js/viewfeed.js

index b2d93acde5b4826ae8dd0bcde3d1b5de06d199da..4e5b8e39f983c6a2a14aeb6ee97e5b2803846b1d 100644 (file)
 
                        $title_escaped = htmlspecialchars($line['title']);
 
-                       $rv['content'] .= "<div id=\"PTITLE-$id\" style=\"display : none\">" .
-                               truncate_string(strip_tags($line['title']), 15) . "</div>";
-
                        $rv['content'] .= "<div id=\"PTITLE-FULL-$id\" style=\"display : none\">" .
                                strip_tags($line['title']) . "</div>";
 
index a950ec7a4b7d03d613f272fe1d5bd6d5ef9df1a5..34548ea36eaed2d27b5a8ae8ba7df155b3245951 100644 (file)
@@ -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()) {