1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 22:26:00 +00:00

add net-alert icon

This commit is contained in:
Andrew Dolgov
2013-01-14 14:16:55 +04:00
parent eb161344c2
commit 6effae6dd8
5 changed files with 102 additions and 4 deletions

View File

@@ -210,7 +210,8 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
__('Could not update headlines (invalid object received - see error console for details)') +
"</div>");
} else {
notify_error("Error communicating with server.");
//notify_error("Error communicating with server.");
Element.show("net-alert");
}
_infscroll_request_sent = 0;
@@ -315,11 +316,13 @@ function article_callback2(transport, id) {
// return;
// }
} else {
} else if (transport.responseText) {
console.error("Invalid object received: " + transport.responseText);
render_article("<div class='whiteBox'>" +
__('Could not display article (invalid object received - see error console for details)') + "</div>");
} else {
Element.show("net-alert");
}
request_counters();