MDL-21400 finalising JS api - removing ->on_dom_ready (now bool param in js() and...
[moodle.git] / tag / coursetagslib.php
index 5887ff9..3a1db1c 100644 (file)
@@ -269,7 +269,7 @@ function coursetag_get_jscript_links($coursetagslinks) {
 
     if (!empty($coursetagslinks)) {
         foreach ($coursetagslinks as $a) {
-            $PAGE->requires->js_function_call('add_tag_footer_link', array('coursetagslinks', $a['title'], $a['onclick'], $a['text']))->on_dom_ready();
+            $PAGE->requires->js_function_call('add_tag_footer_link', array('coursetagslinks', $a['title'], $a['onclick'], $a['text']), true);
         }
     }