=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js' --- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js 2015-12-15 22:34:23 +0000 +++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.js 2015-12-16 20:43:57 +0000 @@ -20,7 +20,7 @@ ** 007 SBI 20150901 Modifications to initialization order. ** 008 SBI 20151020 Increased logging buffer size. ** 009 SBI 20151215 Fixed to take into an account that for Chrome an element style object has only -** the "getter" access function. Changed to detect Chrome. +** the "getter" access function. Changed to detect Chrome, IE11 and IE12 (Edge). */ "use strict"; @@ -53,9 +53,11 @@ /** Browser detection flags. */ me.isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; - me.isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; + me.isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; me.isChromium = !!window.chrome; - me.isIe = !!window.ActiveXObject; + me.isIE11 = navigator.userAgent.indexOf("Trident") > -1 + || navigator.userAgent.indexOf("Edge") > -1; + me.isIe = !!window.ActiveXObject || me.isIE11; /** The default container element (if specified), or document.body. */ var container = null; === modified file 'src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.virtual_desktop.js' --- src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.virtual_desktop.js 2015-12-15 19:53:13 +0000 +++ src/com/goldencode/p2j/ui/client/gui/driver/web/res/p2j.virtual_desktop.js 2015-12-16 20:54:45 +0000 @@ -12,7 +12,7 @@ ** 001 SBI 20150906 The virtual desktop to create task bar and drop zones. ** 002 SBI 20151020 Fix for disabling old task icons. ** 003 SBI 20151215 Fixed to take into an account that for Chrome an element style object has only -** the "getter" access function. +** the "getter" access function, to check IE if drag is starting. */ "use strict"; @@ -922,9 +922,15 @@ */ function startDragging(event) { - event.dataTransfer.setData('text/plain',null); + if (!p2j.isIe) + { + event.dataTransfer.setData('text/plain', null); + } dragged = event.target; - event.target.style.opacity = DRAGGED_OPACITY; + p2j.setStyleForElement(event.target, + { + opacity : DRAGGED_OPACITY + }); } /** @@ -936,7 +942,10 @@ */ function dragEnded(event) { - event.target.style.opacity = 1; + p2j.setStyleForElement(event.target, + { + opacity : 1 + }); } /** @@ -952,7 +961,13 @@ /** * events fired on the drop targets */ - document.addEventListener("dragover", function(event) { event.preventDefault(); }, false); + document.addEventListener( + "dragover", + function(event) + { + event.stopPropagation(); + event.preventDefault(); + }, false); /** * The dragged task panel enters the drop zone