diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-06-04 15:29:37 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-06-04 15:29:37 +0200 |
commit | 72afe3153cfaf0f8aaa0a4db115fea62959ff6d1 (patch) | |
tree | 0b51444abb8dbe4882af0d5597d56e9d90eeb8d8 /program/js/list.js | |
parent | 24e89eceed9694882ff943c4106519fab449705f (diff) |
Use <th> tags for table headers as suggested by the WCAG 2.0 Guidelines
Diffstat (limited to 'program/js/list.js')
-rw-r--r-- | program/js/list.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/js/list.js b/program/js/list.js index 837a8459d..cf6c3f011 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -199,7 +199,7 @@ init_header: function() if (this.fixed_header) { // copy (modified) fixed header back to the actual table $(this.list.tHead).replaceWith($(this.fixed_header).find('thead').clone()); - $(this.list.tHead).find('tr td').attr('style', '').find('a').attr('tabindex', '-1'); // remove fixed widths + $(this.list.tHead).find('th,td').attr('style', '').find('a').attr('tabindex', '-1'); // remove fixed widths } else if (!bw.touch && this.list.className.indexOf('fixedheader') >= 0) { this.init_fixed_header(); @@ -855,9 +855,9 @@ get_prev_row: function() get_first_row: function() { if (this.rowcount) { - var i, len, uid, rows = this.tbody.childNodes; + var i, uid, rows = this.tbody.childNodes; - for (i=0, len=rows.length-1; i<len; i++) + for (i=0; i<rows.length; i++) if (rows[i].id && (uid = this.get_row_uid(rows[i]))) return uid; } |