Overhaul of the AMD integration
Now we do not have separate AMD builds, instead we use a UMD wrapper to support both AMD and CommonJS environments along with the browser. This has been tested with RequireJS and it correctly imports Select2 and hooks into jQuery. This means that all builds will include the Almond AMD loader, but this isn't that much of an issue when you consider the file sizes. The loader is namespaced so RequireJS and other AMD builders don't complain about `require` and `define` existing. This is also done so AMD loaders don't conflict, as Select2's AMD loader should operate independently of others. There are now two layers of wrappers that are applied to files, only one of which is used for the translation files. This allows us to only load in the internal Select2 modules once, and in general makes most things cleaner. These have also been pulled out into individual JS files instead of being stored in JSON files, allowing us to add comments and make things look readable. Because we use a few hacks, these files are heavily commented as well. This closes https://github.com/select2/select2/issues/2945. This closes https://github.com/select2/select2/issues/2946.
This commit is contained in:
parent
e8fd5a0352
commit
d1e8a6fdad
@ -1,2 +1,4 @@
|
|||||||
|
src/js/banner.*.js
|
||||||
|
src/js/wrapper.*.js
|
||||||
tests/vendor/*.js
|
tests/vendor/*.js
|
||||||
tests/helpers.js
|
tests/helpers.js
|
||||||
|
83
Gruntfile.js
83
Gruntfile.js
@ -1,10 +1,7 @@
|
|||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
// Full list of files that must be included by RequireJS
|
// Full list of files that must be included by RequireJS
|
||||||
includes = [
|
includes = [
|
||||||
'jquery.select2'
|
'jquery.select2',
|
||||||
];
|
|
||||||
|
|
||||||
amdIncludes = [
|
|
||||||
'almond'
|
'almond'
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -56,7 +53,7 @@ module.exports = function (grunt) {
|
|||||||
i18nPaths[name] = '../../' + name;
|
i18nPaths[name] = '../../' + name;
|
||||||
}
|
}
|
||||||
|
|
||||||
var minifiedBanner = '/!* Select2 <%= package.version %> | https://github.com/select2/select2/blob/master/LICENSE.md */';
|
var minifiedBanner = '/*! Select2 <%= package.version %> | https://github.com/select2/select2/blob/master/LICENSE.md */';
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
package: grunt.file.readJSON('package.json'),
|
package: grunt.file.readJSON('package.json'),
|
||||||
@ -65,6 +62,29 @@ module.exports = function (grunt) {
|
|||||||
docs: ['docs/_site']
|
docs: ['docs/_site']
|
||||||
},
|
},
|
||||||
|
|
||||||
|
concat: {
|
||||||
|
'dist': {
|
||||||
|
options: {
|
||||||
|
banner: grunt.file.read('src/js/wrapper.start.js'),
|
||||||
|
},
|
||||||
|
src: [
|
||||||
|
'dist/js/select2.js',
|
||||||
|
'src/js/wrapper.end.js'
|
||||||
|
],
|
||||||
|
dest: 'dist/js/select2.js'
|
||||||
|
},
|
||||||
|
'dist.full': {
|
||||||
|
options: {
|
||||||
|
banner: grunt.file.read('src/js/wrapper.start.js'),
|
||||||
|
},
|
||||||
|
src: [
|
||||||
|
'dist/js/select2.full.js',
|
||||||
|
'src/js/wrapper.end.js'
|
||||||
|
],
|
||||||
|
dest: 'dist/js/select2.full.js'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
connect: {
|
connect: {
|
||||||
tests: {
|
tests: {
|
||||||
options: {
|
options: {
|
||||||
@ -227,12 +247,16 @@ module.exports = function (grunt) {
|
|||||||
optimize: 'none',
|
optimize: 'none',
|
||||||
name: 'select2/core',
|
name: 'select2/core',
|
||||||
out: 'dist/js/select2.js',
|
out: 'dist/js/select2.js',
|
||||||
include: amdIncludes.concat(includes),
|
include: includes,
|
||||||
|
namespace: 'S2',
|
||||||
paths: {
|
paths: {
|
||||||
almond: '../../vendor/almond-0.2.9',
|
almond: '../../vendor/almond-0.2.9',
|
||||||
jquery: 'jquery.shim'
|
jquery: 'jquery.shim'
|
||||||
},
|
},
|
||||||
wrap: grunt.file.readJSON('src/js/banner.json')
|
wrap: {
|
||||||
|
startFile: 'src/js/banner.start.js',
|
||||||
|
endFile: 'src/js/banner.end.js'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'dist.full': {
|
'dist.full': {
|
||||||
@ -241,40 +265,17 @@ module.exports = function (grunt) {
|
|||||||
optimize: 'none',
|
optimize: 'none',
|
||||||
name: 'select2/core',
|
name: 'select2/core',
|
||||||
out: 'dist/js/select2.full.js',
|
out: 'dist/js/select2.full.js',
|
||||||
include: amdIncludes.concat(fullIncludes),
|
include: fullIncludes,
|
||||||
|
namespace: 'S2',
|
||||||
paths: {
|
paths: {
|
||||||
almond: '../../vendor/almond-0.2.9',
|
almond: '../../vendor/almond-0.2.9',
|
||||||
jquery: 'jquery.shim',
|
jquery: 'jquery.shim',
|
||||||
'jquery.mousewheel': '../../vendor/jquery.mousewheel'
|
'jquery.mousewheel': '../../vendor/jquery.mousewheel'
|
||||||
},
|
},
|
||||||
wrap: grunt.file.readJSON('src/js/banner.json')
|
wrap: {
|
||||||
|
startFile: 'src/js/banner.start.js',
|
||||||
|
endFile: 'src/js/banner.end.js'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
'amd': {
|
|
||||||
options: {
|
|
||||||
baseUrl: 'src/js',
|
|
||||||
optimize: 'none',
|
|
||||||
name: 'select2/core',
|
|
||||||
out: 'dist/js/select2.amd.js',
|
|
||||||
include: includes,
|
|
||||||
paths: {
|
|
||||||
jquery: 'empty:'
|
|
||||||
},
|
|
||||||
wrap: grunt.file.readJSON('src/js/banner.amd.json')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'amd.full': {
|
|
||||||
options: {
|
|
||||||
baseUrl: 'src/js',
|
|
||||||
optimize: 'none',
|
|
||||||
name: 'select2/core',
|
|
||||||
out: 'dist/js/select2.amd.full.js',
|
|
||||||
include: fullIncludes,
|
|
||||||
paths: {
|
|
||||||
jquery: 'empty:',
|
|
||||||
'jquery.mousewheel': '../../vendor/jquery.mousewheel'
|
|
||||||
},
|
|
||||||
wrap: grunt.file.readJSON('src/js/banner.amd.json')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'i18n': {
|
'i18n': {
|
||||||
@ -283,7 +284,11 @@ module.exports = function (grunt) {
|
|||||||
dir: 'dist/js/i18n',
|
dir: 'dist/js/i18n',
|
||||||
paths: i18nPaths,
|
paths: i18nPaths,
|
||||||
modules: i18nModules,
|
modules: i18nModules,
|
||||||
wrap: grunt.file.readJSON('src/js/banner.basic.json')
|
namespace: 'S2',
|
||||||
|
wrap: {
|
||||||
|
start: minifiedBanner + grunt.file.read('src/js/banner.start.js'),
|
||||||
|
end: grunt.file.read('src/js/banner.end.js')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -329,7 +334,11 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
grunt.registerTask('default', ['compile', 'test', 'minify']);
|
grunt.registerTask('default', ['compile', 'test', 'minify']);
|
||||||
|
|
||||||
grunt.registerTask('compile', ['requirejs', 'sass:dev']);
|
grunt.registerTask('compile', [
|
||||||
|
'requirejs:dist', 'requirejs:dist.full', 'requirejs:i18n',
|
||||||
|
'concat:dist', 'concat:dist.full',
|
||||||
|
'sass:dev'
|
||||||
|
]);
|
||||||
grunt.registerTask('minify', ['uglify', 'sass:dist']);
|
grunt.registerTask('minify', ['uglify', 'sass:dist']);
|
||||||
grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);
|
grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);
|
||||||
|
|
||||||
|
2
dist/js/i18n/az.js
vendored
2
dist/js/i18n/az.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/az",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return t+" simvol silin"},inputTooShort:function(e){var t=e.minimum-e.input.length;return t+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(e){return"Sadəcə "+e.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/bg.js
vendored
2
dist/js/i18n/bg.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/bg",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Моля въведете с "+t+" по-малко символ";return t>1&&(n+="a"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Моля въведете още "+t+" символ";return t>1&&(n+="a"),n},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(e){var t="Можете да направите до "+e.maximum+" ";return e.maximum>1?t+="избора":t+="избор",t},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/ca.js
vendored
2
dist/js/i18n/ca.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Si us plau, elimina "+t+" car";return t==1?n+="àcter":n+="àcters",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Si us plau, introdueix "+t+" car";return t==1?n+="àcter":n+="àcters",n},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Si us plau, elimina "+t+" car";return t==1?n+="àcter":n+="àcters",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Si us plau, introdueix "+t+" car";return t==1?n+="àcter":n+="àcters",n},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var t="Només es pot seleccionar "+e.maximum+" element";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/cs.js
vendored
2
dist/js/i18n/cs.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím zadejte o jeden znak méně":n<=4?"Prosím zadejte o "+e(n,!0)+" znaky méně":"Prosím zadejte o "+n+" znaků méně"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím zadejte ještě jeden znak":n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximálně "+n+" položek"},noResults:function(){return"Nenalezeny žádné položky"},searching:function(){return"Vyhledávání…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/cs",[],function(){function e(e,t){switch(e){case 2:return t?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím zadejte o jeden znak méně":n<=4?"Prosím zadejte o "+e(n,!0)+" znaky méně":"Prosím zadejte o "+n+" znaků méně"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím zadejte ještě jeden znak":n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximálně "+n+" položek"},noResults:function(){return"Nenalezeny žádné položky"},searching:function(){return"Vyhledávání…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/da.js
vendored
2
dist/js/i18n/da.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/da",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Angiv venligst "+t+" tegn mindre";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Angiv venligst "+t+" tegn mere";return n},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return e.maximum!=1&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Angiv venligst "+t+" tegn mindre";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Angiv venligst "+t+" tegn mere";return n},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var t="Du kan kun vælge "+e.maximum+" emne";return e.maximum!=1&&(t+="r"),t},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/de.js
vendored
2
dist/js/i18n/de.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/de",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Bitte "+t+" Zeichen weniger eingeben"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Bitte "+t+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Eintr";return e.maximum===1?t+="ag":t+="äge",t+=" auswählen",t},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/de",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Bitte "+t+" Zeichen weniger eingeben"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Bitte "+t+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var t="Sie können nur "+e.maximum+" Eintr";return e.maximum===1?t+="ag":t+="äge",t+=" auswählen",t},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/en.js
vendored
2
dist/js/i18n/en.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/es.js
vendored
2
dist/js/i18n/es.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor, elimine "+t+" car";return t==1?n+="ácter":n+="acteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Por favor, introduzca "+t+" car";return t==1?n+="ácter":n+="acteres",n},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"La carga falló"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor, elimine "+t+" car";return t==1?n+="ácter":n+="acteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Por favor, introduzca "+t+" car";return t==1?n+="ácter":n+="acteres",n},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var t="Sólo puede seleccionar "+e.maximum+" elemento";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/et.js
vendored
2
dist/js/i18n/et.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/et",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" vähem",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" rohkem",n},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var t="Saad vaid "+e.maximum+" tulemus";return e.maximum==1?t+="e":t+="t",t+=" valida",t},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" vähem",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Sisesta "+t+" täht";return t!=1&&(n+="e"),n+=" rohkem",n},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var t="Saad vaid "+e.maximum+" tulemus";return e.maximum==1?t+="e":t+="t",t+=" valida",t},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/eu.js
vendored
2
dist/js/i18n/eu.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gutxiago",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gehiago",n},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return e.maximum===1?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gutxiago",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return t==1?n+="karaktere bat":n+=t+" karaktere",n+=" gehiago",n},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return e.maximum===1?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/fa.js
vendored
2
dist/js/i18n/fa.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="لطفاً "+t+" کاراکتر را حذف نمایید";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="لطفاً تعداد "+t+" کاراکتر یا بیشتر وارد نمایید";return n},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(e){var t="شما تنها میتوانید "+e.maximum+" آیتم را انتخاب نمایید";return t},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="لطفاً "+t+" کاراکتر را حذف نمایید";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="لطفاً تعداد "+t+" کاراکتر یا بیشتر وارد نمایید";return n},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(e){var t="شما تنها میتوانید "+e.maximum+" آیتم را انتخاب نمایید";return t},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/fi.js
vendored
2
dist/js/i18n/fi.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/fi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Ole hyvä ja anna "+t+" merkkiä vähemmän"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Ole hyvä ja anna "+t+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(e){return"Voit valita ainoastaan "+e.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Ole hyvä ja anna "+t+" merkkiä vähemmän"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Ole hyvä ja anna "+t+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(e){return"Voit valita ainoastaan "+e.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/fr.js
vendored
2
dist/js/i18n/fr.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/fr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Supprimez "+t+" caractère";return t!==1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Saisissez "+t+" caractère";return t!==1&&(n+="s"),n},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){var t="Vous pouvez seulement sélectionner "+e.maximum+" élément";return e.maximum!==1&&(t+="s"),t},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/fr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Supprimez "+t+" caractère";return t!==1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Saisissez "+t+" caractère";return t!==1&&(n+="s"),n},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){var t="Vous pouvez seulement sélectionner "+e.maximum+" élément";return e.maximum!==1&&(t+="s"),t},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/gl.js
vendored
2
dist/js/i18n/gl.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/gl",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Engada ";return t===1?n+="un carácter":n+=t+" caracteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Elimine ";return t===1?n+="un carácter":n+=t+" caracteres",n},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){var t="Só pode ";return e.maximum===1?t+="un elemento":t+=e.maximum+" elementos",t},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/gl",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Engada ";return t===1?n+="un carácter":n+=t+" caracteres",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Elimine ";return t===1?n+="un carácter":n+=t+" caracteres",n},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){var t="Só pode ";return e.maximum===1?t+="un elemento":t+=e.maximum+" elementos",t},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/hi.js
vendored
2
dist/js/i18n/hi.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" अक्षर को हटा दें";return t>1&&(n=t+" अक्षरों को हटा दें "),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="कृपया "+t+" या अधिक अक्षर दर्ज करें";return n},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(e){var t="आप केवल "+e.maximum+" आइटम का चयन कर सकते हैं";return t},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" अक्षर को हटा दें";return t>1&&(n=t+" अक्षरों को हटा दें "),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="कृपया "+t+" या अधिक अक्षर दर्ज करें";return n},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(e){var t="आप केवल "+e.maximum+" आइटम का चयन कर सकते हैं";return t},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/hr.js
vendored
2
dist/js/i18n/hr.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/hr",[],function(){function e(e){var t=" "+e+" znak";return e%10<5&&e%10>0&&(e%100<5||e%100>19)?e%10>1&&(t+="a"):t+="ova",t}return{inputTooLong:function(t){var n=t.input.length-t.maximum;return"Unesite "+e(n)},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Unesite još "+e(n)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(e){return"Maksimalan broj odabranih stavki je "+e.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hr",[],function(){function e(e){var t=" "+e+" znak";return e%10<5&&e%10>0&&(e%100<5||e%100>19)?e%10>1&&(t+="a"):t+="ova",t}return{inputTooLong:function(t){var n=t.input.length-t.maximum;return"Unesite "+e(n)},inputTooShort:function(t){var n=t.minimum-t.input.length;return"Unesite još "+e(n)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(e){return"Maksimalan broj odabranih stavki je "+e.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/hu.js
vendored
2
dist/js/i18n/hu.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/hu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Túl hosszú. "+t+" karakterrel több, mint kellene."},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Túl rövid. Még "+t+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/hu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Túl hosszú. "+t+" karakterrel több, mint kellene."},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Túl rövid. Még "+t+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/id.js
vendored
2
dist/js/i18n/id.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/id",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Hapuskan "+t+" huruf"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Masukkan "+t+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(e){return"Anda hanya dapat memilih "+e.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/id",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Hapuskan "+t+" huruf"},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Masukkan "+t+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(e){return"Anda hanya dapat memilih "+e.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/is.js
vendored
2
dist/js/i18n/is.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/is",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vinsamlegast styttið texta um "+t+" staf";return t<=1?n:n+"i"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vinsamlegast skrifið "+t+" staf";return t>1&&(n+="i"),n+=" í viðbót",n},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(e){return"Þú getur aðeins valið "+e.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/is",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vinsamlegast styttið texta um "+t+" staf";return t<=1?n:n+"i"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vinsamlegast skrifið "+t+" staf";return t>1&&(n+="i"),n+=" í viðbót",n},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(e){return"Þú getur aðeins valið "+e.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/it.js
vendored
2
dist/js/i18n/it.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Per favore cancella "+t+" caratter";return t!==1?n+="i":n+="e",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Per favore inserisci "+t+" o più caratteri";return n},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var t="Puoi selezionare solo "+e.maximum+" element";return e.maximum!==1?t+="i":t+="o",t},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Per favore cancella "+t+" caratter";return t!==1?n+="i":n+="e",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Per favore inserisci "+t+" o più caratteri";return n},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var t="Puoi selezionare solo "+e.maximum+" element";return e.maximum!==1?t+="i":t+="o",t},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/ko.js
vendored
2
dist/js/i18n/ko.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="너무 깁니다. "+t+" 글자 지워주세요.";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="너무 짧습니다. "+t+" 글자 더 입력해주세요.";return n},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(e){var t="최대 "+e.maximum+"개까지만 선택 가능합니다.";return t},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="너무 깁니다. "+t+" 글자 지워주세요.";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="너무 짧습니다. "+t+" 글자 더 입력해주세요.";return n},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(e){var t="최대 "+e.maximum+"개까지만 선택 가능합니다.";return t},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/lt.js
vendored
2
dist/js/i18n/lt.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/lt",[],function(){function e(e,t,n,r){return e%100>9&&e%100<21||e%10===0?e%10>1?n:r:t}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Pašalinkite "+n+" simbol";return r+=e(n,"ių","ius","į"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Įrašykite dar "+n+" simbol";return r+=e(n,"ių","ius","į"),r},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(t){var n="Jūs galite pasirinkti tik "+t.maximum+" element";return n+=e(t.maximum,"ų","us","ą"),n},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lt",[],function(){function e(e,t,n,r){return e%100>9&&e%100<21||e%10===0?e%10>1?n:r:t}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Pašalinkite "+n+" simbol";return r+=e(n,"ių","ius","į"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Įrašykite dar "+n+" simbol";return r+=e(n,"ių","ius","į"),r},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(t){var n="Jūs galite pasirinkti tik "+t.maximum+" element";return n+=e(t.maximum,"ų","us","ą"),n},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/lv.js
vendored
2
dist/js/i18n/lv.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/lv",[],function(){function e(e,t,n,r){return e===11?t:e%10===1?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Lūdzu ievadiet par "+n;return r+=" simbol"+e(n,"iem","u","iem"),r+" mazāk"},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Lūdzu ievadiet vēl "+n;return r+=" simbol"+e(n,"us","u","us"),r},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(t){var n="Jūs varat izvēlēties ne vairāk kā "+t.maximum;return n+=" element"+e(t.maximum,"us","u","us"),n},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/lv",[],function(){function e(e,t,n,r){return e===11?t:e%10===1?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Lūdzu ievadiet par "+n;return r+=" simbol"+e(n,"iem","u","iem"),r+" mazāk"},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Lūdzu ievadiet vēl "+n;return r+=" simbol"+e(n,"us","u","us"),r},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(t){var n="Jūs varat izvēlēties ne vairāk kā "+t.maximum;return n+=" element"+e(t.maximum,"us","u","us"),n},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/mk.js
vendored
2
dist/js/i18n/mk.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/mk",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Ве молиме внесете "+e.maximum+" помалку карактер";return e.maximum!==1&&(n+="и"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Ве молиме внесете уште "+e.maximum+" карактер";return e.maximum!==1&&(n+="и"),n},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(e){var t="Можете да изберете само "+e.maximum+" ставк";return e.maximum===1?t+="а":t+="и",t},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/mk",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Ве молиме внесете "+e.maximum+" помалку карактер";return e.maximum!==1&&(n+="и"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Ве молиме внесете уште "+e.maximum+" карактер";return e.maximum!==1&&(n+="и"),n},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(e){var t="Можете да изберете само "+e.maximum+" ставк";return e.maximum===1?t+="а":t+="и",t},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/nb.js
vendored
2
dist/js/i18n/nb.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/nb",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Vennligst fjern "+t+" tegn"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vennligst skriv inn ";return t>1?n+=" flere tegn":n+=" tegn til",n},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/nb",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum;return"Vennligst fjern "+t+" tegn"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vennligst skriv inn ";return t>1?n+=" flere tegn":n+=" tegn til",n},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/nl.js
vendored
2
dist/js/i18n/nl.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Gelieve "+t+" karakters te verwijderen";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Gelieve "+t+" of meer karakters in te voeren";return n},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var t="Er kunnen maar "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t+=" worden geselecteerd",t},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Gelieve "+t+" karakters te verwijderen";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Gelieve "+t+" of meer karakters in te voeren";return n},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var t="Er kunnen maar "+e.maximum+" item";return e.maximum!=1&&(t+="s"),t+=" worden geselecteerd",t},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/pl.js
vendored
2
dist/js/i18n/pl.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/pl",[],function(){var e=["znak","znaki","znaków"],t=["element","elementy","elementów"],n=function(t,n){if(t===1)return n[0];if(t>1&&t<=4)return n[1];if(t>=5)return n[2]};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(t){var r=t.input.length-t.maximum;return"Usuń "+r+" "+n(r,e)},inputTooShort:function(t){var r=t.minimum-t.input.length;return"Podaj przynajmniej "+r+" "+n(r,e)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+n(e.maxiumum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pl",[],function(){var e=["znak","znaki","znaków"],t=["element","elementy","elementów"],n=function(t,n){if(t===1)return n[0];if(t>1&&t<=4)return n[1];if(t>=5)return n[2]};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(t){var r=t.input.length-t.maximum;return"Usuń "+r+" "+n(r,e)},inputTooShort:function(t){var r=t.minimum-t.input.length;return"Podaj przynajmniej "+r+" "+n(r,e)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(e){return"Możesz zaznaczyć tylko "+e.maximum+" "+n(e.maxiumum,t)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/pt-BR.js
vendored
2
dist/js/i18n/pt-BR.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Apague "+t+" caracter";return t!=1&&(n+="es"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Digite "+t+" ou mais caracteres";return n},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var t="Você só pode selecionar "+e.maximum+" ite";return e.maximum==1?t+="m":t+="ns",t},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Apague "+t+" caracter";return t!=1&&(n+="es"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Digite "+t+" ou mais caracteres";return n},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var t="Você só pode selecionar "+e.maximum+" ite";return e.maximum==1?t+="m":t+="ns",t},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/pt.js
vendored
2
dist/js/i18n/pt.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor apague "+t+" ";return n+=t!=1?"caracteres":"carácter",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Introduza "+t+" ou mais caracteres";return n},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var t="Apenas pode seleccionar "+e.maximum+" ";return t+=e.maximum!=1?"itens":"item",t},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Por favor apague "+t+" ";return n+=t!=1?"caracteres":"carácter",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Introduza "+t+" ou mais caracteres";return n},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var t="Apenas pode seleccionar "+e.maximum+" ";return t+=e.maximum!=1?"itens":"item",t},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/ro.js
vendored
2
dist/js/i18n/ro.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/ro",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să introduceți mai puțin de "+t;return n+=" caracter",n!==1&&(n+="e"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vă rugăm să introduceți incă "+t;return n+=" caracter",n!==1&&(n+="e"),n},loadingMore:function(){return"Se încarcă…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",t!==1&&(t+="e"),t},noResults:function(){return"Nu a fost găsit nimic"},searching:function(){return"Căutare…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ro",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să introduceți mai puțin de "+t;return n+=" caracter",n!==1&&(n+="e"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vă rugăm să introduceți incă "+t;return n+=" caracter",n!==1&&(n+="e"),n},loadingMore:function(){return"Se încarcă…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",t!==1&&(t+="e"),t},noResults:function(){return"Nu a fost găsit nimic"},searching:function(){return"Căutare…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/ru.js
vendored
2
dist/js/i18n/ru.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/ru",[],function(){function e(e,t,n,r){return e%10<5&&e%10>0&&e%100<5||e%100>20?e%10>1?n:t:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Пожалуйста, введите на "+n+" символ";return r+=e(n,"","a","ов"),r+=" меньше",r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Пожалуйста, введите еще хотя бы "+n+" символ";return r+=e(n,"","a","ов"),r},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(t){var n="Вы можете выбрать не более "+t.maximum+" элемент";return n+=e(t.maximum,"","a","ов"),n},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ru",[],function(){function e(e,t,n,r){return e%10<5&&e%10>0&&e%100<5||e%100>20?e%10>1?n:t:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Пожалуйста, введите на "+n+" символ";return r+=e(n,"","a","ов"),r+=" меньше",r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Пожалуйста, введите еще хотя бы "+n+" символ";return r+=e(n,"","a","ов"),r},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(t){var n="Вы можете выбрать не более "+t.maximum+" элемент";return n+=e(t.maximum,"","a","ов"),n},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/sk.js
vendored
2
dist/js/i18n/sk.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím, zadajte o jeden znak menej":n>=2&&n<=4?"Prosím, zadajte o "+e[n](!0)+" znaky menej":"Prosím, zadajte o "+n+" znakov menej"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím, zadajte ešte jeden znak":n<=4?"Prosím, zadajte ešte ďalšie "+e[n](!0)+" znaky":"Prosím, zadajte ešte ďalších "+n+" znakov"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){return t.maximum==1?"Môžete zvoliť len jednu položku":t.maximum>=2&&t.maximum<=4?"Môžete zvoliť najviac "+e[t.maximum](!1)+" položky":"Môžete zvoliť najviac "+t.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{inputTooLong:function(t){var n=t.input.length-t.maximum;return n==1?"Prosím, zadajte o jeden znak menej":n>=2&&n<=4?"Prosím, zadajte o "+e[n](!0)+" znaky menej":"Prosím, zadajte o "+n+" znakov menej"},inputTooShort:function(t){var n=t.minimum-t.input.length;return n==1?"Prosím, zadajte ešte jeden znak":n<=4?"Prosím, zadajte ešte ďalšie "+e[n](!0)+" znaky":"Prosím, zadajte ešte ďalších "+n+" znakov"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){return t.maximum==1?"Môžete zvoliť len jednu položku":t.maximum>=2&&t.maximum<=4?"Môžete zvoliť najviac "+e[t.maximum](!1)+" položky":"Môžete zvoliť najviac "+t.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/sr.js
vendored
2
dist/js/i18n/sr.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/sr",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Obrišite "+n+" simbol";return r+=e(n,"","a","a"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Ukucajte bar još "+n+" simbol";return r+=e(n,"","a","a"),r},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(t){var n="Možete izabrati samo "+t.maximum+" stavk";return n+=e(t.maximum,"u","e","i"),n},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sr",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Obrišite "+n+" simbol";return r+=e(n,"","a","a"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Ukucajte bar još "+n+" simbol";return r+=e(n,"","a","a"),r},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(t){var n="Možete izabrati samo "+t.maximum+" stavk";return n+=e(t.maximum,"u","e","i"),n},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/sv.js
vendored
2
dist/js/i18n/sv.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vänligen sudda ut "+t+" tecken";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vänligen skriv in "+t+" eller fler tecken";return n},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(e){var t="Du kan max välja "+e.maximum+" element";return t},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vänligen sudda ut "+t+" tecken";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vänligen skriv in "+t+" eller fler tecken";return n},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(e){var t="Du kan max välja "+e.maximum+" element";return t},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/th.js
vendored
2
dist/js/i18n/th.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/th",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="โปรดลบออก "+t+" ตัวอักษร";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="โปรดพิมพ์เพิ่มอีก "+t+" ตัวอักษร";return n},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(e){var t="คุณสามารถเลือกได้ไม่เกิน "+e.maximum+" รายการ";return t},noResults:function(){return"ม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/th",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="โปรดลบออก "+t+" ตัวอักษร";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="โปรดพิมพ์เพิ่มอีก "+t+" ตัวอักษร";return n},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(e){var t="คุณสามารถเลือกได้ไม่เกิน "+e.maximum+" รายการ";return t},noResults:function(){return"ม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/tr.js
vendored
2
dist/js/i18n/tr.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/tr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" karakter daha girmelisiniz";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="En az "+t+" karakter daha girmelisiniz";return n},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(e){var t="Sadece "+e.maximum+" seçim yapabilirsiniz";return t},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/tr",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n=t+" karakter daha girmelisiniz";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="En az "+t+" karakter daha girmelisiniz";return n},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(e){var t="Sadece "+e.maximum+" seçim yapabilirsiniz";return t},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/uk.js
vendored
2
dist/js/i18n/uk.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/uk",[],function(){function e(e,t,n,r){return e%100>10&&e%100<15?r:e%10===1?t:e%10>1&&e%10<5?n:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Будь ласка, видаліть "+n+" "+e(t.maximum,"літеру","літери","літер")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Будь ласка, введіть "+t+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(t){return"Ви можете вибрати лише "+t.maximum+" "+e(t.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/uk",[],function(){function e(e,t,n,r){return e%100>10&&e%100<15?r:e%10===1?t:e%10>1&&e%10<5?n:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(t){var n=t.input.length-t.maximum;return"Будь ласка, видаліть "+n+" "+e(t.maximum,"літеру","літери","літер")},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Будь ласка, введіть "+t+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(t){return"Ви можете вибрати лише "+t.maximum+" "+e(t.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/vi.js
vendored
2
dist/js/i18n/vi.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/vi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vui lòng nhập ít hơn "+t+" ký tự";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vui lòng nhập nhiều hơn "+t+' ký tự"';return n},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(e){var t="Chỉ có thể chọn được "+e.maximum+" lựa chọn";return t},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/vi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vui lòng nhập ít hơn "+t+" ký tự";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vui lòng nhập nhiều hơn "+t+' ký tự"';return n},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(e){var t="Chỉ có thể chọn được "+e.maximum+" lựa chọn";return t},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/zh-CN.js
vendored
2
dist/js/i18n/zh-CN.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="请删除"+t+"个字符";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="请再输入至少"+t+"个字符";return n},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(e){var t="最多只能选择"+e.maximum+"个项目";return t},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="请删除"+t+"个字符";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="请再输入至少"+t+"个字符";return n},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(e){var t="最多只能选择"+e.maximum+"个项目";return t},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/zh-TW.js
vendored
2
dist/js/i18n/zh-TW.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(window.define)var e=window.define;if(window.require)var t=window.require;if(window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require;e("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="請刪掉"+t+"個字元";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="請再輸入"+t+"個字元";return n},loadingMore:function(){return"載入中…"},maximumSelected:function(e){var t="你只能選擇最多"+e.maximum+"項";return t},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"}}}),t("jquery.select2"),jQuery.fn.select2.amd={define:e,require:t}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="請刪掉"+t+"個字元";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="請再輸入"+t+"個字元";return n},loadingMore:function(){return"載入中…"},maximumSelected:function(e){var t="你只能選擇最多"+e.maximum+"項";return t},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"}}}),{define:e.define,require:e.require}})();
|
5335
dist/js/select2.amd.full.js
vendored
5335
dist/js/select2.amd.full.js
vendored
File diff suppressed because it is too large
Load Diff
4775
dist/js/select2.amd.js
vendored
4775
dist/js/select2.amd.js
vendored
File diff suppressed because it is too large
Load Diff
144
dist/js/select2.full.js
vendored
144
dist/js/select2.full.js
vendored
@ -5,7 +5,31 @@
|
|||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* https://github.com/select2/select2/blob/master/LICENSE.md
|
* https://github.com/select2/select2/blob/master/LICENSE.md
|
||||||
*/
|
*/
|
||||||
(function() { if (window.define) { var define = window.define; } if (window.require) { var require = window.require; } if (window.jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) { var define = jQuery.fn.select2.amd.define; var require = jQuery.fn.select2.amd.require; }/**
|
(function (factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['jquery'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node/CommonJS
|
||||||
|
factory(require('jquery'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory(jQuery);
|
||||||
|
}
|
||||||
|
}(function (jQuery) {
|
||||||
|
// This is needed so we can catch the AMD loader configuration and use it
|
||||||
|
// The inner file should be wrapped (by `banner.start.js`) in a function that
|
||||||
|
// returns the AMD loader references.
|
||||||
|
var S2 =
|
||||||
|
(function () {
|
||||||
|
// Restore the Select2 AMD loader so it can be used
|
||||||
|
// Needed mostly in the language files, where the loader is not inserted
|
||||||
|
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
|
||||||
|
var S2 = jQuery.fn.select2.amd;
|
||||||
|
}
|
||||||
|
var S2;(function () { if (!S2 || !S2.requirejs) {
|
||||||
|
if (!S2) { S2 = {}; } else { require = S2; }
|
||||||
|
/**
|
||||||
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
||||||
* Available via the MIT or new BSD license.
|
* Available via the MIT or new BSD license.
|
||||||
* see: http://github.com/jrburke/almond for details
|
* see: http://github.com/jrburke/almond for details
|
||||||
@ -427,10 +451,13 @@ var requirejs, require, define;
|
|||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
||||||
define("almond", function(){});
|
S2.requirejs = requirejs;S2.require = require;S2.define = define;
|
||||||
|
}
|
||||||
|
}());
|
||||||
|
S2.define("almond", function(){});
|
||||||
|
|
||||||
/* global jQuery:false, $:false */
|
/* global jQuery:false, $:false */
|
||||||
define('jquery',[],function () {
|
S2.define('jquery',[],function () {
|
||||||
var _$ = jQuery || $;
|
var _$ = jQuery || $;
|
||||||
|
|
||||||
if (_$ == null && console && console.error) {
|
if (_$ == null && console && console.error) {
|
||||||
@ -444,7 +471,7 @@ define('jquery',[],function () {
|
|||||||
return _$;
|
return _$;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/utils',[
|
S2.define('select2/utils',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
var Utils = {};
|
var Utils = {};
|
||||||
@ -690,7 +717,7 @@ define('select2/utils',[
|
|||||||
return Utils;
|
return Utils;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/results',[
|
S2.define('select2/results',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./utils'
|
'./utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -1195,7 +1222,7 @@ define('select2/results',[
|
|||||||
return Results;
|
return Results;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/keys',[
|
S2.define('select2/keys',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
var KEYS = {
|
var KEYS = {
|
||||||
@ -1221,7 +1248,7 @@ define('select2/keys',[
|
|||||||
return KEYS;
|
return KEYS;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/base',[
|
S2.define('select2/selection/base',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils',
|
'../utils',
|
||||||
'../keys'
|
'../keys'
|
||||||
@ -1362,7 +1389,7 @@ define('select2/selection/base',[
|
|||||||
return BaseSelection;
|
return BaseSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/single',[
|
S2.define('select2/selection/single',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./base',
|
'./base',
|
||||||
'../utils',
|
'../utils',
|
||||||
@ -1456,7 +1483,7 @@ define('select2/selection/single',[
|
|||||||
return SingleSelection;
|
return SingleSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/multiple',[
|
S2.define('select2/selection/multiple',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./base',
|
'./base',
|
||||||
'../utils'
|
'../utils'
|
||||||
@ -1556,7 +1583,7 @@ define('select2/selection/multiple',[
|
|||||||
return MultipleSelection;
|
return MultipleSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/placeholder',[
|
S2.define('select2/selection/placeholder',[
|
||||||
'../utils'
|
'../utils'
|
||||||
], function (Utils) {
|
], function (Utils) {
|
||||||
function Placeholder (decorated, $element, options) {
|
function Placeholder (decorated, $element, options) {
|
||||||
@ -1606,7 +1633,7 @@ define('select2/selection/placeholder',[
|
|||||||
return Placeholder;
|
return Placeholder;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/allowClear',[
|
S2.define('select2/selection/allowClear',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function AllowClear () { }
|
function AllowClear () { }
|
||||||
@ -1678,7 +1705,7 @@ define('select2/selection/allowClear',[
|
|||||||
return AllowClear;
|
return AllowClear;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/search',[
|
S2.define('select2/selection/search',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils',
|
'../utils',
|
||||||
'../keys'
|
'../keys'
|
||||||
@ -1831,7 +1858,7 @@ define('select2/selection/search',[
|
|||||||
return Search;
|
return Search;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/eventRelay',[
|
S2.define('select2/selection/eventRelay',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function EventRelay () { }
|
function EventRelay () { }
|
||||||
@ -1877,9 +1904,10 @@ define('select2/selection/eventRelay',[
|
|||||||
return EventRelay;
|
return EventRelay;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/translation',[
|
S2.define('select2/translation',[
|
||||||
'jquery'
|
'jquery',
|
||||||
], function ($) {
|
'require'
|
||||||
|
], function ($, require) {
|
||||||
function Translation (dict) {
|
function Translation (dict) {
|
||||||
this.dict = dict || {};
|
this.dict = dict || {};
|
||||||
}
|
}
|
||||||
@ -1913,7 +1941,7 @@ define('select2/translation',[
|
|||||||
return Translation;
|
return Translation;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/diacritics',[
|
S2.define('select2/diacritics',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
var diacritics = {
|
var diacritics = {
|
||||||
@ -2761,7 +2789,7 @@ define('select2/diacritics',[
|
|||||||
return diacritics;
|
return diacritics;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/base',[
|
S2.define('select2/data/base',[
|
||||||
'../utils'
|
'../utils'
|
||||||
], function (Utils) {
|
], function (Utils) {
|
||||||
function BaseAdapter ($element, options) {
|
function BaseAdapter ($element, options) {
|
||||||
@ -2802,7 +2830,7 @@ define('select2/data/base',[
|
|||||||
return BaseAdapter;
|
return BaseAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/select',[
|
S2.define('select2/data/select',[
|
||||||
'./base',
|
'./base',
|
||||||
'../utils',
|
'../utils',
|
||||||
'jquery'
|
'jquery'
|
||||||
@ -3084,7 +3112,7 @@ define('select2/data/select',[
|
|||||||
return SelectAdapter;
|
return SelectAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/array',[
|
S2.define('select2/data/array',[
|
||||||
'./select',
|
'./select',
|
||||||
'../utils',
|
'../utils',
|
||||||
'jquery'
|
'jquery'
|
||||||
@ -3162,7 +3190,7 @@ define('select2/data/array',[
|
|||||||
return ArrayAdapter;
|
return ArrayAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/ajax',[
|
S2.define('select2/data/ajax',[
|
||||||
'./array',
|
'./array',
|
||||||
'../utils',
|
'../utils',
|
||||||
'jquery'
|
'jquery'
|
||||||
@ -3260,7 +3288,7 @@ define('select2/data/ajax',[
|
|||||||
return AjaxAdapter;
|
return AjaxAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/tags',[
|
S2.define('select2/data/tags',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function Tags (decorated, $element, options) {
|
function Tags (decorated, $element, options) {
|
||||||
@ -3380,7 +3408,7 @@ define('select2/data/tags',[
|
|||||||
return Tags;
|
return Tags;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/tokenizer',[
|
S2.define('select2/data/tokenizer',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function Tokenizer (decorated, $element, options) {
|
function Tokenizer (decorated, $element, options) {
|
||||||
@ -3467,7 +3495,7 @@ define('select2/data/tokenizer',[
|
|||||||
return Tokenizer;
|
return Tokenizer;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/minimumInputLength',[
|
S2.define('select2/data/minimumInputLength',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function MinimumInputLength (decorated, $e, options) {
|
function MinimumInputLength (decorated, $e, options) {
|
||||||
@ -3498,7 +3526,7 @@ define('select2/data/minimumInputLength',[
|
|||||||
return MinimumInputLength;
|
return MinimumInputLength;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/maximumInputLength',[
|
S2.define('select2/data/maximumInputLength',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function MaximumInputLength (decorated, $e, options) {
|
function MaximumInputLength (decorated, $e, options) {
|
||||||
@ -3530,7 +3558,7 @@ define('select2/data/maximumInputLength',[
|
|||||||
return MaximumInputLength;
|
return MaximumInputLength;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/maximumSelectionLength',[
|
S2.define('select2/data/maximumSelectionLength',[
|
||||||
|
|
||||||
], function (){
|
], function (){
|
||||||
function MaximumSelectionLength (decorated, $e, options) {
|
function MaximumSelectionLength (decorated, $e, options) {
|
||||||
@ -3562,7 +3590,7 @@ define('select2/data/maximumSelectionLength',[
|
|||||||
return MaximumSelectionLength;
|
return MaximumSelectionLength;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown',[
|
S2.define('select2/dropdown',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./utils'
|
'./utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -3601,7 +3629,7 @@ define('select2/dropdown',[
|
|||||||
return Dropdown;
|
return Dropdown;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/search',[
|
S2.define('select2/dropdown/search',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils'
|
'../utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -3697,7 +3725,7 @@ define('select2/dropdown/search',[
|
|||||||
return Search;
|
return Search;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/hidePlaceholder',[
|
S2.define('select2/dropdown/hidePlaceholder',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function HidePlaceholder (decorated, $element, options, dataAdapter) {
|
function HidePlaceholder (decorated, $element, options, dataAdapter) {
|
||||||
@ -3740,7 +3768,7 @@ define('select2/dropdown/hidePlaceholder',[
|
|||||||
return HidePlaceholder;
|
return HidePlaceholder;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/infiniteScroll',[
|
S2.define('select2/dropdown/infiniteScroll',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function InfiniteScroll (decorated, $element, options, dataAdapter) {
|
function InfiniteScroll (decorated, $element, options, dataAdapter) {
|
||||||
@ -3828,7 +3856,7 @@ define('select2/dropdown/infiniteScroll',[
|
|||||||
return InfiniteScroll;
|
return InfiniteScroll;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/attachBody',[
|
S2.define('select2/dropdown/attachBody',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils'
|
'../utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -4024,7 +4052,7 @@ define('select2/dropdown/attachBody',[
|
|||||||
return AttachBody;
|
return AttachBody;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/minimumResultsForSearch',[
|
S2.define('select2/dropdown/minimumResultsForSearch',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function countResults (data) {
|
function countResults (data) {
|
||||||
@ -4064,7 +4092,7 @@ define('select2/dropdown/minimumResultsForSearch',[
|
|||||||
return MinimumResultsForSearch;
|
return MinimumResultsForSearch;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/selectOnClose',[
|
S2.define('select2/dropdown/selectOnClose',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function SelectOnClose () { }
|
function SelectOnClose () { }
|
||||||
@ -4092,7 +4120,7 @@ define('select2/dropdown/selectOnClose',[
|
|||||||
return SelectOnClose;
|
return SelectOnClose;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/closeOnSelect',[
|
S2.define('select2/dropdown/closeOnSelect',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function CloseOnSelect () { }
|
function CloseOnSelect () { }
|
||||||
@ -4125,7 +4153,7 @@ define('select2/dropdown/closeOnSelect',[
|
|||||||
return CloseOnSelect;
|
return CloseOnSelect;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/i18n/en',[],function () {
|
S2.define('select2/i18n/en',[],function () {
|
||||||
// English
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
@ -4170,7 +4198,7 @@ define('select2/i18n/en',[],function () {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/defaults',[
|
S2.define('select2/defaults',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./results',
|
'./results',
|
||||||
|
|
||||||
@ -4529,7 +4557,7 @@ define('select2/defaults',[
|
|||||||
return defaults;
|
return defaults;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/options',[
|
S2.define('select2/options',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./defaults',
|
'./defaults',
|
||||||
'./utils'
|
'./utils'
|
||||||
@ -4651,7 +4679,7 @@ define('select2/options',[
|
|||||||
return Options;
|
return Options;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/core',[
|
S2.define('select2/core',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./options',
|
'./options',
|
||||||
'./utils',
|
'./utils',
|
||||||
@ -5187,9 +5215,9 @@ define('select2/core',[
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
(function (factory) {
|
(function (factory) {
|
||||||
if ( typeof define === 'function' && define.amd ) {
|
if ( typeof S2.define === 'function' && S2.define.amd ) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define('jquery.mousewheel',['jquery'], factory);
|
S2.define('jquery.mousewheel',['jquery'], factory);
|
||||||
} else if (typeof exports === 'object') {
|
} else if (typeof exports === 'object') {
|
||||||
// Node/CommonJS style for Browserify
|
// Node/CommonJS style for Browserify
|
||||||
module.exports = factory;
|
module.exports = factory;
|
||||||
@ -5400,7 +5428,7 @@ define('select2/core',[
|
|||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
define('select2/compat/matcher',[
|
S2.define('select2/compat/matcher',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function oldMatcher (matcher) {
|
function oldMatcher (matcher) {
|
||||||
@ -5443,7 +5471,7 @@ define('select2/compat/matcher',[
|
|||||||
return oldMatcher;
|
return oldMatcher;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/compat/initSelection',[
|
S2.define('select2/compat/initSelection',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function InitSelection (decorated, $element, options) {
|
function InitSelection (decorated, $element, options) {
|
||||||
@ -5486,7 +5514,7 @@ define('select2/compat/initSelection',[
|
|||||||
return InitSelection;
|
return InitSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/compat/inputData',[
|
S2.define('select2/compat/inputData',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function InputData (decorated, $element, options) {
|
function InputData (decorated, $element, options) {
|
||||||
@ -5614,7 +5642,7 @@ define('select2/compat/inputData',[
|
|||||||
return InputData;
|
return InputData;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/compat/query',[
|
S2.define('select2/compat/query',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function Query (decorated, $element, options) {
|
function Query (decorated, $element, options) {
|
||||||
@ -5641,7 +5669,7 @@ define('select2/compat/query',[
|
|||||||
return Query;
|
return Query;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/attachContainer',[
|
S2.define('select2/dropdown/attachContainer',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function AttachContainer (decorated, $element, options) {
|
function AttachContainer (decorated, $element, options) {
|
||||||
@ -5660,7 +5688,7 @@ define('select2/dropdown/attachContainer',[
|
|||||||
return AttachContainer;
|
return AttachContainer;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/stopPropagation',[
|
S2.define('select2/dropdown/stopPropagation',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function StopPropagation () { }
|
function StopPropagation () { }
|
||||||
@ -5699,7 +5727,7 @@ define('select2/dropdown/stopPropagation',[
|
|||||||
return StopPropagation;
|
return StopPropagation;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/stopPropagation',[
|
S2.define('select2/selection/stopPropagation',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function StopPropagation () { }
|
function StopPropagation () { }
|
||||||
@ -5738,7 +5766,7 @@ define('select2/selection/stopPropagation',[
|
|||||||
return StopPropagation;
|
return StopPropagation;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('jquery.select2',[
|
S2.define('jquery.select2',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./select2/core',
|
'./select2/core',
|
||||||
'./select2/defaults'
|
'./select2/defaults'
|
||||||
@ -5778,4 +5806,22 @@ define('jquery.select2',[
|
|||||||
return Select2;
|
return Select2;
|
||||||
});
|
});
|
||||||
|
|
||||||
require('jquery.select2'); jQuery.fn.select2.amd = { define: define, require: require }; }());
|
// Return the AMD loader configuration so it can be used outside of this file
|
||||||
|
return {
|
||||||
|
define: S2.define,
|
||||||
|
require: S2.require
|
||||||
|
};
|
||||||
|
}());
|
||||||
|
|
||||||
|
// Autoload the jQuery bindings
|
||||||
|
// We know that all of the modules exist above this, so we're safe
|
||||||
|
var select2 = S2.require('jquery.select2');
|
||||||
|
|
||||||
|
// Hold the AMD module references on the jQuery function that was just loaded
|
||||||
|
// This allows Select2 to use the internal loader outside of this file, such
|
||||||
|
// as in the language files.
|
||||||
|
$.fn.select2.amd = S2;
|
||||||
|
|
||||||
|
// Return the Select2 instance for anyone who is importing it.
|
||||||
|
return select2;
|
||||||
|
}));
|
||||||
|
6
dist/js/select2.full.min.js
vendored
6
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
126
dist/js/select2.js
vendored
126
dist/js/select2.js
vendored
@ -5,7 +5,31 @@
|
|||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* https://github.com/select2/select2/blob/master/LICENSE.md
|
* https://github.com/select2/select2/blob/master/LICENSE.md
|
||||||
*/
|
*/
|
||||||
(function() { if (window.define) { var define = window.define; } if (window.require) { var require = window.require; } if (window.jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) { var define = jQuery.fn.select2.amd.define; var require = jQuery.fn.select2.amd.require; }/**
|
(function (factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['jquery'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node/CommonJS
|
||||||
|
factory(require('jquery'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory(jQuery);
|
||||||
|
}
|
||||||
|
}(function (jQuery) {
|
||||||
|
// This is needed so we can catch the AMD loader configuration and use it
|
||||||
|
// The inner file should be wrapped (by `banner.start.js`) in a function that
|
||||||
|
// returns the AMD loader references.
|
||||||
|
var S2 =
|
||||||
|
(function () {
|
||||||
|
// Restore the Select2 AMD loader so it can be used
|
||||||
|
// Needed mostly in the language files, where the loader is not inserted
|
||||||
|
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
|
||||||
|
var S2 = jQuery.fn.select2.amd;
|
||||||
|
}
|
||||||
|
var S2;(function () { if (!S2 || !S2.requirejs) {
|
||||||
|
if (!S2) { S2 = {}; } else { require = S2; }
|
||||||
|
/**
|
||||||
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
||||||
* Available via the MIT or new BSD license.
|
* Available via the MIT or new BSD license.
|
||||||
* see: http://github.com/jrburke/almond for details
|
* see: http://github.com/jrburke/almond for details
|
||||||
@ -427,10 +451,13 @@ var requirejs, require, define;
|
|||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
||||||
define("almond", function(){});
|
S2.requirejs = requirejs;S2.require = require;S2.define = define;
|
||||||
|
}
|
||||||
|
}());
|
||||||
|
S2.define("almond", function(){});
|
||||||
|
|
||||||
/* global jQuery:false, $:false */
|
/* global jQuery:false, $:false */
|
||||||
define('jquery',[],function () {
|
S2.define('jquery',[],function () {
|
||||||
var _$ = jQuery || $;
|
var _$ = jQuery || $;
|
||||||
|
|
||||||
if (_$ == null && console && console.error) {
|
if (_$ == null && console && console.error) {
|
||||||
@ -444,7 +471,7 @@ define('jquery',[],function () {
|
|||||||
return _$;
|
return _$;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/utils',[
|
S2.define('select2/utils',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
var Utils = {};
|
var Utils = {};
|
||||||
@ -690,7 +717,7 @@ define('select2/utils',[
|
|||||||
return Utils;
|
return Utils;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/results',[
|
S2.define('select2/results',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./utils'
|
'./utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -1195,7 +1222,7 @@ define('select2/results',[
|
|||||||
return Results;
|
return Results;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/keys',[
|
S2.define('select2/keys',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
var KEYS = {
|
var KEYS = {
|
||||||
@ -1221,7 +1248,7 @@ define('select2/keys',[
|
|||||||
return KEYS;
|
return KEYS;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/base',[
|
S2.define('select2/selection/base',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils',
|
'../utils',
|
||||||
'../keys'
|
'../keys'
|
||||||
@ -1362,7 +1389,7 @@ define('select2/selection/base',[
|
|||||||
return BaseSelection;
|
return BaseSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/single',[
|
S2.define('select2/selection/single',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./base',
|
'./base',
|
||||||
'../utils',
|
'../utils',
|
||||||
@ -1456,7 +1483,7 @@ define('select2/selection/single',[
|
|||||||
return SingleSelection;
|
return SingleSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/multiple',[
|
S2.define('select2/selection/multiple',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./base',
|
'./base',
|
||||||
'../utils'
|
'../utils'
|
||||||
@ -1556,7 +1583,7 @@ define('select2/selection/multiple',[
|
|||||||
return MultipleSelection;
|
return MultipleSelection;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/placeholder',[
|
S2.define('select2/selection/placeholder',[
|
||||||
'../utils'
|
'../utils'
|
||||||
], function (Utils) {
|
], function (Utils) {
|
||||||
function Placeholder (decorated, $element, options) {
|
function Placeholder (decorated, $element, options) {
|
||||||
@ -1606,7 +1633,7 @@ define('select2/selection/placeholder',[
|
|||||||
return Placeholder;
|
return Placeholder;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/allowClear',[
|
S2.define('select2/selection/allowClear',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function AllowClear () { }
|
function AllowClear () { }
|
||||||
@ -1678,7 +1705,7 @@ define('select2/selection/allowClear',[
|
|||||||
return AllowClear;
|
return AllowClear;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/search',[
|
S2.define('select2/selection/search',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils',
|
'../utils',
|
||||||
'../keys'
|
'../keys'
|
||||||
@ -1831,7 +1858,7 @@ define('select2/selection/search',[
|
|||||||
return Search;
|
return Search;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/selection/eventRelay',[
|
S2.define('select2/selection/eventRelay',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function EventRelay () { }
|
function EventRelay () { }
|
||||||
@ -1877,9 +1904,10 @@ define('select2/selection/eventRelay',[
|
|||||||
return EventRelay;
|
return EventRelay;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/translation',[
|
S2.define('select2/translation',[
|
||||||
'jquery'
|
'jquery',
|
||||||
], function ($) {
|
'require'
|
||||||
|
], function ($, require) {
|
||||||
function Translation (dict) {
|
function Translation (dict) {
|
||||||
this.dict = dict || {};
|
this.dict = dict || {};
|
||||||
}
|
}
|
||||||
@ -1913,7 +1941,7 @@ define('select2/translation',[
|
|||||||
return Translation;
|
return Translation;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/diacritics',[
|
S2.define('select2/diacritics',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
var diacritics = {
|
var diacritics = {
|
||||||
@ -2761,7 +2789,7 @@ define('select2/diacritics',[
|
|||||||
return diacritics;
|
return diacritics;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/base',[
|
S2.define('select2/data/base',[
|
||||||
'../utils'
|
'../utils'
|
||||||
], function (Utils) {
|
], function (Utils) {
|
||||||
function BaseAdapter ($element, options) {
|
function BaseAdapter ($element, options) {
|
||||||
@ -2802,7 +2830,7 @@ define('select2/data/base',[
|
|||||||
return BaseAdapter;
|
return BaseAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/select',[
|
S2.define('select2/data/select',[
|
||||||
'./base',
|
'./base',
|
||||||
'../utils',
|
'../utils',
|
||||||
'jquery'
|
'jquery'
|
||||||
@ -3084,7 +3112,7 @@ define('select2/data/select',[
|
|||||||
return SelectAdapter;
|
return SelectAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/array',[
|
S2.define('select2/data/array',[
|
||||||
'./select',
|
'./select',
|
||||||
'../utils',
|
'../utils',
|
||||||
'jquery'
|
'jquery'
|
||||||
@ -3162,7 +3190,7 @@ define('select2/data/array',[
|
|||||||
return ArrayAdapter;
|
return ArrayAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/ajax',[
|
S2.define('select2/data/ajax',[
|
||||||
'./array',
|
'./array',
|
||||||
'../utils',
|
'../utils',
|
||||||
'jquery'
|
'jquery'
|
||||||
@ -3260,7 +3288,7 @@ define('select2/data/ajax',[
|
|||||||
return AjaxAdapter;
|
return AjaxAdapter;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/tags',[
|
S2.define('select2/data/tags',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function Tags (decorated, $element, options) {
|
function Tags (decorated, $element, options) {
|
||||||
@ -3380,7 +3408,7 @@ define('select2/data/tags',[
|
|||||||
return Tags;
|
return Tags;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/tokenizer',[
|
S2.define('select2/data/tokenizer',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function Tokenizer (decorated, $element, options) {
|
function Tokenizer (decorated, $element, options) {
|
||||||
@ -3467,7 +3495,7 @@ define('select2/data/tokenizer',[
|
|||||||
return Tokenizer;
|
return Tokenizer;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/minimumInputLength',[
|
S2.define('select2/data/minimumInputLength',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function MinimumInputLength (decorated, $e, options) {
|
function MinimumInputLength (decorated, $e, options) {
|
||||||
@ -3498,7 +3526,7 @@ define('select2/data/minimumInputLength',[
|
|||||||
return MinimumInputLength;
|
return MinimumInputLength;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/maximumInputLength',[
|
S2.define('select2/data/maximumInputLength',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function MaximumInputLength (decorated, $e, options) {
|
function MaximumInputLength (decorated, $e, options) {
|
||||||
@ -3530,7 +3558,7 @@ define('select2/data/maximumInputLength',[
|
|||||||
return MaximumInputLength;
|
return MaximumInputLength;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/data/maximumSelectionLength',[
|
S2.define('select2/data/maximumSelectionLength',[
|
||||||
|
|
||||||
], function (){
|
], function (){
|
||||||
function MaximumSelectionLength (decorated, $e, options) {
|
function MaximumSelectionLength (decorated, $e, options) {
|
||||||
@ -3562,7 +3590,7 @@ define('select2/data/maximumSelectionLength',[
|
|||||||
return MaximumSelectionLength;
|
return MaximumSelectionLength;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown',[
|
S2.define('select2/dropdown',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./utils'
|
'./utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -3601,7 +3629,7 @@ define('select2/dropdown',[
|
|||||||
return Dropdown;
|
return Dropdown;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/search',[
|
S2.define('select2/dropdown/search',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils'
|
'../utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -3697,7 +3725,7 @@ define('select2/dropdown/search',[
|
|||||||
return Search;
|
return Search;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/hidePlaceholder',[
|
S2.define('select2/dropdown/hidePlaceholder',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function HidePlaceholder (decorated, $element, options, dataAdapter) {
|
function HidePlaceholder (decorated, $element, options, dataAdapter) {
|
||||||
@ -3740,7 +3768,7 @@ define('select2/dropdown/hidePlaceholder',[
|
|||||||
return HidePlaceholder;
|
return HidePlaceholder;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/infiniteScroll',[
|
S2.define('select2/dropdown/infiniteScroll',[
|
||||||
'jquery'
|
'jquery'
|
||||||
], function ($) {
|
], function ($) {
|
||||||
function InfiniteScroll (decorated, $element, options, dataAdapter) {
|
function InfiniteScroll (decorated, $element, options, dataAdapter) {
|
||||||
@ -3828,7 +3856,7 @@ define('select2/dropdown/infiniteScroll',[
|
|||||||
return InfiniteScroll;
|
return InfiniteScroll;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/attachBody',[
|
S2.define('select2/dropdown/attachBody',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'../utils'
|
'../utils'
|
||||||
], function ($, Utils) {
|
], function ($, Utils) {
|
||||||
@ -4024,7 +4052,7 @@ define('select2/dropdown/attachBody',[
|
|||||||
return AttachBody;
|
return AttachBody;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/minimumResultsForSearch',[
|
S2.define('select2/dropdown/minimumResultsForSearch',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function countResults (data) {
|
function countResults (data) {
|
||||||
@ -4064,7 +4092,7 @@ define('select2/dropdown/minimumResultsForSearch',[
|
|||||||
return MinimumResultsForSearch;
|
return MinimumResultsForSearch;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/selectOnClose',[
|
S2.define('select2/dropdown/selectOnClose',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function SelectOnClose () { }
|
function SelectOnClose () { }
|
||||||
@ -4092,7 +4120,7 @@ define('select2/dropdown/selectOnClose',[
|
|||||||
return SelectOnClose;
|
return SelectOnClose;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/dropdown/closeOnSelect',[
|
S2.define('select2/dropdown/closeOnSelect',[
|
||||||
|
|
||||||
], function () {
|
], function () {
|
||||||
function CloseOnSelect () { }
|
function CloseOnSelect () { }
|
||||||
@ -4125,7 +4153,7 @@ define('select2/dropdown/closeOnSelect',[
|
|||||||
return CloseOnSelect;
|
return CloseOnSelect;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/i18n/en',[],function () {
|
S2.define('select2/i18n/en',[],function () {
|
||||||
// English
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
@ -4170,7 +4198,7 @@ define('select2/i18n/en',[],function () {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/defaults',[
|
S2.define('select2/defaults',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./results',
|
'./results',
|
||||||
|
|
||||||
@ -4529,7 +4557,7 @@ define('select2/defaults',[
|
|||||||
return defaults;
|
return defaults;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/options',[
|
S2.define('select2/options',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./defaults',
|
'./defaults',
|
||||||
'./utils'
|
'./utils'
|
||||||
@ -4651,7 +4679,7 @@ define('select2/options',[
|
|||||||
return Options;
|
return Options;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('select2/core',[
|
S2.define('select2/core',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./options',
|
'./options',
|
||||||
'./utils',
|
'./utils',
|
||||||
@ -5178,7 +5206,7 @@ define('select2/core',[
|
|||||||
return Select2;
|
return Select2;
|
||||||
});
|
});
|
||||||
|
|
||||||
define('jquery.select2',[
|
S2.define('jquery.select2',[
|
||||||
'jquery',
|
'jquery',
|
||||||
'./select2/core',
|
'./select2/core',
|
||||||
'./select2/defaults'
|
'./select2/defaults'
|
||||||
@ -5218,4 +5246,22 @@ define('jquery.select2',[
|
|||||||
return Select2;
|
return Select2;
|
||||||
});
|
});
|
||||||
|
|
||||||
require('jquery.select2'); jQuery.fn.select2.amd = { define: define, require: require }; }());
|
// Return the AMD loader configuration so it can be used outside of this file
|
||||||
|
return {
|
||||||
|
define: S2.define,
|
||||||
|
require: S2.require
|
||||||
|
};
|
||||||
|
}());
|
||||||
|
|
||||||
|
// Autoload the jQuery bindings
|
||||||
|
// We know that all of the modules exist above this, so we're safe
|
||||||
|
var select2 = S2.require('jquery.select2');
|
||||||
|
|
||||||
|
// Hold the AMD module references on the jQuery function that was just loaded
|
||||||
|
// This allows Select2 to use the internal loader outside of this file, such
|
||||||
|
// as in the language files.
|
||||||
|
$.fn.select2.amd = S2;
|
||||||
|
|
||||||
|
// Return the Select2 instance for anyone who is importing it.
|
||||||
|
return select2;
|
||||||
|
}));
|
||||||
|
4
dist/js/select2.min.js
vendored
4
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"start": "define(['jquery'], function ($) {",
|
|
||||||
"end": "return require('jquery.select2'); });"
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"start": "/*! Select2 <%= package.version %> | https://github.com/select2/select2/blob/master/LICENSE.md */\n(function() { if (window.define) { var define = window.define; } if (window.require) { var require = window.require; } if (window.jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) { var define = jQuery.fn.select2.amd.define; var require = jQuery.fn.select2.amd.require; }",
|
|
||||||
"end": "require('jquery.select2'); jQuery.fn.select2.amd = { define: define, require: require }; }());"
|
|
||||||
}
|
|
6
src/js/banner.end.js
Normal file
6
src/js/banner.end.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Return the AMD loader configuration so it can be used outside of this file
|
||||||
|
return {
|
||||||
|
define: S2.define,
|
||||||
|
require: S2.require
|
||||||
|
};
|
||||||
|
}());
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"start": "/*!\n * Select2 <%= package.version %>\n * https://select2.github.io\n *\n * Released under the MIT license\n * https://github.com/select2/select2/blob/master/LICENSE.md\n */\n(function() { if (window.define) { var define = window.define; } if (window.require) { var require = window.require; } if (window.jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) { var define = jQuery.fn.select2.amd.define; var require = jQuery.fn.select2.amd.require; }",
|
|
||||||
"end": "require('jquery.select2'); jQuery.fn.select2.amd = { define: define, require: require }; }());"
|
|
||||||
}
|
|
6
src/js/banner.start.js
Normal file
6
src/js/banner.start.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
(function () {
|
||||||
|
// Restore the Select2 AMD loader so it can be used
|
||||||
|
// Needed mostly in the language files, where the loader is not inserted
|
||||||
|
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
|
||||||
|
var S2 = jQuery.fn.select2.amd;
|
||||||
|
}
|
5
src/js/select2/translation.js
vendored
5
src/js/select2/translation.js
vendored
@ -1,6 +1,7 @@
|
|||||||
define([
|
define([
|
||||||
'jquery'
|
'jquery',
|
||||||
], function ($) {
|
'require'
|
||||||
|
], function ($, require) {
|
||||||
function Translation (dict) {
|
function Translation (dict) {
|
||||||
this.dict = dict || {};
|
this.dict = dict || {};
|
||||||
}
|
}
|
||||||
|
12
src/js/wrapper.end.js
Normal file
12
src/js/wrapper.end.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Autoload the jQuery bindings
|
||||||
|
// We know that all of the modules exist above this, so we're safe
|
||||||
|
var select2 = S2.require('jquery.select2');
|
||||||
|
|
||||||
|
// Hold the AMD module references on the jQuery function that was just loaded
|
||||||
|
// This allows Select2 to use the internal loader outside of this file, such
|
||||||
|
// as in the language files.
|
||||||
|
$.fn.select2.amd = S2;
|
||||||
|
|
||||||
|
// Return the Select2 instance for anyone who is importing it.
|
||||||
|
return select2;
|
||||||
|
}));
|
23
src/js/wrapper.start.js
Normal file
23
src/js/wrapper.start.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*!
|
||||||
|
* Select2 <%= package.version %>
|
||||||
|
* https://select2.github.io
|
||||||
|
*
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://github.com/select2/select2/blob/master/LICENSE.md
|
||||||
|
*/
|
||||||
|
(function (factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['jquery'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node/CommonJS
|
||||||
|
factory(require('jquery'));
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory(jQuery);
|
||||||
|
}
|
||||||
|
}(function (jQuery) {
|
||||||
|
// This is needed so we can catch the AMD loader configuration and use it
|
||||||
|
// The inner file should be wrapped (by `banner.start.js`) in a function that
|
||||||
|
// returns the AMD loader references.
|
||||||
|
var S2 =
|
Loading…
Reference in New Issue
Block a user