Use symbolic name for constant

(imported from commit cafb513c082b1ff1cf2169d90c3e4a77a9af5a9e)
This commit is contained in:
Zev Benjamin 2012-11-06 13:16:45 -05:00
parent 9875164908
commit 39db8bf5d5

View File

@ -605,10 +605,12 @@ $(function () {
get_updates();
// backfill more messages after the user is idle
var backfill_batch_size = 1000;
$(document).idle({'idle': 1000*10,
'onIdle': function () {
var first_id = message_array[0].id;
load_old_messages(first_id - 1, "older", 1000);
load_old_messages(first_id - 1, "older",
backfill_batch_size);
}});
}