Skip to content

Commit

Permalink
fix controllo credito per prenotazione
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Nov 15, 2023
1 parent 33f25bf commit 09d8931
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 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=bcc305898791465cd3619d09b5e8c6cf",
"/js/gasdotto.js": "/js/gasdotto.js?id=aaaef7490dd7711368044bd2537842ba",
"/css/gasdotto.css": "/css/gasdotto.css?id=1319b6248551694a7cc664f14b15fa9c"
}
4 changes: 3 additions & 1 deletion code/resources/assets/js/bookings.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ class Bookings
var max_bookable = form.find('input:hidden[name="max-bookable"]');
if (max_bookable.length != 0) {
max_bookable = parseFloat(max_bookable.val());
form.find('button[type=submit]').prop('disabled', grand_total > max_bookable);
utils.j().submitButton(form).each(function() {
$(this).prop('disabled', grand_total > max_bookable);
});
}
}

Expand Down
4 changes: 2 additions & 2 deletions code/resources/views/booking/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'label' => _i('Salva'),
'type' => 'submit',
'color' => 'success',
'classes' => ['saving-button'],
'attributes' => ['type' => 'submit'],
]
];
Expand Down Expand Up @@ -267,7 +267,7 @@
Totale: <span class="all-bookings-total">{{ printablePrice($grand_total) }}</span> {{ $currency_symbol }}
</div>
<div class="col-auto">
<button class="saving-button btn btn-success">Salva</button>
<button class="btn btn-success" type="submit">Salva</button>
</div>
</div>
</div>
Expand Down

0 comments on commit 09d8931

Please sign in to comment.