From cae37dab260b80cd3ca046becf14be2ea2dc0930 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 21 Jul 2011 10:50:33 +0000 Subject: [PATCH] if there is only a single event in the action, buffer it into/with a window.setTimeout function call, and wait for the trigger to execute and clean up as it does with multiple actions on a target --- phpgwapi/js/egw_action/egw_action_dragdrop.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_action/egw_action_dragdrop.js b/phpgwapi/js/egw_action/egw_action_dragdrop.js index 48ee6a31b0..cf5129dbd5 100644 --- a/phpgwapi/js/egw_action/egw_action_dragdrop.js +++ b/phpgwapi/js/egw_action/egw_action_dragdrop.js @@ -337,7 +337,9 @@ function egwDropActionImplementation() if (cnt == 1) { - lnk.actionObj.execute(selected, _context); + window.setTimeout(function() { + lnk.actionObj.execute(selected, _context); + },0); } if (cnt > 1)