MDL-21400 finalising JS api - removing ->on_dom_ready (now bool param in js() and js_init_call()) and after_delay() (again int parameter) - the reason is it was adding unnecessary complexity and it is used in just a few places that will be eventually converted to the new js_init_call() anyway

This commit is contained in:
Petr Skoda
2010-02-06 14:45:17 +00:00
parent 60409fe103
commit 593f9b8703
12 changed files with 42 additions and 471 deletions
+1 -1
View File
@@ -110,7 +110,7 @@
$efile = get_file_url($filename, null, 'questionfile');
echo '<p><div class="boxaligncenter">' .
get_string('yourfileshoulddownload', 'question', $efile) . '</div></p>';
$PAGE->requires->js_function_call('document.location.replace', array($efile))->after_delay(1);
$PAGE->requires->js_function_call('document.location.replace', array($efile), false, 1);
}
echo $OUTPUT->continue_button(new moodle_url('edit.php', $thispageurl->params()));