Skip to content

A free open source IT asset/license management system

Added some comments on the JS

snipe69fe3c029928
diff --git a/resources/views/settings/backups.blade.php b/resources/views/settings/backups.blade.php
index 1a4c27489a..2113391b28 100644
--- a/resources/views/settings/backups.blade.php
+++ b/resources/views/settings/backups.blade.php
@@ -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){