mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Add a "Load more messages" button
...which currently does nothing. (imported from commit 185b35c2bf651779bfcdba44524d1bcb8af74f27)
This commit is contained in:
parent
fa011c108c
commit
3dfed7b6a1
@ -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>
|
||||
|
||||
@ -481,6 +481,8 @@ function add_messages(data) {
|
||||
loading_spinner.stop();
|
||||
$('#loading_indicator').hide();
|
||||
loading_spinner = undefined;
|
||||
|
||||
$('#load_more').show();
|
||||
}
|
||||
|
||||
if (data.where === 'top') {
|
||||
|
||||
@ -55,6 +55,11 @@ ul#sidebar {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#load_more {
|
||||
margin-bottom: 35px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#application_area {
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user