]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove small_article_preview
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 10:34:17 +0000 (14:34 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 10:34:17 +0000 (14:34 +0400)
cdm.css
classes/rpc.php
index.php
js/viewfeed.js

diff --git a/cdm.css b/cdm.css
index 13f88dd4e1273e17c29ea1b6a384a7d921ae3c6f..9893f43fca5f10509f7ec23d85203b8c16936baf 100644 (file)
--- a/cdm.css
+++ b/cdm.css
@@ -192,23 +192,4 @@ div.cdm.expanded div.cdmHeader a.title, div.cdm.active div.cdmHeader a.title {
        font-size : 13px;
 }
 
-div#small_article_preview {
-       width : 300px;
-       max-height : 350px;
-       overflow : hidden;
-       border : 1px solid #c0c0c0;
-       background : white;
-       position : absolute;
-       box-shadow : 2px 2px 4px #c0c0c0;
-       z-index : 2;
-}
 
-div#small_article_preview div.content {
-       padding : 5px;
-       font-size : 12px;
-       color : gray;
-}
-
-div#small_article_preview div.content img {
-       max-width : 290px;
-}
index 36d7083a598ce8ffbdad4293bd4359df5c8e15a9..f0218f91e5e6240e44ba6085bba4a5132705bba2 100644 (file)
@@ -834,32 +834,5 @@ class RPC extends Handler_Protected {
                }
        }
 
-       function cdmArticlePreview() {
-               $id = db_escape_string($this->link, $_REQUEST['id']);
-
-               $result = db_query($this->link, "SELECT link,
-                       ttrss_entries.title, content, feed_url
-                       FROM
-                       ttrss_entries, ttrss_user_entries
-                               LEFT JOIN ttrss_feeds ON (ttrss_user_entries.feed_id = ttrss_feeds.id)
-                       WHERE ref_id = '$id' AND ref_id = ttrss_entries.id AND
-                               ttrss_user_entries.owner_uid = ". $_SESSION["uid"]);
-
-               if (db_num_rows($result) != 0) {
-                       $link = db_fetch_result($result, 0, "link");
-                       $title = db_fetch_result($result, 0, "title");
-                       $feed_url = db_fetch_result($result, 0, "feed_url");
-
-                       $content = sanitize($this->link,
-                               db_fetch_result($result, 0, "content"), false, false, $feed_url);
-
-                       print "<div class='content'>".$content."</content>";
-
-               } else {
-                       print "Article not found.";
-               }
-
-       }
-
 }
 ?>
index 3b905d1b1ecb1e8d4bcba480229ea7cd149a83d9..e390edffdd69a29e1d72f4201045cc6e22e827de 100644 (file)
--- a/index.php
+++ b/index.php
        </div>
 </div>
 
-<div style="display : none" onclick="Element.hide(this)" id="small_article_preview"></div>
-
 <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
 <div id="cmdline" style="display : none"></div>
 <div id="headlines-tmp" style="display : none"></div>
index c24dec62eb3d9ad8a22e81665037784022e78eb1..e3d73b89bb82c41812b41110edd3a1effba572b2 100644 (file)
@@ -13,8 +13,6 @@ var catchup_timeout_id = false;
 var cids_requested = [];
 var loaded_article_ids = [];
 
-var _post_preview_timeout = false;
-
 var has_storage = 'sessionStorage' in window && window['sessionStorage'] !== null;
 
 function headlines_callback2(transport, offset, background, infscroll_req) {
@@ -1153,53 +1151,10 @@ function getActiveArticleId() {
 
 function postMouseIn(e, id) {
        post_under_pointer = id;
-
-       if (_post_preview_timeout) window.clearTimeout(_post_preview_timeout);
-
-       /* if (!isCdmMode() || !getInitParam("cdm_expanded")) {
-               _post_preview_timeout = window.setTimeout(function() {
-                       displaySmallArticlePreview(e, id);
-               }, 1000);
-       } */
-}
-
-function displaySmallArticlePreview(e, id) {
-       try {
-               var query = "?op=rpc&method=cdmarticlepreview&id=" + id;
-
-               new Ajax.Request("backend.php", {
-                       parameters: query,
-                       onComplete: function(transport) {
-                               cexc = $("CEXC-" + id);
-                               preview = $("small_article_preview");
-                               row = $("RROW-" + id);
-                               ctr = $("headlines-frame");
-
-                               if (id != getActiveArticleId() && (!isCdmMode() || (cexc && Element.visible(cexc))) && row && preview) {
-                                       preview.innerHTML = transport.responseText;
-                                       new Effect.Appear(preview, {duration:0.2});
-
-                                       preview.setStyle({
-                                               left: (e.clientX + 20) + 'px',
-                                               top: (row.offsetTop + row.offsetHeight*2 + 20 - ctr.scrollTop) + 'px' });
-
-                               }
-
-                       } });
-
-
-       } catch (e) {
-               exception_error("displaySmallArticlePreview", e);
-       }
 }
 
 function postMouseOut(id) {
        post_under_pointer = false;
-
-       if (_post_preview_timeout) window.clearTimeout(_post_preview_timeout);
-
-       if (Element.visible("small_article_preview"))
-               Element.hide("small_article_preview");
 }
 
 function unpackVisibleHeadlines() {