alecpl
2010-11-30 489ffbde732bb0560e4b553bc97aa8b831b97d8f
program/js/list.js
@@ -214,12 +214,16 @@
{
  var id;
  this.focused = true;
  for (var n in this.selection) {
    id = this.selection[n];
    if (this.rows[id] && this.rows[id].obj) {
      $(this.rows[id].obj).addClass('selected').removeClass('unfocused');
    }
  }
  // Un-focus already focused elements
  $('*:focus', window).blur();
  if (e || (e = window.event))
    rcube_event.cancel(e);
@@ -1151,7 +1155,7 @@
              subject = $(node).text();
             // remove leading spaces
             subject = subject.replace(/^\s+/i, '');
              subject = $.trim(subject);
              // truncate line to 50 characters
              subject = (subject.length > 50 ? subject.substring(0, 50) + '...' : subject);