Bug 32030: ERM - Vue - Datatables fix (follow-up)

Do not sort when the filter th is cliqued

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-03-23 13:09:10 +01:00 committed by Tomas Cohen Arazi
parent 539866d192
commit 97494015cd
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -849,7 +849,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
if ( add_filters ) {
var table_dt = table.DataTable();
$(this).find('thead tr').clone(true).appendTo( $(this).find('thead') );
$(this).find('thead tr').clone().appendTo( $(this).find('thead') );
$(this).find('thead tr:eq(1) th').each( function (i) {
var is_searchable = table_dt.settings()[0].aoColumns[i].bSearchable;