mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-09 21:44:15 +00:00
relocate mentions preloading from local storage
This commit is contained in:
parent
727a4a7fd1
commit
059616e0ac
@ -449,8 +449,13 @@ function queryStart(board, query, resource, timeoutArgs, intervalTimeout, extra)
|
|||||||
pending: []
|
pending: []
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
for (i in extra)
|
if (extra) {
|
||||||
twister.res[req][i] = extra[i];
|
for (i in extra)
|
||||||
|
twister.res[req][i] = extra[i];
|
||||||
|
|
||||||
|
if (typeof extra.ready === 'function')
|
||||||
|
extra.ready(req, extra.readyReq);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
twister.res[req].board = board;
|
twister.res[req].board = board;
|
||||||
for (var i in twister.res[req].twists.cached)
|
for (var i in twister.res[req].twists.cached)
|
||||||
|
@ -135,11 +135,12 @@ function initMentionsCount() {
|
|||||||
lastTime: 0,
|
lastTime: 0,
|
||||||
lastTorrentId: -1,
|
lastTorrentId: -1,
|
||||||
lengthNew: 0,
|
lengthNew: 0,
|
||||||
|
ready: function (req) {
|
||||||
|
twister.mentions = twister.res[req];
|
||||||
|
loadMentionsFromStorage();
|
||||||
|
},
|
||||||
skidoo: function () {return false;}
|
skidoo: function () {return false;}
|
||||||
});
|
});
|
||||||
twister.mentions = twister.res[req];
|
|
||||||
|
|
||||||
loadMentionsFromStorage();
|
|
||||||
|
|
||||||
$.MAL.updateNewMentionsUI(twister.mentions.lengthNew);
|
$.MAL.updateNewMentionsUI(twister.mentions.lengthNew);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user