diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index c2cc8d6a..92b9e1dd 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -80,7 +80,9 @@ define([ callback(results); }, function () { - // TODO: Handle AJAX errors + self.trigger('results:message', { + message: 'errorLoading' + }); }); self._request = $request;