From a520c2fd2fdec870c2ab424d050b82fb4be31472 Mon Sep 17 00:00:00 2001 From: David Brazda Date: Mon, 27 Nov 2023 17:03:23 +0100 Subject: [PATCH] finalizace css --- v2realbot/static/index.html | 4 ++-- v2realbot/static/js/archivetables.js | 19 ++++++++++++++++++- v2realbot/static/main.css | 10 +++++++++- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/v2realbot/static/index.html b/v2realbot/static/index.html index f72e114..2f666e8 100644 --- a/v2realbot/static/index.html +++ b/v2realbot/static/index.html @@ -57,7 +57,7 @@ - + @@ -855,7 +855,7 @@ - + diff --git a/v2realbot/static/js/archivetables.js b/v2realbot/static/js/archivetables.js index f3d564c..d1f114e 100644 --- a/v2realbot/static/js/archivetables.js +++ b/v2realbot/static/js/archivetables.js @@ -1149,7 +1149,8 @@ var archiveRecords = select: { info: true, style: 'multi', - selector: 'tbody > tr:not(.group-header) td' + //selector: 'tbody > tr:not(.group-header)' + selector: 'tbody > tr:not(.group-header)' }, paging: true, // lengthChange: false, @@ -1299,6 +1300,22 @@ var archiveRecords = // } }); +//workaround pro spatne oznacovani selectu i pro group-headery +$('#archiveTable tbody').on('click', 'tr.group-header', function(event) { + var $row = $(this); + + // Schedule the class removal/addition for the next event loop + setTimeout(function() { + if ($row.hasClass("selected")) { + console.log("Header selected, removing selection"); + $row.removeClass("selected"); + } else { + console.log("Header not selected, adding selection"); + $row.addClass("selected"); + } + }, 0); +}); + function extractNumbersFromString(str) { // Regular expression to match the pattern #number1/number2 const pattern = /#(\d+)\/(\d+)/; diff --git a/v2realbot/static/main.css b/v2realbot/static/main.css index 5952cba..978ba3d 100644 --- a/v2realbot/static/main.css +++ b/v2realbot/static/main.css @@ -274,7 +274,7 @@ table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sort .group-header .batchheader-batch-id { color: #a1a1a1; /* Highlight period info */ - /* font-weight: bold; */ + font-weight: 400; } .group-header .batchheader-period-info { @@ -409,6 +409,14 @@ html { width: 35%; } } +/* +.even { + display: block; +} + +.odd { + display: block; +} */ @media (min-width: 2001px) { .msgContainerInner {