summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-06 12:24:17 +0400
committerAndrew Dolgov <[email protected]>2013-02-06 12:24:17 +0400
commit35be65a1da408c7fe87c33c062d777c04a4b8a85 (patch)
treee0375fff8bd78cbf5f181fab72cf94ca3a5be9ed /js
parent38325ad6d181b276ecf851062be8cda1e58105b7 (diff)
remove zoomToArticle() and PTITLE bits
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index a950ec7a4..34548ea36 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()) {