[BUGFIX] Handle opacity for IE in prototype.js 31/34331/2
authorJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 20 Apr 2014 08:36:57 +0000 (10:36 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 19 Nov 2014 09:32:41 +0000 (10:32 +0100)
The new prototype.js sometimes returns a string as opacity value
instead of a float. This causes problems with the starting
animation for dragging an item, making it completely hidden during
dragging.
Forcing the result to be a float results in a correct opacity.

Resolves: #58053
Releases: 6.2, 6.1, 4.7, 4.5
Change-Id: I7811dec578f5e3222fd8fc95145c1e0cdbedb21f
Reviewed-on: http://review.typo3.org/34331
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/contrib/prototype/prototype.js

index f1f9c2d..64b9a3b 100644 (file)
@@ -3147,7 +3147,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
 
 
   function getOpacity(element) {
-    return Element.getStyle(element, 'opacity');
+    return parseFloat(Element.getStyle(element, 'opacity'));
   }
 
   function getOpacity_IE(element) {