From: Andrew Dolgov Date: Mon, 13 Sep 2010 10:39:16 +0000 (+0400) Subject: add loading overlay X-Git-Tag: 1.5.0~435^2~1^2~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c7a5c8a5a2703f78bf36dc3f2c5cc2f8fc8ec713;p=tt-rss.git add loading overlay --- diff --git a/digest.css b/digest.css index 45d502e3..d96cc496 100644 --- a/digest.css +++ b/digest.css @@ -269,3 +269,22 @@ a:hover { #headlines ul#headlines-content span.tags a:hover { color : #659a4c; } + +#overlay { + background : white; + left : 0; + top : 0; + height : 100%; + width : 100%; + z-index : 100; + position : absolute; + text-align : center; +} + +#overlay_inner { + margin : 1em; +} + +#overlay img { + vertical-align : middle; +} diff --git a/digest.js b/digest.js index ae7e870a..b788535f 100644 --- a/digest.js +++ b/digest.js @@ -259,6 +259,8 @@ function viewfeed(feed_id, offset, replace, no_effects, no_indicator, callback) new Ajax.Request("backend.php", { parameters: query, onComplete: function(transport) { + Element.hide("overlay"); + fatal_error_check(transport); parse_headlines(transport, replace, no_effects); set_selected_feed(feed_id); diff --git a/digest.php b/digest.php index 2b7f9180..43eb0412 100644 --- a/digest.php +++ b/digest.php @@ -50,6 +50,20 @@ +
+
+ + + + +
+
+