alecpl
2009-05-31 52818559ce020e551addd125ac8382bdda020f46
program/js/list.js
@@ -530,6 +530,30 @@
/**
 * Invert selection
 */
invert_selection: function()
{
  if (!this.rows || !this.rows.length)
    return false;
  // remember old selection
  var select_before = this.selection.join(',');
  for (var n in this.rows)
    this.highlight_row(n, true);
  // trigger event if selection changed
  if (this.selection.join(',') != select_before)
    this.triggerEvent('select');
  this.focus();
  return true;
},
/**
 * Unselect selected row(s)
 */
clear_selection: function(id)