From 16ab4d5c2566e0612592f9949958a2ef6ecc0781 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Fri, 16 Jan 2026 09:38:09 +0100 Subject: [PATCH] [CHANGE] Enabled global search in the campaign table --- CHANGELOG.md | 1 + sovtimer/templates/sovtimer/base.html | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d044ed9..a7beca0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ Section Order: ### Changed +- Enabled global search in the campaign table - Allow clicking on table headers to change the sorting order ## [3.3.2] - 2026-01-05 diff --git a/sovtimer/templates/sovtimer/base.html b/sovtimer/templates/sovtimer/base.html index c5ca8ca..63e9974 100644 --- a/sovtimer/templates/sovtimer/base.html +++ b/sovtimer/templates/sovtimer/base.html @@ -33,15 +33,15 @@ dataTables: { paging: true, languageUrl: '{{ DT_LANG_PATH }}', - layout: { + layout: { // see https://datatables.net/reference/option/layout topStart: 'pageLength', - topEnd: null, // Removing the default search bar (Default is 'search', see https://datatables.net/reference/option/layout#Default) + topEnd: 'search', bottomStart: 'info', bottomEnd: 'paging' }, - ordering: { - indicators: false, - handler: true + ordering: { // https://datatables.net/reference/option/ordering + handler: true, // Enable ordering by clicking on column headers + indicators: false, // Disable ordering indicators on column headers so ColumnControl can manage them }, columnControl: [ {