diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index 0743d8107..9fd89774a 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -244,10 +244,13 @@ function runTooltip(tooltipToggleEl) { function show() { // Make the tooltip visible - tooltipEl.classList.remove("opacity-0"); - tooltipEl.classList.add("opacity-100"); - tooltipEl.classList.remove("invisible"); - tooltipEl.classList.add("visible"); // Enable the event listeners + if (tooltipEl.classList.contains("opacity-100", "visible")) { + tooltipEl.classList.remove("opacity-0"); + tooltipEl.classList.add("opacity-100"); + tooltipEl.classList.remove("invisible"); + tooltipEl.classList.add("visible"); + } + // Enable the event listeners popperInstance.setOptions((options) => ({ ...options, @@ -265,10 +268,13 @@ function runTooltip(tooltipToggleEl) { function hide() { // Hide the tooltip - tooltipEl.classList.remove("opacity-100"); - tooltipEl.classList.add("opacity-0"); - tooltipEl.classList.remove("visible"); - tooltipEl.classList.add("invisible"); // Disable the event listeners + if (tooltipEl.classList.contains("opacity-100", "visible")) { + tooltipEl.classList.remove("opacity-100"); + tooltipEl.classList.add("opacity-0"); + tooltipEl.classList.remove("visible"); + tooltipEl.classList.add("invisible"); + } + // Disable the event listeners popperInstance.setOptions((options) => ({ ...options, diff --git a/resources/views/components/form/group/invoice_text.blade.php b/resources/views/components/form/group/invoice_text.blade.php index 9f4126e5e..49f142384 100644 --- a/resources/views/components/form/group/invoice_text.blade.php +++ b/resources/views/components/form/group/invoice_text.blade.php @@ -156,8 +156,8 @@ @if (! empty($remote)) remote-action="{{ $attributes['remote_action'] }}" - @if (! empty($attributes['currecny_code'])) - currency-code="{{ $attributes['currecny_code'] }}" + @if (! empty($attributes['currency_code'])) + currency-code="{{ $attributes['currency_code'] }}" @endif @endif diff --git a/resources/views/components/form/group/select.blade.php b/resources/views/components/form/group/select.blade.php index 2802fb0ef..129fac719 100644 --- a/resources/views/components/form/group/select.blade.php +++ b/resources/views/components/form/group/select.blade.php @@ -174,8 +174,8 @@ @if (! empty($remote)) remote-action="{{ $attributes['remote_action'] }}" - @if (! empty($attributes['currecny_code'])) - currency-code="{{ $attributes['currecny_code'] }}" + @if (! empty($attributes['currency_code'])) + currency-code="{{ $attributes['currency_code'] }}" @endif @endif diff --git a/resources/views/components/form/input/select.blade.php b/resources/views/components/form/input/select.blade.php index a6b080761..901b942c3 100644 --- a/resources/views/components/form/input/select.blade.php +++ b/resources/views/components/form/input/select.blade.php @@ -160,8 +160,8 @@ @if (! empty($remote)) remote-action="{{ $attributes['remote_action'] }}" - @if (! empty($attributes['currecny_code'])) - currency-code="{{ $attributes['currecny_code'] }}" + @if (! empty($attributes['currency_code'])) + currency-code="{{ $attributes['currency_code'] }}" @endif @endif diff --git a/resources/views/portal/invoices/preview.blade.php b/resources/views/portal/invoices/preview.blade.php index 46fbf9f0c..b4630ac93 100644 --- a/resources/views/portal/invoices/preview.blade.php +++ b/resources/views/portal/invoices/preview.blade.php @@ -20,7 +20,7 @@ -
+
@if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled']))
@@ -80,7 +80,7 @@ not-required form-group-class="invisible" placeholder="{{ trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)]) }}" - change="onChangePaymentMethodSigned('{{ array_key_first($payment_methods) }}')" + change="onChangePaymentMethodSigned" /> @@ -128,7 +128,7 @@ @endif
-