Skip to content

Commit

Permalink
fix iCheck integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rabaix committed Apr 24, 2014
1 parent 5d222ec commit 36d9de2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 7 additions & 0 deletions Resources/public/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
10 changes: 0 additions & 10 deletions Resources/public/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});
});

/*
Expand Down

0 comments on commit 36d9de2

Please sign in to comment.