MDL-55417 forms: Keep the JS for autocomplete in the template
[moodle.git] / lib / form / autocomplete.php
index 5d695ea..876cb5e 100644 (file)
@@ -209,10 +209,6 @@ class MoodleQuickForm_autocomplete extends MoodleQuickForm_select {
         global $PAGE;
 
         $this->_generateId();
-        $id = $this->getAttribute('id');
-        $PAGE->requires->js_call_amd('core/form-autocomplete', 'enhance', $params = array('#' . $id, $this->tags, $this->ajax,
-            $this->placeholder, $this->casesensitive, $this->showsuggestions, $this->noselectionstring));
-
         $context = parent::export_for_template($output);
         $context['tags'] = $this->tags;
         $context['ajax'] = $this->ajax;