Roberto Santini 3 роки тому
джерело
коміт
f1ad265bce

+ 9
- 2
resources/views/issue/componi_admin_report.blade.php Переглянути файл

@@ -44,7 +44,7 @@ foreach(range(0, $totalProjects) as $index){
44 44
     </h2>
45 45
   </x-slot>
46 46
 
47
-  {!! Form::open(['route' => 'issue.admin_report']) !!}
47
+  {!! Form::open(['route' => 'issue.admin_report', 'id' => 'report_form']) !!}
48 48
   <div class="row justify-content-center mb-4">
49 49
     <div class="col-xl-6 col-lg-6 col-md px-md-3 px-2">
50 50
       <div class="card">
@@ -67,7 +67,7 @@ foreach(range(0, $totalProjects) as $index){
67 67
 
68 68
           <div class="form-row">
69 69
             <div class="form-group col-md">
70
-              <button type="submit" class="btn btn-primary">Genera</button>
70
+              <button type="button" onclick="submitForm()" class="btn btn-primary">Genera</button>
71 71
             </div>
72 72
           </div>
73 73
 
@@ -142,4 +142,11 @@ $(document).ready(function(){
142 142
 function load_custom_fields(select){
143 143
   $('#custom_fields').load("{{ route('issue.load_custom_fields') }}?project_id="+$(select).val());
144 144
 }
145
+
146
+function submitForm(){
147
+  $('#report_form').submit();
148
+  $("input[name='progetto[]']:checked").each(function (){
149
+    $(this).prop( "checked", false);
150
+  });
151
+}
145 152
 </script>

Завантаження…
Відмінити
Зберегти