Alexander Musikhin 7 hónapja
szülő
commit
a54de952bf

+ 1 - 1
resources/views/catalog/index.blade.php

@@ -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>

+ 3 - 2
resources/views/partials/submit.blade.php

@@ -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);
         });