@@ -42,7 +42,7 @@
<div class="modal-body">
<form action="{{ route('catalog.import') }}" method="post" enctype="multipart/form-data">
@csrf
- @include('partials.input', ['title' => 'XLSX файл', 'name' => 'import_file', 'type' => 'file'])
+ @include('partials.input', ['title' => 'XLSX файл', 'name' => 'import_file', 'type' => 'file', 'required' => true])
@include('partials.submit', ['name' => 'Импорт'])
</form>
</div>
@@ -16,11 +16,12 @@
}
});
- $('.btn').on('click', function (){
+ $('.buttons .btn').on('click', function (){
$('.buttons').addClass('d-none');
+
setTimeout(function () {
- $('.btn').removeClass('d-none');
+ $('.buttons').removeClass('d-none');
},
2000);