summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-28 11:03:29 +0400
committerAndrew Dolgov <[email protected]>2012-10-28 11:03:29 +0400
commit09c816cac4d1a083093ac12f7e0b68c578eb9669 (patch)
tree062bf9b98b4568a238711567191b3f61759a3c48 /js
parent9a0e28f4dab1c80425152b24a05f01b9d95a982b (diff)
remove unexpanded CDM ajax loading
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index ff09c0a5a..c55b5ccd9 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1333,52 +1333,6 @@ function cdmExpandArticle(id) {
if (!Element.visible(elem)) {
Element.show(elem);
Element.hide("CEXC-" + id);
-
- if ($("CWRAP-" + id).innerHTML == "") {
-
- $("FUPDPIC-" + id).src = "images/indicator_tiny.gif";
-
- $("CWRAP-" + id).innerHTML = "<div class=\"insensitive\">" +
- __("Loading, please wait...") + "</div>";
-
- var query = "?op=rpc&method=cdmGetArticle&id=" + param_escape(id);
-
- var neighbor_ids = getRelativePostIds(id);
-
- /* only request uncached articles */
- var cids_to_request = [];
-
- for (var i = 0; i < neighbor_ids.length; i++) {
- if (cids_requested.indexOf(neighbor_ids[i]) == -1)
- if ($("CWRAP-" + neighbor_ids[i]).innerHTML == "") {
- cids_to_request.push(neighbor_ids[i]);
- cids_requested.push(neighbor_ids[i]);
- }
- }
-
- console.log("additional ids: " + cids_to_request.toString());
-
- query = query + "&cids=" + cids_to_request.toString();
-
- console.log(query);
-
- new Ajax.Request("backend.php", {
- parameters: query,
- onComplete: function(transport) {
-
- $("FUPDPIC-" + id).src = 'images/blank_icon.gif';
-
- handle_rpc_json(transport);
-
- var reply = JSON.parse(transport.responseText);
-
- reply.each(function(article) {
- $("CWRAP-" + article['id']).innerHTML = article['content'];
- cids_requested.remove(article['id']);
- });
- }});
-
- }
}
var new_offset = $("RROW-" + id).offsetTop;