forked from extern/egroupware
If a programmer calls dock on the splitter while it's already docked, just ignore it instead of breaking
This commit is contained in:
parent
25a6b2bda2
commit
6cfda15a5f
3
phpgwapi/js/jquery/splitter.js
vendored
3
phpgwapi/js/jquery/splitter.js
vendored
@ -271,6 +271,9 @@ var splitterCounter = 0;
|
|||||||
.bind("dock"+opts.eventNamespace, function(){
|
.bind("dock"+opts.eventNamespace, function(){
|
||||||
var pw = A[0][opts.pxSplit];
|
var pw = A[0][opts.pxSplit];
|
||||||
if ( !pw ) return;
|
if ( !pw ) return;
|
||||||
|
// Don't try to dock twice
|
||||||
|
if (bar.hasClass("splitter-bar-horizontal-docked") || bar.hasClass("splitter-bar-vertical-docked"))
|
||||||
|
return;
|
||||||
bar._pos = pw;
|
bar._pos = pw;
|
||||||
var x={};
|
var x={};
|
||||||
x[opts.origin] = opts.dockPane==A? 0 :
|
x[opts.origin] = opts.dockPane==A? 0 :
|
||||||
|
Loading…
Reference in New Issue
Block a user