|
@@ -11171,49 +11171,6 @@ define('select2/i18n/en',[],function () {
|
|
|
};
|
|
|
});
|
|
|
|
|
|
-define('select2/compat/matcher',[
|
|
|
-
|
|
|
-], function () {
|
|
|
- function oldMatcher (matcher) {
|
|
|
- function wrappedMatcher (params, data) {
|
|
|
- var match = $.extend(true, {}, data);
|
|
|
-
|
|
|
- if (params.term == null || $.trim(params.term) === '') {
|
|
|
- return match;
|
|
|
- }
|
|
|
-
|
|
|
- if (data.children) {
|
|
|
- for (var c = data.children.length - 1; c >= 0; c--) {
|
|
|
- var child = data.children[c];
|
|
|
-
|
|
|
- // Check if the child object matches
|
|
|
- // The old matcher returned a boolean true or false
|
|
|
- var doesMatch = matcher(params.term, child.text, child);
|
|
|
-
|
|
|
- // If the child didn't match, pop it off
|
|
|
- if (!doesMatch) {
|
|
|
- match.children.splice(c, 1);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (match.children.length > 0) {
|
|
|
- return match;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (matcher(params.term, data.text, data)) {
|
|
|
- return match;
|
|
|
- }
|
|
|
-
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- return wrappedMatcher;
|
|
|
- }
|
|
|
-
|
|
|
- return oldMatcher;
|
|
|
-});
|
|
|
-
|
|
|
define('select2/defaults',[
|
|
|
'jquery',
|
|
|
'./results',
|
|
@@ -11236,8 +11193,7 @@ define('select2/defaults',[
|
|
|
'./dropdown/hidePlaceholder',
|
|
|
'./dropdown/infiniteScroll',
|
|
|
|
|
|
- './i18n/en',
|
|
|
- './compat/matcher'
|
|
|
+ './i18n/en'
|
|
|
], function ($, ResultsList,
|
|
|
SingleSelection, MultipleSelection, Placeholder,
|
|
|
Utils, Translation,
|
|
@@ -11753,6 +11709,49 @@ define('select2/core',[
|
|
|
return Select2;
|
|
|
});
|
|
|
|
|
|
+define('select2/compat/matcher',[
|
|
|
+
|
|
|
+], function () {
|
|
|
+ function oldMatcher (matcher) {
|
|
|
+ function wrappedMatcher (params, data) {
|
|
|
+ var match = $.extend(true, {}, data);
|
|
|
+
|
|
|
+ if (params.term == null || $.trim(params.term) === '') {
|
|
|
+ return match;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (data.children) {
|
|
|
+ for (var c = data.children.length - 1; c >= 0; c--) {
|
|
|
+ var child = data.children[c];
|
|
|
+
|
|
|
+ // Check if the child object matches
|
|
|
+ // The old matcher returned a boolean true or false
|
|
|
+ var doesMatch = matcher(params.term, child.text, child);
|
|
|
+
|
|
|
+ // If the child didn't match, pop it off
|
|
|
+ if (!doesMatch) {
|
|
|
+ match.children.splice(c, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (match.children.length > 0) {
|
|
|
+ return match;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (matcher(params.term, data.text, data)) {
|
|
|
+ return match;
|
|
|
+ }
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ return wrappedMatcher;
|
|
|
+ }
|
|
|
+
|
|
|
+ return oldMatcher;
|
|
|
+});
|
|
|
+
|
|
|
define('jquery.select2',[
|
|
|
'jquery',
|
|
|
'select2/core'
|