53c9d53166
When `jQuery.noConflict` is called, the global `$` variable is not defined. We cannot assume in the code that the variable is defined, and instead should always make sure to import the `jquery` module when we need jQuery. This fixes all of the issues where we are assuming that `$` is defined globally when we are not importing the module. This also fixes the issues when defining the `jQuery.fn.select2.amd` modules where we were always attaching to the `$` object instead of the `jQuery` object. This closes https://github.com/select2/select2/issues/2947.
1 line
909 B
JavaScript
1 line
909 B
JavaScript
window.jQuery=window.jQuery||{},function(){jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd&&(define=jQuery.fn.select2.amd.define,require=jQuery.fn.select2.amd.require),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…"}}}),require("jquery.select2"),jQuery.fn.select2.amd={define:define,require:require}}(); |