소스 검색

$ to jQuery

When you use 2 different jQuery initializations (when you use RequireJS) the $ sign becomes out of scope when select2's are initiated, using jQuery instead of $ will fix this.
belens 10 년 전
부모
커밋
e21501eef9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Resources/public/Admin.js

+ 1 - 1
Resources/public/Admin.js

@@ -70,7 +70,7 @@ var Admin = {
         if (window.SONATA_CONFIG && window.SONATA_CONFIG.USE_SELECT2 && window.Select2) {
 
             jQuery('select:not([data-sonata-select2="false"])', subject).each(function() {
-                var select = $(this);
+                var select = jQuery(this);
 
                 var allowClearEnabled = false;