Add a "Load more messages" button

...which currently does nothing.

(imported from commit 185b35c2bf651779bfcdba44524d1bcb8af74f27)
This commit is contained in:
Keegan McAllister 2012-10-19 15:59:12 -04:00
parent fa011c108c
commit 3dfed7b6a1
3 changed files with 9 additions and 1 deletions

View File

@ -31,10 +31,11 @@
<div class="row">
<div class="span9">
<div class="message_list" id="main_div">
<div id="top_whitespace"></div>
<button type="button" class="btn btn-large btn-block" id="load_more">Load more messages</button>
<table id="loading_indicator">
<tr><td id="loading_spinner"></td><td>Loading...</td></tr>
</table>
<div id="top_whitespace"></div>
<table class="message_table focused_table" id="zhome">
<tbody>
</tbody>

View File

@ -481,6 +481,8 @@ function add_messages(data) {
loading_spinner.stop();
$('#loading_indicator').hide();
loading_spinner = undefined;
$('#load_more').show();
}
if (data.where === 'top') {

View File

@ -55,6 +55,11 @@ ul#sidebar {
margin-top: 5px;
}
#load_more {
margin-bottom: 35px;
display: none;
}
#application_area {
}