MDL-43247 Scorm: Fix for undefined js variable when popup is blocked.

This commit is contained in:
Damyon Wiese 2014-01-23 10:49:56 +08:00
parent 6baeabc140
commit ed8eebeece

View File

@ -59,6 +59,7 @@ M.mod_scormform.init = function(Y) {
// this shouldn't happen as the pop-up here is launched on user action but good to make sure.
setTimeout(function() {
if (!winobj) {
var scormintro = Y.one('#intro');
scormintro.setHTML(M.str.scorm.popupsblocked);
}}, 800);
}