alecpl
2012-01-09 d741a96ecdde5a2b1a454e6b9a324350e7316525
- Fix error when calling remove_row() on non-existing row


1 files modified
8 ■■■■ changed files
program/js/list.js 8 ●●●● patch | view | raw | blame | history
program/js/list.js
@@ -182,8 +182,12 @@
 */
remove_row: function(uid, sel_next)
{
  if (this.rows[uid].obj)
    this.rows[uid].obj.style.display = 'none';
  var obj = this.rows[uid] ? this.rows[uid].obj : null;
  if (!obj)
    return;
  obj.style.display = 'none';
  if (sel_next)
    this.select_next();