From 13e506ff8d4d2cb684fb048d1bd130f5938f257e Mon Sep 17 00:00:00 2001 From: Per Date: Tue, 24 Jan 2023 19:08:15 +0100 Subject: [PATCH] Fix delete modal popping up too often Fixes #34 --- admin/templates/results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/templates/results.php b/admin/templates/results.php index 63946cd..8c21b65 100644 --- a/admin/templates/results.php +++ b/admin/templates/results.php @@ -162,7 +162,6 @@ function create_data_tables() { }, "initComplete": function(settings, json) { init_controls(); - delete_init("name", "delete_participant.php", "participant_id", "table"); }, }); } @@ -239,6 +238,7 @@ function init_controls() { $(function() { create_data_tables(); + delete_init("name", "delete_participant.php", "participant_id", "table"); }); end()?> \ No newline at end of file