Skip to content

Commit

Permalink
fix(tagstatistics): fix global datatable search not working
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashimpens committed Oct 1, 2024
1 parent ec87249 commit 3dcce80
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions source/src/main/webapp/js/pages/ReportingCampaignStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ $.when($.getScript("js/global/global.js")).then(function () {
initGlobalPage();
}

//Hide the columns header search bar (searchable activated on specific columns to allow the global search on datatable, but not useful to show the header filter search bar on each column)
$('#tagStatisticTable').on('draw.dt', function () {
$(".filterHeader span").hide();
});
$('#tagStatisticDetailTable').on('draw.dt', function () {
$(".filterHeader span").hide();
});

$('[data-toggle="popover"]').popover({
'placement': 'auto',
'container': 'body'}
Expand Down Expand Up @@ -295,29 +303,29 @@ function aoColumnsFunc(tableId) {
{
"data": "campaign",
"name": "campaign",
"searchable": false,
"searchable": true,
"width": "80px",
"title": doc.getDocLabel("page_campaignstatistics", "campaign_col")
},
{
"data": "systemList",
"name": "systems",
"searchable": false,
"searchable": true,
"width": "120px",
"className": "center",
"title": doc.getDocLabel("page_campaignstatistics", "systems_col")
},
{
"data": "applicationList",
"name": "applications",
"searchable": false,
"searchable": true,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "applications_col")
},
{
"data": "campaignGroup1",
"name": "Campaign Group 1",
"searchable": false,
"searchable": true,
"width": "60px",
"title": doc.getDocLabel("page_campaignstatistics", "group1_col")
},
Expand Down Expand Up @@ -399,31 +407,31 @@ function aoColumnsDetailFunc(tableId) {
{
"data": "environment",
"name": "environment",
"searchable": false,
"searchable": true,
"width": "90px",
"className": "center",
"title": doc.getDocLabel("page_campaignstatistics", "environment_col")
},
{
"data": "country",
"name": "country",
"searchable": false,
"searchable": true,
"width": "90px",
"className": "center",
"title": doc.getDocLabel("page_campaignstatistics", "country_col")
},
{
"data": "systemList",
"name": "systems",
"searchable": false,
"searchable": true,
"width": "120px",
"className": "center",
"title": doc.getDocLabel("page_campaignstatistics", "systems_col")
},
{
"data": "applicationList",
"name": "applications",
"searchable": false,
"searchable": true,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "applications_col")
},
Expand Down

0 comments on commit 3dcce80

Please sign in to comment.