Added some comments on the JS

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-11-10 17:57:15 -08:00
parent 0c58fa1b1e
commit 69fe3c0299

View file

@ -179,7 +179,15 @@
@include ('partials.bootstrap-table')
<script>
/*
* This just disables the upload button via JS unless they have actually selected a file.
*
* Todo: - key off off of the javascript response for JS file upload info as well, so that if it fails that
* check (file size and type) we should also leave it disabled.
*/
$(document).ready(function() {
$("#uploadFile").on('change',function(event){