From e62899f204532bcc89ae93c4cdb4023d72e1c839 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 15 Jan 2015 16:06:00 +0000 Subject: [PATCH] Correct the cursor after the drag item re-enabled by mouseup event --- phpgwapi/js/egw_action/egw_action_dragdrop.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/egw_action/egw_action_dragdrop.js b/phpgwapi/js/egw_action/egw_action_dragdrop.js index 01e9f79696..74c0cbc1d4 100644 --- a/phpgwapi/js/egw_action/egw_action_dragdrop.js +++ b/phpgwapi/js/egw_action/egw_action_dragdrop.js @@ -302,6 +302,8 @@ function egwDragActionImplementation() }, mouseup: function (){ $j(node).draggable("enable"); + // Set cursor back to auto. Seems FF can't handle cursor reversion + $j('body').css({cursor:'auto'}); } }); } @@ -368,8 +370,7 @@ function egwDragActionImplementation() egw.lang("Ctrl") : egw.lang("Command ⌘"); egw.message(egw.lang('Hold [%1] key to select text eg. to copy it', key), 'info'); } - // Set cursor back to auto. Seems FF can't handle cursor reversion - $j('body').css({cursor:'auto'}); + // Invalid target return true; }