summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-07 18:05:38 +0000
committeralecpl <alec@alec.pl>2010-09-07 18:05:38 +0000
commitec581c106e51a46f4536caec397e2b34821db5de (patch)
tree6f73c1cd6fe36bdea629bc53dff43b9d96ad4d5d /skins
parentd37e1e25ff4aa4f96ea8c6c1f788f65c9ae4b218 (diff)
- Revert r3941 (#1486979)
Diffstat (limited to 'skins')
-rw-r--r--skins/default/functions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js
index 58814f2ae..873c7f710 100644
--- a/skins/default/functions.js
+++ b/skins/default/functions.js
@@ -211,7 +211,7 @@ save_listmenu: function()
rcmail.set_list_options(cols, sort, ord, thread == 'thread' ? 1 : 0);
},
-body_mousedown: function(evt, p)
+body_mouseup: function(evt, p)
{
var i, target = rcube_event.get_target(evt);
@@ -425,11 +425,11 @@ var rcmail_ui;
function rcube_init_mail_ui()
{
rcmail_ui = new rcube_mail_ui();
- rcube_event.add_listener({ object:rcmail_ui, method:'body_mousedown', event:'mousedown' });
+ rcube_event.add_listener({ object:rcmail_ui, method:'body_mouseup', event:'mouseup' });
rcube_event.add_listener({ object:rcmail_ui, method:'body_keydown', event:'keydown' });
$('iframe').load(iframe_events)
- .contents().mouseup(function(e){rcmail_ui.body_mousedown(e)});
+ .contents().mouseup(function(e){rcmail_ui.body_mouseup(e)});
if (rcmail.env.task == 'mail') {
rcmail.addEventListener('menu-open', 'open_listmenu', rcmail_ui);
@@ -448,6 +448,6 @@ function iframe_events()
{
// this==iframe
var doc = this.contentDocument ? this.contentDocument : this.contentWindow ? this.contentWindow.document : null;
- rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mousedown', event:'mousedown' });
+ rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mouseup', event:'mouseup' });
}