MDL-23648 adding resizing to iframe, this should finally solve IE issues when embeddi...
authorPetr Skoda <skodak@moodle.org>
Wed, 6 Oct 2010 16:52:54 +0000 (16:52 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 6 Oct 2010 16:52:54 +0000 (16:52 +0000)
lib/resourcelib.php

index 2600089..b3f6c23 100644 (file)
@@ -474,8 +474,9 @@ EOT;
   </object>
 </div>
 EOT;
-        $PAGE->requires->js_init_call('M.util.init_maximised_embed', array('resourceobject'), true);
     }
 
+    $PAGE->requires->js_init_call('M.util.init_maximised_embed', array('resourceobject'), true);
+
     return $code;
 }