From 6effae6dd8709230b91c3bed10d4eae476ef2f48 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 14 Jan 2013 14:16:55 +0400 Subject: [PATCH] add net-alert icon --- images/alert.png | Bin 0 -> 340 bytes images/alert.svg | 87 +++++++++++++++++++++++++++++++++++++++++++++++ index.php | 4 +++ js/tt-rss.js | 8 +++-- js/viewfeed.js | 7 ++-- 5 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 images/alert.png create mode 100644 images/alert.svg diff --git a/images/alert.png b/images/alert.png new file mode 100644 index 0000000000000000000000000000000000000000..9687c4cf1b4875d79083c04564549456185f4733 GIT binary patch literal 340 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~i!3HGN^yhQ|DVB6cUq=Rpjs4tz5?O(K&H|6f zVg?5OEg;M&)-1gqC@59p8c`CQpH@cl=2UiKT%xh@!_fUw5cCtD?K!l9(Eno+`3k1-%8he%?@!& z{J(cO>VA@Ak+9Y|6SFC*|ID0)rFGW@Bz~7N=IXt+bbkG3U1Ex~@sgP6UOA7{tcaYJIBLn$wLMW=W!Fb;87NH-5HP h@Lr?0?f=Ao-2T>VSFc|!S_||WgQu&X%Q~loCID3Td#(Tg literal 0 HcmV?d00001 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(); -- 2.39.2