MDL-43247 Scorm: Fix for undefined js variable when popup is blocked.
authorDamyon Wiese <damyon@moodle.com>
Thu, 23 Jan 2014 02:49:56 +0000 (10:49 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 23 Jan 2014 02:49:56 +0000 (10:49 +0800)
mod/scorm/view.js

index 8f7f32c..37016cf 100644 (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);
     }