<div id="headlines-toolbar" dojoType="dijit.layout.ContentPane" region="top">
</div>
- <div id="headlines-frame" dojoType="dijit.layout.ContentPane" region="center">
+ <div id="headlines-frame" dojoType="dijit.layout.ContentPane"
+ onscroll="headlines_scroll_handler(this)" region="center">
<div id="headlinesInnerContainer">
<div class="whiteBox"><?php echo __('Loading, please wait...') ?></div>
</div>
var ids = getSelectedArticleIds2();
- c.innerHTML = c.innerHTML + headlines.firstChild.nodeValue;
+ c.innerHTML = c.innerHTML + headlines_content.firstChild.nodeValue;
console.log("restore selected ids: " + ids);
}
}
-function headlines_scroll_handler() {
+function headlines_scroll_handler(e) {
try {
- var e = $("headlinesInnerContainer");
-
- var toolbar_form = document.forms["main_toolbar_form"];
-
-// console.log((e.scrollTop + e.offsetHeight) + " vs " + e.scrollHeight + " dis? " +
-// _infscroll_disable);
-
if (e.scrollTop + e.offsetHeight > e.scrollHeight - 100) {
if (!_infscroll_disable) {
viewNextFeedPage();