if (!c) {
c = document.getElementById("headlinesInnerContainer");
}
+
+ var ids = getSelectedArticleIds2();
c.innerHTML = c.innerHTML + headlines.firstChild.nodeValue;
+
+ debug("restore selected ids: " + ids);
+
+ for (var i = 0; i < ids.length; i++) {
+ markHeadline(ids[i]);
+ }
+
} else {
debug("no new headlines received");
}
cleanSelected("headlinesList");
var crow = document.getElementById("RROW-" + id);
+
+ if (!crow) return;
+
var article_is_unread = crow.className.match("Unread");
crow.className = crow.className.replace("Unread", "");
var query = "backend.php?op=rpc&subop=catchupSelected&ids=" +
param_escape(ids_to_mark.toString()) + "&cmode=0";
- xmlhttp_rpc.open("GET", query, true);
- xmlhttp_rpc.onreadystatechange=catchup_callback;
- xmlhttp_rpc.send(null);
-
+ new Ajax.Request(query, {
+ onComplete: function(transport) {
+ catchup_callback2(transport);
+ } });
+
}
}
exception_error("catchupRelativeToArticle", e);
}
}
+
+function cdmExpandArticle(a_id) {
+ try {
+ var id = 'CICD-' + a_id;
+
+ Effect.Appear(id, {duration : 0.5,
+ beforeStart: function(effect) {
+ var h_id = 'CICH-' + a_id;
+ var h_elem = document.getElementById(h_id);
+ if (h_elem) { h_elem.style.display = "none"; }
+
+ toggleUnread(a_id, 0);
+ }});
+
+
+ } catch (e) {
+ exception_error("appearBlockElementF", e);
+ }
+
+}
+
+