summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-06-02 15:46:14 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-06-02 15:46:14 +0000
commit03da3ea6ff13903deea76b551b2817f32494fd5b (patch)
tree03befa4b180a7c2122cfcea0115a2180c582b610 /roundcubemail/program
parente5f55cedf1e083741e9139703fa411d2357de16d (diff)
Fix list events used in drag&drop functionality (#1485890)
git-svn-id: https://svn.roundcube.net/trunk@2592 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js8
-rw-r--r--roundcubemail/program/js/list.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 4f12e808a..9cc3c1d73 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -164,8 +164,8 @@ function rcube_webmail()
this.message_list.addEventListener('keypress', function(o){ p.msglist_keypress(o); });
this.message_list.addEventListener('select', function(o){ p.msglist_select(o); });
this.message_list.addEventListener('dragstart', function(o){ p.drag_start(o); });
- this.message_list.addEventListener('dragmove', function(o, e){ p.drag_move(e); });
- this.message_list.addEventListener('dragend', function(o, e){ p.drag_end(e); });
+ this.message_list.addEventListener('dragmove', function(e){ p.drag_move(e); });
+ this.message_list.addEventListener('dragend', function(e){ p.drag_end(e); });
document.onmouseup = function(e){ return p.doc_mouse_up(e); };
this.message_list.init();
@@ -280,8 +280,8 @@ function rcube_webmail()
this.contact_list.addEventListener('keypress', function(o){ p.contactlist_keypress(o); });
this.contact_list.addEventListener('select', function(o){ p.contactlist_select(o); });
this.contact_list.addEventListener('dragstart', function(o){ p.drag_start(o); });
- this.contact_list.addEventListener('dragmove', function(o, e){ p.drag_move(e); });
- this.contact_list.addEventListener('dragend', function(o, e){ p.drag_end(e); });
+ this.contact_list.addEventListener('dragmove', function(e){ p.drag_move(e); });
+ this.contact_list.addEventListener('dragend', function(e){ p.drag_end(e); });
this.contact_list.init();
if (this.env.cid)
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index 51889fa30..aa34546f4 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/program/js/list.js
@@ -805,7 +805,7 @@ drag_mouse_move: function(e)
{
var pos = rcube_event.get_mouse_pos(e);
this.draglayer.css({ left:(pos.x+20)+'px', top:(pos.y-5 + (bw.ie ? document.documentElement.scrollTop : 0))+'px' });
- this.triggerEvent('dragmove', e);
+ this.triggerEvent('dragmove', e?e:window.event);
}
this.drag_start = false;