From e03c6cc246768a4f27ac97b0a744f437963fc397 Mon Sep 17 00:00:00 2001 From: whikernel Date: Thu, 14 Dec 2023 08:06:58 +0100 Subject: [PATCH] [#345][FIX] Fixes #365 - case filerting sorting --- source/app/static/assets/js/iris/case.asset.js | 5 ++--- source/app/static/assets/js/iris/overview.js | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/app/static/assets/js/iris/case.asset.js b/source/app/static/assets/js/iris/case.asset.js index 25382347c..e5732cb6b 100644 --- a/source/app/static/assets/js/iris/case.asset.js +++ b/source/app/static/assets/js/iris/case.asset.js @@ -435,9 +435,8 @@ $(document).ready(function(){ }, { "data": "asset_ip", "render": function (data, type, row, meta) { - if (type === 'display') { - datas = sanitizeHTML(data); - return datas; + if (type === 'display' && data != null) { + return ret_obj_dt_description(data); } return data; } diff --git a/source/app/static/assets/js/iris/overview.js b/source/app/static/assets/js/iris/overview.js index 6fb8db061..ec9518494 100644 --- a/source/app/static/assets/js/iris/overview.js +++ b/source/app/static/assets/js/iris/overview.js @@ -244,6 +244,7 @@ let OverviewTable = $("#overview_table").DataTable({ } }, select: true, + orderCellsTop: true, initComplete: function () { tableFiltering(this.api(), 'overview_table'); },