summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-06 16:51:58 +0000
committeralecpl <alec@alec.pl>2010-09-06 16:51:58 +0000
commit3e15dbfa588cfa0ee11a2b514c12fa6a8938cee9 (patch)
tree847771f4787c24c98c22e19dc20a01cbbe8c415f
parent272a7e5a24b9f9cb2748809f90be247d4f171465 (diff)
- Fix attachment upload popup disapears on double click in Firefox (#1486930)
-rw-r--r--CHANGELOG1
-rw-r--r--skins/default/functions.js8
2 files changed, 5 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index fe99086f8..a9f5b8181 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -18,6 +18,7 @@ CHANGELOG RoundCube Webmail
- Fix timezone string in sent mail (#1486961)
- Show disabled checkboxes for protected folders instead of dots (#1485498)
- Added fieldsets in Identity form, added 'identity_form' hook
+- Fix attachment upload popup disapear on double click in Firefox (#1486930)
RELEASE 0.4
-----------
diff --git a/skins/default/functions.js b/skins/default/functions.js
index 2112c340c..74b2e5f93 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_mouseup: function(evt, p)
+body_mousedown: 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_mouseup', event:'mouseup' });
+ rcube_event.add_listener({ object:rcmail_ui, method:'body_mousedown', event:'mousedown' });
rcube_event.add_listener({ object:rcmail_ui, method:'body_keypress', event:'keypress' });
$('iframe').load(iframe_events)
- .contents().mouseup(function(e){rcmail_ui.body_mouseup(e)});
+ .contents().mouseup(function(e){rcmail_ui.body_mousedown(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_mouseup', event:'mouseup' });
+ rcube_event.add_listener({ element: doc, object:rcmail_ui, method:'body_mousedown', event:'mousedown' });
}