code refactoring
This commit is contained in:
parent
270dfb42bd
commit
85a5b19878
4
public/akaunting-js/generalAction.js
vendored
4
public/akaunting-js/generalAction.js
vendored
@ -29,6 +29,9 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
|
|||||||
let td_item = td[i];
|
let td_item = td[i];
|
||||||
|
|
||||||
td_item.addEventListener("click", (event) => {
|
td_item.addEventListener("click", (event) => {
|
||||||
|
if (document.body.clientWidth < 768 && event.target.closest('[overflow-x-hidden]')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// click disabled when preview dialog is open
|
// click disabled when preview dialog is open
|
||||||
if (event.target.closest('[data-tooltip-target]')) {
|
if (event.target.closest('[data-tooltip-target]')) {
|
||||||
return;
|
return;
|
||||||
@ -436,6 +439,7 @@ function marqueeAnimation(truncate) {
|
|||||||
|
|
||||||
//there is overflow class for the animation does not overflow the width
|
//there is overflow class for the animation does not overflow the width
|
||||||
truncate.parentElement.parentElement.classList.add('overflow-x-hidden');
|
truncate.parentElement.parentElement.classList.add('overflow-x-hidden');
|
||||||
|
truncate.parentElement.parentElement.setAttribute('overflow-x-hidden', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="info">
|
<x-slot name="info">
|
||||||
<div class="mt-3">
|
<div class="mt-4">
|
||||||
|
<x-index.default text="{{ trans('accounts.default_account') }}" />
|
||||||
|
|
||||||
@if (! $account->enabled)
|
@if (! $account->enabled)
|
||||||
<x-index.disable text="{{ trans_choice('general.accounts', 1) }}" />
|
<x-index.disable text="{{ trans_choice('general.accounts', 1) }}" />
|
||||||
@endif
|
@endif
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@if (! empty($status))
|
@if (! empty($status))
|
||||||
<div class="ltr:ml-4 rtl:mr-4">
|
<div class="ltr:ml-4 rtl:mr-4 mt-2">
|
||||||
{!! $status !!}
|
{!! $status !!}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@if (! empty($status))
|
@if (! empty($status))
|
||||||
<div class="ltr:ml-4 rtl:mr-4">
|
<div class="ltr:ml-4 rtl:mr-4 mt-2">
|
||||||
{!! $status !!}
|
{!! $status !!}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@if (! empty($status))
|
@if (! empty($status))
|
||||||
<div class="ltr:ml-4 rtl:mr-4">
|
<div class="ltr:ml-4 rtl:mr-4 mt-2">
|
||||||
{!! $status !!}
|
{!! $status !!}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@if (! empty($status))
|
@if (! empty($status))
|
||||||
<div class="ltr:ml-4 rtl:mr-4">
|
<div class="ltr:ml-4 rtl:mr-4 mt-2">
|
||||||
{!! $status !!}
|
{!! $status !!}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user