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) { 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 '