diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-24 06:58:19 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-24 06:58:19 +0000 |
| commit | 7a1fab99f8b4ba706995e052909a25579661f08f (patch) | |
| tree | 6ec8f4d970b211a84e0d2d93724e2508031f382c | |
| parent | 5224afd2a01e057e8bb2631b07b32498bd59684b (diff) | |
- Fix folder dragging in folder manager isn't working after jquery integration (#1485819)
git-svn-id: https://svn.roundcube.net/trunk@2420 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/list.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index 706daab58..17bf4cf3f 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -723,7 +723,7 @@ drag_mouse_move: function(e) 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; @@ -747,9 +747,12 @@ drag_mouse_move: function(e) 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, ''); |
