diff options
-rw-r--r-- | wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 5 |
1 files changed, 5 insertions, 0 deletions
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('<span class="glyphicon glyphicon-play-circle"></span> Compute'); + $('button.submit_special').prop('disabled', false); } primary_table = $('#samples_primary').DataTable(); |