diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index 0743d8107..9458e6820 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, @@ -472,6 +478,10 @@ document.querySelectorAll('[data-page-title-first]').forEach((first) => { let title_truncate = first.querySelector('[data-title-truncate]'); if (title_truncate !== null) { + //added for equalize h1 width and parent element width. Because parent element has -ml-0.5 so didn't equalize + first.querySelector('h1').classList.add('mr-0.5'); + //added for equalize h1 width and parent element width. Because parent element has -ml-0.5 so didn't equalize + if (first.clientWidth < title_truncate.clientWidth && second.clientHeight > 0) { // added specific width styling for truncate text title_truncate.style.width = first.clientWidth + 'px'; @@ -499,6 +509,8 @@ document.querySelectorAll('[data-page-title-first]').forEach((first) => { this.classList.add('truncate'); }); // added truncate animation for truncated text + + first.querySelector('h1').classList.remove('mr-0.5'); } } 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
-