From 3a56659954e01db937128073d967dfc9148ce009 Mon Sep 17 00:00:00 2001 From: aljordan82 Date: Fri, 23 Oct 2015 10:12:00 -0400 Subject: [PATCH] Update draganddrop.js --- draganddrop.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/draganddrop.js b/draganddrop.js index 3af2b85..8b75e67 100755 --- a/draganddrop.js +++ b/draganddrop.js @@ -266,6 +266,12 @@ } if (valid) { + // Hacks for IE to get the valid icon for cursor. + e.dataTransfer.effectAllowed = 'copyMove'; + if (e.dataTransfer.dropEffect === 'none') { + e.dataTransfer.dropEffect = e.ctrlKey ? 'copy' : 'move'; + } + element.bind('dragover', onDragOver); element.bind('dragenter', onDragEnter); element.bind('dragleave', onDragLeave); @@ -273,6 +279,11 @@ element.addClass(dragEnterClass); } else { + // Hacks for IE to get the invalid icon for cursor. + if (e.dataTransfer.dropEffect === 'none') { + e.dataTransfer.effectAllowed = 'none'; + } + element.bind('dragover', preventNativeDnD); element.bind('dragenter', preventNativeDnD); element.bind('dragleave', preventNativeDnD);