From d8e5cfb7d69403e6b5ae5be6a9e554d86137edcd Mon Sep 17 00:00:00 2001 From: David Brazda Date: Sat, 25 Nov 2023 13:47:03 +0100 Subject: [PATCH] filter strat bugfix --- v2realbot/static/js/mytables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2realbot/static/js/mytables.js b/v2realbot/static/js/mytables.js index 1872e13..658890a 100644 --- a/v2realbot/static/js/mytables.js +++ b/v2realbot/static/js/mytables.js @@ -201,14 +201,14 @@ $(document).ready(function () { $('#button_filter_strat').click(function () { if ($('#button_filter_strat').hasClass('active')) { $('#button_filter_strat').removeClass('active'); - archiveRecords.columns().search("").draw(); + archiveRecords.search("").draw(); console.log("draw") } else { row = stratinRecords.row('.selected').data(); if (row) { $('#button_filter_strat').addClass('active'); - archiveRecords.column(1).search(row.id).draw(); + archiveRecords.search(row.id).draw(); console.log("filteredon",row.id) } }