Aleksander Machniak
2013-11-22 3ab616c7425afed0e4462f89d3bde1723ac471e5
Fix rowcount when list element contains bot only tr/li elements but also text nodes
1 files modified
5 ■■■■■ changed files
program/js/list.js 5 ●●●●● patch | view | raw | blame | history
program/js/list.js
@@ -91,8 +91,7 @@
    var r, len, rows = this.tbody.childNodes;
    for (r=0, len=rows.length; r<len; r++) {
      this.init_row(rows[r]);
      this.rowcount++;
      this.rowcount += this.init_row(rows[r]) ? 1 : 0;
    }
    this.init_header();
@@ -148,6 +147,8 @@
    this.row_init(this.rows[uid]);  // legacy support
    this.triggerEvent('initrow', this.rows[uid]);
    return true;
  }
},