ColorlibHQ / AdminLTE

AdminLTE - Free admin dashboard template based on Bootstrap 5
https://adminlte.io
MIT License
44.06k stars 18.16k forks source link

AdminLTE latest - form didn't recieve input checkbox #394

Closed digicp closed 9 years ago

digicp commented 9 years ago

Hi there, is there a possibility that AdminLTE will not post this code:

Input type text etc is posted and received:

Is this a known problem?

almasaeed2010 commented 9 years ago

Hello,

Post as in send the information to the server?

digicp commented 9 years ago

No, in a HTML form that submit's data to the database

almasaeed2010 commented 9 years ago

AdminLTE doesn't deal with backend issues. If your server is not receiving data, it is possible that you setup your form incorrectly. If you post your form here, I may be able to check the markup.

digicp commented 9 years ago

I disabled iCheck and now it works fine...

$(function () { //iCheck for checkbox and radio inputs $('input[type="checkbox"]').iCheck({ checkboxClass: 'icheckbox_minimal-blue', radioClass: 'iradio_minimal-blue' });

//When unchecking the checkbox
$("#check-all").on('ifUnchecked', function (event) {
  //Uncheck all checkboxes
  $("input[type='checkbox']", ".user_permissions_table").iCheck("uncheck");
});
//When checking the checkbox
$("#check-all").on('ifChecked', function (event) {
  //Check all checkboxes
  $("input[type='checkbox']", ".user_permissions_table").iCheck("check");
});

});

almasaeed2010 commented 9 years ago

iCheck deals with input a bit differently. Were you submitting your form via ajax?

digicp commented 9 years ago

I don't submit via ajax

almasaeed2010 commented 9 years ago

I will look into the iCheck plugin soon. Thank you for reporting this!