alecpl
2009-05-30 32ca1f9fc8a78e092565b51cc97faa724bb4e6cf
program/js/list.js
@@ -515,8 +515,7 @@
    }
    else if (this.rows[n])
    {
      this.set_classname(this.rows[n].obj, 'selected', false);
      this.set_classname(this.rows[n].obj, 'unfocused', false);
      $(this.rows[n].obj).removeClass('selected').removeClass('unfocused');
    }
  }
@@ -626,6 +625,7 @@
  var keyCode = rcube_event.get_keycode(e);
  var mod_key = rcube_event.get_modifier(e);
  switch (keyCode)
  {
    case 40:
@@ -654,6 +654,9 @@
{
  switch (rcube_event.get_keycode(e))
  {
    case 27:
      if (this.drag_active)
   this.drag_mouse_up(e);
    case 40:
    case 38: 
    case 63233:
@@ -724,7 +727,7 @@
  
    if (!this.draglayer)
      this.draglayer = $('<div>').attr('id', 'rcmdraglayer').css({ position:'absolute', display:'none', 'z-index':2000 }).appendTo(document.body);
    // get subjects of selectedd messages
    var names = '';
    var c, i, node, subject, obj;
@@ -748,9 +751,12 @@
            if (((node = obj.childNodes[i].firstChild) && (node.nodeType==3 || node.nodeName=='A')) &&
              (this.subject_col < 0 || (this.subject_col >= 0 && this.subject_col == c)))
            {
              if (n == 0)
                this.drag_start_pos = $(node).offset();
         if (n == 0) {
           if (node.nodeType == 3)
        this.drag_start_pos = $(obj.childNodes[i]).offset();
      else
                  this.drag_start_pos = $(node).offset();
         }
              subject = node.nodeType==3 ? node.data : node.innerHTML;
         // remove leading spaces
         subject = subject.replace(/^\s+/i, '');