|
|
@ -317,7 +317,6 @@ const Feeds = {
|
|
|
|
const feed = params.feed;
|
|
|
|
const feed = params.feed;
|
|
|
|
const is_cat = !!params.is_cat || false;
|
|
|
|
const is_cat = !!params.is_cat || false;
|
|
|
|
const offset = params.offset || 0;
|
|
|
|
const offset = params.offset || 0;
|
|
|
|
const viewfeed_debug = params.viewfeed_debug;
|
|
|
|
|
|
|
|
const append = params.append || false;
|
|
|
|
const append = params.append || false;
|
|
|
|
const method = params.method;
|
|
|
|
const method = params.method;
|
|
|
|
// this is used to quickly switch between feeds, sets active but xhr is on a timeout
|
|
|
|
// this is used to quickly switch between feeds, sets active but xhr is on a timeout
|
|
|
@ -373,13 +372,6 @@ const Feeds = {
|
|
|
|
|
|
|
|
|
|
|
|
this.setActive(feed, is_cat);
|
|
|
|
this.setActive(feed, is_cat);
|
|
|
|
|
|
|
|
|
|
|
|
if (viewfeed_debug) {
|
|
|
|
|
|
|
|
window.open("backend.php?" +
|
|
|
|
|
|
|
|
dojo.objectToQuery(
|
|
|
|
|
|
|
|
Object.assign({csrf_token: App.getInitParam("csrf_token")}, query)
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.clearTimeout(this._viewfeed_wait_timeout);
|
|
|
|
window.clearTimeout(this._viewfeed_wait_timeout);
|
|
|
|
this._viewfeed_wait_timeout = window.setTimeout(() => {
|
|
|
|
this._viewfeed_wait_timeout = window.setTimeout(() => {
|
|
|
|
xhrPost("backend.php", query, (transport) => {
|
|
|
|
xhrPost("backend.php", query, (transport) => {
|
|
|
|