var elem = $("CICD-" + id);
if (elem && row) {
- var collapse = $$("div#RROW-" + id +
- " span[class='collapseBtn']")[0];
+ var collapse = row.select("span[class='collapseBtn']")[0];
Element.hide(elem);
Element.show("CEXC-" + id);
try {
console.log("cdmExpandArticle " + id);
- if (!$("RROW-" + id)) return false;
+ var row = $("RROW-" + id);
+
+ if (!row) return false;
var oldrow = $("RROW-" + getActiveArticleId());
selectArticles("none");
- var old_offset = $("RROW-" + id).offsetTop;
+ var old_offset = row.offsetTop;
if (getActiveArticleId() && elem && !getInitParam("cdm_expanded")) {
- var collapse = $$("div#RROW-" + getActiveArticleId() +
- " span[class='collapseBtn']")[0];
+ var collapse = oldrow.select("span[class='collapseBtn']")[0];
Element.hide(elem);
Element.show("CEXC-" + getActiveArticleId());
elem = $("CICD-" + id);
- var collapse = $$("div#RROW-" + id +
- " span[class='collapseBtn']")[0];
+ var collapse = row.select("span[class='collapseBtn']")[0];
var cencw = $("CENCW-" + id);
Element.show(collapse);
}
- var new_offset = $("RROW-" + id).offsetTop;
+ var new_offset = row.offsetTop;
if (old_offset > new_offset)
$("headlines-frame").scrollTop -= (old_offset-new_offset);
}
toggleSelected(id);
- $("RROW-" + id).addClassName("active");
+ row.addClassName("active");
PluginHost.run(PluginHost.HOOK_ARTICLE_EXPANDED, id);