X-Git-Url: https://git.nmode.ca/Rnaught/blobdiff_plain/2d34b71c7a8da7fd0fac59b934145286b2be7b1f..e920b3e514e717fc05ed524267d3b53e272fec51:/inst/app/www/script.js diff --git a/inst/app/www/script.js b/inst/app/www/script.js deleted file mode 100644 index 30066d1..0000000 --- a/inst/app/www/script.js +++ /dev/null @@ -1,21 +0,0 @@ -$(document).ready(() => { - // Enable tooltips. - $('[data-bs-toggle="tooltip"]').tooltip(); - - // Toggle the text in the bulk data help button. - $('#data-format-toggle').on('click', event => { - btn = $(event.target); - show_format = 'Show required format'; - btn.text(btn.text() === show_format ? 'Hide required format' : show_format); - }); - - // Trigger the file selector via a custom button. - $('#data-upload-select').on('click', () => { - $('#data_upload').trigger('click'); - }); - - // Display the name of the uploaded file. - $('#data_upload').on('change', event => { - $('#data-upload-name').attr('placeholder', event.target.files[0].name); - }); -});