only load 20 messages when pressing the load-link, fixed whitespace

This commit is contained in:
mluto 2013-01-07 17:43:03 +01:00
parent 5f81daed0a
commit 825b258d99
1 changed files with 3 additions and 3 deletions

View File

@ -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