From 3dfed7b6a1bca4e3b5620b39cee972764975da35 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 19 Oct 2012 15:59:12 -0400 Subject: [PATCH] Add a "Load more messages" button ...which currently does nothing. (imported from commit 185b35c2bf651779bfcdba44524d1bcb8af74f27) --- templates/zephyr/home.html | 3 ++- zephyr/static/js/zephyr.js | 2 ++ zephyr/static/styles/zephyr.css | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/zephyr/home.html b/templates/zephyr/home.html index 779c9c70fe..51af93feb1 100644 --- a/templates/zephyr/home.html +++ b/templates/zephyr/home.html @@ -31,10 +31,11 @@
+
+
Loading...
-
diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 839844dcee..f294192e2d 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -481,6 +481,8 @@ function add_messages(data) { loading_spinner.stop(); $('#loading_indicator').hide(); loading_spinner = undefined; + + $('#load_more').show(); } if (data.where === 'top') { diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index a4f33634c2..5278ddb045 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -55,6 +55,11 @@ ul#sidebar { margin-top: 5px; } +#load_more { + margin-bottom: 35px; + display: none; +} + #application_area { }