mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
only load 20 messages when pressing the load-link, fixed whitespace
This commit is contained in:
parent
5f81daed0a
commit
825b258d99
1 changed files with 3 additions and 3 deletions
|
@ -167,8 +167,8 @@ var chat = (function()
|
||||||
$("#chatcounter").text(0);
|
$("#chatcounter").text(0);
|
||||||
$("#chatloadmessages").click(function()
|
$("#chatloadmessages").click(function()
|
||||||
{
|
{
|
||||||
var start = Math.max(self.historyPointer - 100, 0);
|
var start = Math.max(self.historyPointer - 20, 0);
|
||||||
var end = self.historyPointer;
|
var end = self.historyPointer;
|
||||||
|
|
||||||
if(start == end) // nothing to load
|
if(start == end) // nothing to load
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue