if (feed_cur_page == 0) {
if (headlines) {
- $("headlinesInnerContainer").innerHTML = headlines_content.firstChild.nodeValue;
- $("headlines-toolbar").innerHTML = headlines_toolbar.firstChild.nodeValue;
+ dijit.byId("headlines-frame").attr('content',
+ headlines_content.firstChild.nodeValue);
- dojo.parser.parse("headlines-toolbar");
- //dijit.byId("main").resize();
+ dijit.byId("headlines-toolbar").attr('content',
+ headlines_toolbar.firstChild.nodeValue);
var cache_prefix = "";
} else {
console.warn("headlines_callback: returned no data");
- $('headlinesInnerContainer').innerHTML = "<div class='whiteBox'>" + __('Could not update headlines (missing XML data)') + "</div>";
+ dijit.byId("headlines-frame").attr('content',
+ "<div class='whiteBox'>" +
+ __('Could not update headlines (missing XML data)') + "</div>");
}
} else {
if (headlines) {
if (headlines_count > 0) {
console.log("adding some more headlines...");
-
- c = $("headlinesInnerContainer");
+ var c = dijit.byId("headlines-frame");
var ids = getSelectedArticleIds2();
- c.innerHTML = c.innerHTML + headlines_content.firstChild.nodeValue;
+ c.attr('content', c.attr('content') +
+ headlines_content.firstChild.nodeValue);
console.log("restore selected ids: " + ids);
} else {
console.warn("headlines_callback: returned no XML object");
- $('headlinesInnerContainer').innerHTML = "<div class='whiteBox'>" + __('Could not update headlines (missing XML object)') + "</div>";
+ dijit.byId("headlines-frame").attr('content', "<div class='whiteBox'>" +
+ __('Could not update headlines (missing XML object)') + "</div>");
}
var rv = [];
- $$("#headlinesInnerContainer > div[id*=RROW][class*=Selected]").each(
+ $$("#headlines-frame > div[id*=RROW][class*=Selected]").each(
function(child) {
rv.push(child.id.replace("RROW-", ""));
});
function getLoadedArticleIds() {
var rv = [];
- var children = $$("#headlinesInnerContainer > div[id*=RROW-]");
+ var children = $$("#headlines-frame > div[id*=RROW-]");
children.each(function(child) {
rv.push(child.id.replace("RROW-", ""));
function selectArticles(mode) {
try {
- var children = $$("#headlinesInnerContainer > div[id*=RROW]");
+ var children = $$("#headlines-frame > div[id*=RROW]");
children.each(function(child) {
var id = child.id.replace("RROW-", "");
try {
- var ctr = $("headlinesInnerContainer");
+ var ctr = $("headlines-frame");
if (!ctr) return;
ci.scrollTop += offset;
}
} else {
- var hi = $("headlinesInnerContainer");
+ var hi = $("headlines-frame");
if (hi) {
hi.scrollTop += offset;
}