浏览代码

$ 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;