only load 20 messages when pressing the load-link, fixed whitespace
This commit is contained in:
parent
5f81daed0a
commit
825b258d99
|
@ -167,9 +167,9 @@ var chat = (function()
|
|||
$("#chatcounter").text(0);
|
||||
$("#chatloadmessages").click(function()
|
||||
{
|
||||
var start = Math.max(self.historyPointer - 100, 0);
|
||||
var end = self.historyPointer;
|
||||
|
||||
var start = Math.max(self.historyPointer - 20, 0);
|
||||
var end = self.historyPointer;
|
||||
|
||||
if(start == end) // nothing to load
|
||||
return;
|
||||
if(start == 0) // reached the top
|
||||
|
|
Loading…
Reference in New Issue