diff --git a/src/js/select2/data/ajax.js b/src/js/select2/data/ajax.js index 3ad4e4ec..c2cc8d6a 100644 --- a/src/js/select2/data/ajax.js +++ b/src/js/select2/data/ajax.js @@ -18,9 +18,9 @@ define([ AjaxAdapter.prototype._applyDefaults = function (options) { var defaults = { data: function (params) { - return { + return $.extend({}, params, { q: params.term - }; + }); }, transport: function (params, success, failure) { var $request = $.ajax(params);