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
1009 B
JavaScript
1 line
1009 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/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"Вчитување резултати…"},maximumSelection:function(e){var t="Можете да изберете само "+e.maximum+" ставк";return e.maximum===1?t+="а":t+="и",t},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"}}}),require("jquery.select2"),jQuery.fn.select2.amd={define:define,require:require}}(); |