From 39db8bf5d5af1908fd9a1627dca5f7f35e2b4f94 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Tue, 6 Nov 2012 13:16:45 -0500 Subject: [PATCH] Use symbolic name for constant (imported from commit cafb513c082b1ff1cf2169d90c3e4a77a9af5a9e) --- zephyr/static/js/zephyr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 25c2fe8e35..2ff8367f29 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -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); }}); }