Skip to content

Commit

Permalink
Fix buttons on SummariesExecute template for exporting to CSV and JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Mar 7, 2024
1 parent 49c7d33 commit 02bdc5d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/Views/summariesExecute.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,16 @@
</div>
</div>
</main>

<script {csp-script-nonce}>
window.onload = function () {
$(document).ready(function() {
$("#button_create").remove();
$("#button_import_csv").remove();
$("#button_import_json").remove();
$("#button_default_items").remove();
$("#button_export_json").attr("href", "<?= url_to('summariesExecute', $meta->id) ?>?format=json");
$("#button_export_csv").attr("href", "<?= url_to('summariesExecute', $meta->id) ?>?format=csv");
});
}
</script>

0 comments on commit 02bdc5d

Please sign in to comment.