From 12416bb1288cd520a4e8331f94b5170bec975cb4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 10 Apr 2013 10:18:09 -0400 Subject: [PATCH] add_messages: Remove unused opts argument. (imported from commit 5805348c39ec0db54b6bc6939ce2d85b4896500c) --- zephyr/static/js/subs.js | 2 +- zephyr/static/js/zephyr.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zephyr/static/js/subs.js b/zephyr/static/js/subs.js index f1026357bc..ba1f99d26f 100644 --- a/zephyr/static/js/subs.js +++ b/zephyr/static/js/subs.js @@ -162,7 +162,7 @@ function stream_home_view_clicked(e) { var saved_ypos = window.scrollY; // Recreate the home_msg_list with the newly filtered all_msg_list - add_messages(all_msg_list.all(), home_msg_list, {append_to_table: true, update_unread_counts: false}); + add_messages(all_msg_list.all(), home_msg_list); // Ensure we're still at the same scroll position window.scrollTo(0, saved_ypos); diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 092f42560e..7a10669b01 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -591,7 +591,7 @@ function add_messages_helper(messages, msg_list, predicate) { return top_messages.length > 0; } -function add_messages(messages, msg_list, opts) { +function add_messages(messages, msg_list) { var prepended = false; if (!messages) return; @@ -827,7 +827,7 @@ function load_old_messages(opts) { // the all_msg_list as well, as the home_msg_list is reconstructed // from all_msg_list. if (opts.msg_list === home_msg_list) { - add_messages(messages, all_msg_list, {append_to_table: false}); + add_messages(messages, all_msg_list); } if (messages.length !== 0 && !opts.cont_will_add_messages) {