From 4fbf922400f907ad8ff50f96aa2a5d914efa2cc2 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 16 Dec 2009 19:31:31 +0000 Subject: [PATCH] MDL-20841 remporary fix for buggy YUI 2.8.0r4, dummy callback prevents error in js --- lib/flashdetect/flashdetect.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/flashdetect/flashdetect.js b/lib/flashdetect/flashdetect.js index 672e9b4e93..141d4ab233 100644 --- a/lib/flashdetect/flashdetect.js +++ b/lib/flashdetect/flashdetect.js @@ -5,5 +5,6 @@ //WARNING: before to use this function you need to load lib/swfobject/swfobject.js + YUI: 'yahoo-min.js', 'event-min.js', 'connection-min.js' function setflashversiontosession (wwwroot, sesskey) { var flashversion = swfobject.getFlashPlayerVersion(); - YAHOO.util.Connect.asyncRequest('GET',wwwroot+'/login/environment.php?sesskey='+sesskey+'&flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release); + var callback = {}; //the callback is mandatory in 2.8.0r4 because there is a bug hen checking xdr attribute + YAHOO.util.Connect.asyncRequest('GET',wwwroot+'/login/environment.php?sesskey='+sesskey+'&flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release, callback); } \ No newline at end of file -- 2.39.5