Fix load_old_messages being called with NaN argument.

(imported from commit 32cb17c98b81a40861f3d825e17a687575f35542)
This commit is contained in:
Tim Abbott 2012-12-04 14:04:36 -05:00
parent ec0683cd86
commit 386e9eeb22
1 changed files with 3 additions and 0 deletions

View File

@ -759,6 +759,9 @@ function load_more_messages() {
load_more_enabled = false;
table = narrow.active() ? "zfilt" : "zhome";
oldest_message_id = rows.id(rows.get_table(table).find("tr[zid]:first"));
if (isNaN(oldest_message_id)) {
oldest_message_id = selected_message_id;
}
load_old_messages(oldest_message_id, batch_size, 0,
function (messages) {
ui.hide_load_more_messages_spinner();