Files
zulip/zephyr/static/js/dom_access.js
Keegan McAllister 2f749afc8d Tweak JSLint options
(imported from commit 7e7582a48228b879ea29c2a27eb22e46e093f9dc)
2012-10-03 18:26:00 -04:00

34 lines
837 B
JavaScript

/*jslint browser: true, devel: true, sloppy: true,
plusplus: true, white: true */
/*global $: false, narrowed: false */
function get_next_visible(zephyr_row) {
if (zephyr_row === undefined)
return [];
return zephyr_row.nextAll('.zephyr_row:first');
}
function get_prev_visible(zephyr_row) {
if (zephyr_row === undefined)
return [];
return zephyr_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(zephyr_row) {
return zephyr_row.attr('zid');
}
function get_zephyr_row(zephyr_id, table_name) {
if (table_name === undefined)
table_name = (narrowed ? 'zfilt' : 'zhome');
return $('#' + table_name + zephyr_id);
}