summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-08-13 11:39:10 +0000
committeralecpl <alec@alec.pl>2008-08-13 11:39:10 +0000
commit7c2d30b2e106a23fe2ab295f7dc2e628e4d828bb (patch)
tree6e152ba20c6b1361923c202d4aa2bfc85c688ede /skins
parent522007bdb26b737cb4a7066618a2e877211be9d0 (diff)
#1485170: fixed splitter under Firefox3
Diffstat (limited to 'skins')
-rw-r--r--skins/default/splitter.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/skins/default/splitter.js b/skins/default/splitter.js
index 0b02fb5e5..31862ce84 100644
--- a/skins/default/splitter.js
+++ b/skins/default/splitter.js
@@ -40,7 +40,7 @@ function rcube_splitter(attrib)
rcube_event.add_listener({element: this.elm, event:'mousedown', object:this, method:'onDragStart'});
rcube_event.add_listener({element: window, event:'resize', object:this, method:'onResize'});
- // read saved position form cookie
+ // read saved position from cookie
var cookie = bw.get_cookie(this.id);
if (cookie)
{
@@ -191,6 +191,11 @@ function rcube_splitter(attrib)
exp.setYear(exp.getFullYear() + 1);
bw.set_cookie(this.id, 'pos='+this.pos, exp);
+ // Firefox 3 will initiate its built in drag-and-drop on the divider
+ // widget if it already has focus when a second drag event starts
+ this.p1.focus();
+ this.p1.blur();
+
return bw.safari ? true : rcube_event.cancel(e);
};