From eb3f9b9c165d8df6b7e6c5c30297556e209f3cd4 Mon Sep 17 00:00:00 2001 From: Matthieu Barba Date: Fri, 3 May 2024 10:21:27 +0100 Subject: [PATCH 1/2] Add uploaded db to session --- upload_db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/upload_db.php b/upload_db.php index da96bca..03735dd 100755 --- a/upload_db.php +++ b/upload_db.php @@ -58,6 +58,7 @@ $new_db = scan_sqlite(); if ($new_db) { echo "Uploaded the database file to $new_db"; + if(!in_array($new_db, $_SESSION["db_ids"])){$_SESSION["db_ids"][]=$new_db;} } else { echo '
'; echo " "; From ee9388eb5ef44f4e2524e406784fb153c674b9e0 Mon Sep 17 00:00:00 2001 From: Matthieu Barba Date: Fri, 3 May 2024 10:49:39 +0100 Subject: [PATCH 2/2] Fix sticky table headers --- css/ranking.css | 2 +- js/list.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/css/ranking.css b/css/ranking.css index 9eb2014..18c6d69 100755 --- a/css/ranking.css +++ b/css/ranking.css @@ -36,7 +36,7 @@ h2 { } #ranking_box{ - overflow: scroll; + /* overflow: scroll; */ font-size: small; } diff --git a/js/list.js b/js/list.js index b806453..6a0b868 100755 --- a/js/list.js +++ b/js/list.js @@ -174,8 +174,8 @@ function update() { function update_page(data) { $('#message').empty(); $('#nbreaks').val("No"); - $('#ranking').stickyTableHeaders('destroy'); - $('#ranking').empty(); + $('#list').stickyTableHeaders('destroy'); + $('#list').empty(); if (!data) { $error = $('').text('Error: no data'); $('#message').append($error); @@ -189,6 +189,7 @@ function update_page(data) { update_permalink(); update_table( data ); } + $('#list').stickyTableHeaders(); } function preprocess_data(data) {