From 6cfda15a5f93a56019422b91bcb886088ddf76bb Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 28 May 2013 17:08:45 +0000 Subject: [PATCH] If a programmer calls dock on the splitter while it's already docked, just ignore it instead of breaking --- phpgwapi/js/jquery/splitter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpgwapi/js/jquery/splitter.js b/phpgwapi/js/jquery/splitter.js index 25fae08aa7..62aec8beae 100644 --- a/phpgwapi/js/jquery/splitter.js +++ b/phpgwapi/js/jquery/splitter.js @@ -271,6 +271,9 @@ var splitterCounter = 0; .bind("dock"+opts.eventNamespace, function(){ var pw = A[0][opts.pxSplit]; 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; var x={}; x[opts.origin] = opts.dockPane==A? 0 :