remove zoomToArticle() and PTITLE bits

This commit is contained in:
Andrew Dolgov 2013-02-06 12:24:17 +04:00
parent 38325ad6d1
commit 35be65a1da
2 changed files with 0 additions and 58 deletions

View file

@ -2902,9 +2902,6 @@
$title_escaped = htmlspecialchars($line['title']); $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\">" . $rv['content'] .= "<div id=\"PTITLE-FULL-$id\" style=\"display : none\">" .
strip_tags($line['title']) . "</div>"; strip_tags($line['title']) . "</div>";

View file

@ -1368,61 +1368,6 @@ function getArticleUnderPointer() {
return post_under_pointer; 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) { function scrollArticle(offset) {
try { try {
if (!isCdmMode()) { if (!isCdmMode()) {