瀏覽代碼

fix iCheck integration

Thomas Rabaix 11 年之前
父節點
當前提交
36d9de23aa
共有 2 個文件被更改,包括 7 次插入10 次删除
  1. 7 0
      Resources/public/Admin.js
  2. 0 10
      Resources/public/App.js

+ 7 - 0
Resources/public/Admin.js

@@ -66,6 +66,13 @@ var Admin = {
     },
     setup_select2: function(subject) {
         if (window.SONATA_CONFIG && window.SONATA_CONFIG.USE_SELECT2 && window.Select2) {
+
+
+            jQuery("input[type='checkbox'], input[type='radio']", subject).iCheck({
+                checkboxClass: 'icheckbox_minimal',
+                radioClass: 'iradio_minimal'
+            });
+
             jQuery('select:not([data-sonata-select2="false"])', subject).each(function() {
                 var select = $(this);
 

+ 0 - 10
Resources/public/App.js

@@ -120,16 +120,6 @@ $(function() {
     $(".wrapper").resize(function() {
         _fix();
     });
-
-    /*
-     * We are gonna initialize all checkbox and radio inputs to
-     * iCheck plugin in.
-     * You can find the documentation at http://fronteed.com/iCheck/
-     */
-    $("input[type='checkbox'], input[type='radio']").iCheck({
-        checkboxClass: 'icheckbox_minimal',
-        radioClass: 'iradio_minimal'
-    });
 });
 
 /*