mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
experimental fix for the infamous mail auto-reading feature reported by Mark Waters
This commit is contained in:
@@ -40,7 +40,7 @@ function loadMoreHeadlines() {
|
|||||||
offset = num_all;
|
offset = num_all;
|
||||||
}
|
}
|
||||||
|
|
||||||
viewfeed(getActiveFeedId(), '', activeFeedIsCat(), offset);
|
viewfeed(getActiveFeedId(), '', activeFeedIsCat(), offset, false, true);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("viewNextFeedPage", e);
|
exception_error("viewNextFeedPage", e);
|
||||||
@@ -48,7 +48,7 @@ function loadMoreHeadlines() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function viewfeed(feed, subop, is_cat, offset, background) {
|
function viewfeed(feed, subop, is_cat, offset, background, infscrol_req) {
|
||||||
try {
|
try {
|
||||||
if (is_cat == undefined)
|
if (is_cat == undefined)
|
||||||
is_cat = false;
|
is_cat = false;
|
||||||
@@ -58,6 +58,7 @@ function viewfeed(feed, subop, is_cat, offset, background) {
|
|||||||
if (subop == undefined) subop = '';
|
if (subop == undefined) subop = '';
|
||||||
if (offset == undefined) offset = 0;
|
if (offset == undefined) offset = 0;
|
||||||
if (background == undefined) background = false;
|
if (background == undefined) background = false;
|
||||||
|
if (infscrol_req == undefined) infscrol_req = false;
|
||||||
|
|
||||||
last_requested_article = 0;
|
last_requested_article = 0;
|
||||||
|
|
||||||
@@ -179,7 +180,7 @@ function viewfeed(feed, subop, is_cat, offset, background) {
|
|||||||
parameters: query,
|
parameters: query,
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
setFeedExpandoIcon(feed, is_cat, 'images/blank_icon.gif');
|
setFeedExpandoIcon(feed, is_cat, 'images/blank_icon.gif');
|
||||||
headlines_callback2(transport, offset, background);
|
headlines_callback2(transport, offset, background, infscrol_req);
|
||||||
} });
|
} });
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ var cids_requested = [];
|
|||||||
|
|
||||||
var has_storage = 'sessionStorage' in window && window['sessionStorage'] !== null;
|
var has_storage = 'sessionStorage' in window && window['sessionStorage'] !== null;
|
||||||
|
|
||||||
function headlines_callback2(transport, offset, background) {
|
function headlines_callback2(transport, offset, background, infscroll_req) {
|
||||||
try {
|
try {
|
||||||
handle_rpc_json(transport);
|
handle_rpc_json(transport);
|
||||||
|
|
||||||
loading_set_progress(25);
|
loading_set_progress(25);
|
||||||
|
|
||||||
console.log("headlines_callback2 [offset=" + offset + "] B:" + background);
|
console.log("headlines_callback2 [offset=" + offset + "] B:" + background + " I:" + infscroll_req);
|
||||||
|
|
||||||
var is_cat = false;
|
var is_cat = false;
|
||||||
var feed_id = false;
|
var feed_id = false;
|
||||||
@@ -54,7 +54,7 @@ function headlines_callback2(transport, offset, background) {
|
|||||||
setActiveFeedId(feed_id, is_cat);
|
setActiveFeedId(feed_id, is_cat);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (offset == 0) {
|
if (offset == 0 && infscroll_req == false) {
|
||||||
$("headlines-frame").scrollTop = 0;
|
$("headlines-frame").scrollTop = 0;
|
||||||
}
|
}
|
||||||
} catch (e) { };
|
} catch (e) { };
|
||||||
@@ -73,7 +73,7 @@ function headlines_callback2(transport, offset, background) {
|
|||||||
var articles = reply['articles'];
|
var articles = reply['articles'];
|
||||||
var runtime_info = reply['runtime-info'];
|
var runtime_info = reply['runtime-info'];
|
||||||
|
|
||||||
if (offset == 0) {
|
if (offset == 0 && infscroll_req == false) {
|
||||||
dijit.byId("headlines-frame").attr('content',
|
dijit.byId("headlines-frame").attr('content',
|
||||||
reply['headlines']['content']);
|
reply['headlines']['content']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user