summaryrefslogtreecommitdiff
path: root/skins/default/splitter.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/default/splitter.js')
-rw-r--r--skins/default/splitter.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/skins/default/splitter.js b/skins/default/splitter.js
index e11f9fea5..59ebb5151 100644
--- a/skins/default/splitter.js
+++ b/skins/default/splitter.js
@@ -15,6 +15,7 @@ function rcube_splitter(attrib)
this.pos = attrib.start ? attrib.start * 1 : 0;
this.relative = attrib.relative ? true : false;
this.drag_active = false;
+ this.callback = attrib.callback;
this.init = function()
{
@@ -168,6 +169,9 @@ function rcube_splitter(attrib)
this.set_cookie();
+ if (typeof this.callback == 'function')
+ this.callback(this);
+
return bw.safari ? true : rcube_event.cancel(e);
};