MDL-21400 finalising JS api - removing ->on_dom_ready (now bool param in js() and...
[moodle.git] / mod / hotpot / view.php
index 9b1f8e5..cd84dec 100644 (file)
                 default:
                     $iframe_id = 'hotpot_iframe';
                     $PAGE->requires->js('/mod/hotpot/iframe.js');
-                    $PAGE->requires->js_function_call('set_iframe_height', array($iframe_id))->on_dom_ready();
+                    $PAGE->requires->js_function_call('set_iframe_height', array($iframe_id), true);
                     echo $OUTPUT->header();
                     if (!empty($available_msg)) {
                         echo $OUTPUT->notification($available_msg);