From db3c7d0e75544db4f2fce685051545eedaee6546 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 13 Feb 2023 19:33:19 +0000 Subject: Enable mapping compute buttons and change text back to Compute after tables have loaded --- .../wqflask/static/new/javascript/initialize_show_trait_tables.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js index 9b9ed68b..614b3e8a 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -222,6 +222,11 @@ for (var i = 0; i < tableIds.length; i++) { } create_table(tableId, js_data['sample_lists'][i], columnDefs, tableSettings); + + // Enable mapping compute buttons and replace their text only after table has loaded + // This is because submitting the form prior to the table loading causes an error + $('button.submit_special').html(' Compute'); + $('button.submit_special').prop('disabled', false); } primary_table = $('#samples_primary').DataTable(); -- cgit v1.2.3