Event column instructions maked unsortabe

This commit is contained in:
Luis Calvo 2019-09-17 19:54:34 +02:00
parent 66a97f2f66
commit 0c60f13ccd
1 changed files with 9 additions and 0 deletions

View File

@ -1247,6 +1247,14 @@ try {
];
}
// Identifies column instructions to make it unsortable.
if (in_array('instructions', $fields) > 0) {
$fields[array_search('instructions', $fields)] = [
'text' => 'instructions',
'class' => 'column-instructions',
];
}
$evento_id = array_search('evento', $fields);
if ($evento_id !== false) {
$fields[$evento_id] = [
@ -1411,6 +1419,7 @@ try {
'no_sortable_columns' => [
-1,
-2,
'column-instructions',
],
'ajax_postprocess' => 'process_datatables_item(item)',
'drawCallback' => 'process_datatables_callback(this, settings)',