From: Andrew Dolgov Date: Mon, 14 Jan 2013 10:16:55 +0000 (+0400) Subject: add net-alert icon X-Git-Tag: 1.7.0~55 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=6effae6dd8709230b91c3bed10d4eae476ef2f48 add net-alert icon --- diff --git a/images/alert.png b/images/alert.png new file mode 100644 index 00000000..9687c4cf Binary files /dev/null and b/images/alert.png differ diff --git a/images/alert.svg b/images/alert.svg new file mode 100644 index 00000000..237f66ca --- /dev/null +++ b/images/alert.svg @@ -0,0 +1,87 @@ + + + + + + + + + + image/svg+xml + + + + + + + + ! + + diff --git a/index.php b/index.php index 24ab0912..f07ee056 100644 --- a/index.php +++ b/index.php @@ -114,6 +114,10 @@ "); } 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("
" + __('Could not display article (invalid object received - see error console for details)') + "
"); + } else { + Element.show("net-alert"); } request_counters();