matrix.tables.js 780 B

12345678910111213141516171819202122232425262728
  1. $(document).ready(function(){
  2. $('.data-table').dataTable({
  3. "bJQueryUI": true,
  4. "sPaginationType": "full_numbers",
  5. "sDom": '<""l>t<"F"fp>'
  6. });
  7. $('input[type=checkbox],input[type=radio],input[type=file]').uniform();
  8. $('select').select2();
  9. $("span.icon input:checkbox, th input:checkbox").click(function() {
  10. var checkedStatus = this.checked;
  11. var checkbox = $(this).parents('.widget-box').find('tr td:first-child input:checkbox');
  12. checkbox.each(function() {
  13. this.checked = checkedStatus;
  14. if (checkedStatus == this.checked) {
  15. $(this).closest('.checker > span').removeClass('checked');
  16. }
  17. if (this.checked) {
  18. $(this).closest('.checker > span').addClass('checked');
  19. }
  20. });
  21. });
  22. });