mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 07:31:28 +00:00
code cleanups, make feedlist_callback async
This commit is contained in:
12
feedlist.js
12
feedlist.js
@@ -10,10 +10,18 @@ function viewCategory(cat) {
|
||||
|
||||
function feedlist_callback() {
|
||||
if (xmlhttp.readyState == 4) {
|
||||
debug("feedlist_callback");
|
||||
feedlist_callback2(xmlhttp);
|
||||
}
|
||||
}
|
||||
|
||||
function feedlist_callback2(transport) {
|
||||
try {
|
||||
debug("feedlist_callback2");
|
||||
var f = document.getElementById("feeds-frame");
|
||||
f.innerHTML = xmlhttp.responseText;
|
||||
f.innerHTML = transport.responseText;
|
||||
feedlist_init();
|
||||
} catch (e) {
|
||||
exception_error("feedlist_callback2", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user