var _feed_cur_page = 0;
var _infscroll_disable = 0;
+var _infscroll_request_sent = 0;
function viewCategory(cat) {
active_feed_is_cat = true;
_infscroll_disable = 0;
}
+ if (page_offset != 0 && !subop) {
+ var date = new Date();
+ var timestamp = Math.round(date.getTime() / 1000);
+
+ debug("<b>" + _infscroll_request_sent + " : " + timestamp + "</b>");
+
+ if (_infscroll_request_sent && _infscroll_request_sent + 30 > timestamp) {
+ debug("infscroll request in progress, aborting");
+ return;
+ }
+
+ _infscroll_request_sent = timestamp;
+ }
+
enableHotkeys();
closeInfoBox();
}
new Ajax.Request(query, {
- asynchronous: page_offset == 0,
onComplete: function(transport) {
headlines_callback2(transport, feed, is_cat, page_offset);
} });
}
_feed_cur_page = feed_cur_page;
-
+ _infscroll_request_sent = 0;
+
notify("");
} catch (e) {
exception_error("headlines_callback2", e);