MDL-59527 autocomplete: Don't fetch ajax twice
authorDamyon Wiese <damyon@moodle.com>
Thu, 20 Jul 2017 01:52:05 +0000 (09:52 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 20 Jul 2017 01:52:05 +0000 (09:52 +0800)
lib/amd/build/form-autocomplete.min.js
lib/amd/src/form-autocomplete.js

index afbfa30..5e301a0 100644 (file)
Binary files a/lib/amd/build/form-autocomplete.min.js and b/lib/amd/build/form-autocomplete.min.js differ
index 43f37e1..b43080a 100644 (file)
@@ -818,8 +818,6 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
                         };
                         // Trigger an ajax update after the text field value changes.
                         inputElement.on("input", throttledHandler);
-                        var arrowElement = $(document.getElementById(state.downArrowId));
-                        arrowElement.on("click", handler);
                     });
                 }
                 // Show the current values in the selection list.