Added some comments on the JS
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0c58fa1b1e
commit
69fe3c0299
1 changed files with 8 additions and 0 deletions
|
@ -179,7 +179,15 @@
|
||||||
|
|
||||||
@include ('partials.bootstrap-table')
|
@include ('partials.bootstrap-table')
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<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() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$("#uploadFile").on('change',function(event){
|
$("#uploadFile").on('change',function(event){
|
||||||
|
|
Loading…
Add table
Reference in a new issue