src/pyams_skin/resources/js/myams.js
changeset 241 4b68a8759677
parent 234 085af6787574
child 245 79635dd71cca
equal deleted inserted replaced
240:007e0e70ef13 241:4b68a8759677
  3732 																   var sortable = sortables[index];
  3732 																   var sortable = sortables[index];
  3733 																   if (sortable !== undefined) {
  3733 																   if (sortable !== undefined) {
  3734 																	   column = columns[index] || {};
  3734 																	   column = columns[index] || {};
  3735 																	   column.bSortable = sortable;
  3735 																	   column.bSortable = sortable;
  3736 																	   columns[index] = column;
  3736 																	   columns[index] = column;
       
  3737 																   } else {
       
  3738 																	   columns[index] = columns[index] || {};
  3737 																   }
  3739 																   }
  3738 															   }
  3740 															   }
  3739 															   // Check columns types
  3741 															   // Check columns types
  3740 															   var sortTypes = $('th', table).listattr('data-ams-datatable-stype');
  3742 															   var sortTypes = $('th', table).listattr('data-ams-datatable-stype');
  3741 															   for (index = 0; index < sortTypes.length; index++) {
  3743 															   for (index = 0; index < sortTypes.length; index++) {
  3742 																   var sortType = sortTypes[index];
  3744 																   var sortType = sortTypes[index];
  3743 																   if (sortType) {
  3745 																   if (sortType) {
  3744 																	   column = columns[index] || {};
  3746 																	   column = columns[index] || {};
  3745 																	   column.sType = sortType;
  3747 																	   column.sType = sortType;
  3746 																	   columns[index] = column;
  3748 																	   columns[index] = column;
       
  3749 																   } else {
       
  3750 																	   columns[index] = columns[index] || {};
  3747 																   }
  3751 																   }
  3748 															   }
  3752 															   }
  3749 															   // Set options
  3753 															   // Set options
  3750 															   var dataOptions = {
  3754 															   var dataOptions = {
  3751 																   bJQueryUI: false,
  3755 																   bJQueryUI: false,
  3818 																		   case 'keytable':
  3822 																		   case 'keytable':
  3819 																			   checkers.push(window.keyTable);
  3823 																			   checkers.push(window.keyTable);
  3820 																			   sources.push(ams.baseURL + 'ext/jquery-dataTables-keyTable' + ams.devext + '.js');
  3824 																			   sources.push(ams.baseURL + 'ext/jquery-dataTables-keyTable' + ams.devext + '.js');
  3821 																			   break;
  3825 																			   break;
  3822 																		   case 'rowgrouping':
  3826 																		   case 'rowgrouping':
  3823 																			   checkers.push($.fn.rowGrouping());
  3827 																			   checkers.push($.fn.rowGrouping);
  3824 																			   sources.push(ams.baseURL + 'ext/jquery-dataTables-rowGrouping' + ams.devext + '.js');
  3828 																			   sources.push(ams.baseURL + 'ext/jquery-dataTables-rowGrouping' + ams.devext + '.js');
  3825 																			   break;
  3829 																			   break;
  3826 																		   case 'rowreordering':
  3830 																		   case 'rowreordering':
  3827 																			   checkers.push($.fn.rowReordering);
  3831 																			   checkers.push($.fn.rowReordering);
  3828 																			   sources.push(ams.baseURL + 'ext/jquery-dataTables-rowReordering' + ams.devext + '.js');
  3832 																			   sources.push(ams.baseURL + 'ext/jquery-dataTables-rowReordering' + ams.devext + '.js');