Skip to content

Commit

Permalink
fix filtro utenti
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Aug 4, 2024
1 parent 90c65a8 commit d750e35
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/public/js/gasdotto.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/public/js/gasdotto.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/gasdotto.js": "/js/gasdotto.js?id=c80f8b235b90f882ed3a36b93ca9e3f3",
"/js/gasdotto.js": "/js/gasdotto.js?id=8343ed592713ef47b7f1d616470b4a37",
"/css/gasdotto.css": "/css/gasdotto.css?id=944fde138a68e0877df0d9da8e03d933"
}
2 changes: 1 addition & 1 deletion code/resources/assets/js/callables.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Callables {
*/
static collectFilteredUsers(form) {
form.find('input:hidden[name^="users"]').remove();
let table = $('#user-list');
let table = $(form.find('input:hidden[name=collectFilteredUsers]').val());

if (table.is('table')) {
$('tbody tr:visible', table).each(function() {
Expand Down
2 changes: 2 additions & 0 deletions code/resources/views/movement/credits.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
<div class="modal-footer">
<form class="form-inline iblock inner-form" action="{{ url('movements/document/credits/csv?dummy=1') }}" method="GET">
<input type="hidden" name="pre-saved-function" value="collectFilteredUsers">
<input type="hidden" name="collectFilteredUsers" value="#creditsTable">
<input type="hidden" name="pre-saved-function" value="formToDownload">
<button type="submit" class="btn btn-success">{{ _i('Esporta CSV') }} <i class="bi-download"></i></button>
</form>
Expand Down Expand Up @@ -129,6 +130,7 @@
<form class="form-horizontal inner-form" method="POST" action="{{ route('notifications.store') }}">
<input type="hidden" name="close-modal" value="1">
<input type="hidden" name="pre-saved-function" value="collectFilteredUsers">
<input type="hidden" name="collectFilteredUsers" value="#creditsTable">
<input type="hidden" name="type" value="notification">

@include('notification.base-edit', [
Expand Down
1 change: 1 addition & 0 deletions code/resources/views/pages/users.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<x-larastrap::modal id="exportCSVusers" :title="_i('Esporta CSV')" classes="close-on-submit">
<x-larastrap::iform method="GET" :action="url('users/export')" :buttons="[['label' => _i('Download'), 'type' => 'submit']]">
<input type="hidden" name="pre-saved-function" value="collectFilteredUsers">
<input type="hidden" name="collectFilteredUsers" value="#user-list">
<input type="hidden" name="pre-saved-function" value="formToDownload">

<p>
Expand Down

0 comments on commit d750e35

Please sign in to comment.