Files
zulip/zephyr/static/js/dom_access.js
Tim Abbott 0c89972c54 Do zephyr=>message rename for local variables in dom_access.js.
(imported from commit f6160f56730301c9e8e00e5edf79914d42eceeaf)
2012-10-10 10:24:02 -04:00

30 lines
723 B
JavaScript

function get_next_visible(message_row) {
if (message_row === undefined)
return [];
return message_row.nextAll('.zephyr_row:first');
}
function get_prev_visible(message_row) {
if (message_row === undefined)
return [];
return message_row.prevAll('.zephyr_row:first');
}
function get_first_visible() {
return $('.focused_table .zephyr_row:first');
}
function get_last_visible() {
return $('.focused_table .zephyr_row:last');
}
function get_id(message_row) {
return message_row.attr('zid');
}
function get_message_row(message_id, table_name) {
if (table_name === undefined)
table_name = (narrowed ? 'zfilt' : 'zhome');
return $('#' + table_name + message_id);
}