From ed8eebeecefa98e17c96084b72fe2cd923cc051d Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Thu, 23 Jan 2014 10:49:56 +0800 Subject: [PATCH] MDL-43247 Scorm: Fix for undefined js variable when popup is blocked. --- mod/scorm/view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/scorm/view.js b/mod/scorm/view.js index 8f7f32c2778..37016cf7f86 100644 --- a/mod/scorm/view.js +++ b/mod/scorm/view.js @@ -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); }