diff options
author | zsloan | 2023-02-13 19:33:19 +0000 |
---|---|---|
committer | zsloan | 2023-02-13 19:33:19 +0000 |
commit | db3c7d0e75544db4f2fce685051545eedaee6546 (patch) | |
tree | 223fe37ed95888aff2e872c28224e33a12ffede3 | |
parent | a6e8cea15bbab4fd6f45ea0cab50dc25ecb14476 (diff) | |
download | genenetwork2-db3c7d0e75544db4f2fce685051545eedaee6546.tar.gz |
Enable mapping compute buttons and change text back to Compute after tables have loaded
-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(); |