query = query + "&m=" + param_escape(method);
}
- if (current_top_article_id && offset > 0) {
- query = query + "&topid=" + param_escape(current_top_article_id);
+ if (offset > 0) {
+ var firstRow = $$('div[id*="RROW-"]').first();
+
+ if (firstRow) {
+ query = query + "&topid=" + param_escape(parseInt(firstRow.id.replace("RROW-", "")));
+ }
}
if (!background) {
var cids_requested = [];
var loaded_article_ids = [];
var _last_headlines_update = 0;
-var current_top_article_id = false;
var has_storage = 'sessionStorage' in window && window['sessionStorage'] !== null;
if (infscroll_req == false) {
loaded_article_ids = [];
- current_top_article_id = false;
dijit.byId("headlines-frame").attr('content',
reply['headlines']['content']);
}
});
- if (loaded_article_ids.size() > 0) {
- current_top_article_id = parseInt(loaded_article_ids[0].replace("RROW-", ""));
- }
-
var hsp = $("headlines-spacer");
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
dijit.byId('headlines-frame').domNode.appendChild(hsp);