mirror of
https://github.com/moodle/moodle.git
synced 2025-04-28 03:44:24 +02:00
MDL-20841 temporary fix for buggy YUI 2.8.0r4, dummy callback prevents error in js
This commit is contained in:
parent
bf62f18738
commit
c32547b39e
@ -5,6 +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();
|
||||
var callback = {}; //the callback is mandatory in 2.8.0r4 because there is a bug hen checking xdr attribute
|
||||
var callback = {}; //the callback is mandatory in 2.8.0r4 because there is a bug when checking xdr attribute
|
||||
YAHOO.util.Connect.asyncRequest('GET',wwwroot+'/login/environment.php?sesskey='+sesskey+'&flashversion='+flashversion.major+'.'+flashversion.minor+'.'+flashversion.release, callback);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user