Rename add_to_tables -> add_to_table

It only adds to one table.

(imported from commit 7c106331527ceaa056b23214be3c981029c9c005)
This commit is contained in:
Keegan McAllister 2012-09-24 16:11:09 -04:00
parent ad0bed506a
commit 6ccf3818d6
1 changed files with 4 additions and 4 deletions

View File

@ -480,7 +480,7 @@ function do_narrow(description, filter_function) {
// Empty the filtered table right before we fill it again
$("#zfilt").empty();
add_to_tables(zephyr_array, 'zfilt', filter_function);
add_to_table(zephyr_array, 'zfilt', filter_function);
// Show the new set of messages.
$("#zfilt").addClass("focused_table");
@ -625,7 +625,7 @@ function same_sender(a, b) {
(a.sender_email === b.sender_email));
}
function add_to_tables(zephyrs, table_name, filter_function) {
function add_to_table(zephyrs, table_name, filter_function) {
var table = $('#' + table_name);
var prev = zephyr_dict[table.find('tr:last-child').attr('zid')];
@ -702,8 +702,8 @@ function add_zephyr_metadata(dummy, zephyr) {
function add_messages(zephyrs) {
$.each(zephyrs, add_zephyr_metadata);
add_to_tables(zephyrs, 'zhome', home_view);
add_to_tables(zephyrs, 'zfilt', current_view_predicate);
add_to_table(zephyrs, 'zhome', home_view);
add_to_table(zephyrs, 'zfilt', current_view_predicate);
}
$(function () {