mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-11 23:32:56 +02:00
fix: transactions action bar error on page change
This commit is contained in:
@@ -2,13 +2,17 @@
|
|||||||
<div class="tw-sticky tw-bottom-4 tw-left-0 tw-right-0 tw-z-50 tw-hidden mx-auto tw-w-fit" id="actions-bar"
|
<div class="tw-sticky tw-bottom-4 tw-left-0 tw-right-0 tw-z-50 tw-hidden mx-auto tw-w-fit" id="actions-bar"
|
||||||
_="on change from #transactions-list or htmx:afterSettle from window
|
_="on change from #transactions-list or htmx:afterSettle from window
|
||||||
if no <input[type='checkbox']:checked/> in #transactions-list
|
if no <input[type='checkbox']:checked/> in #transactions-list
|
||||||
|
if #actions-bar
|
||||||
add .slide-in-bottom-reverse then settle
|
add .slide-in-bottom-reverse then settle
|
||||||
then add .tw-hidden to #actions-bar
|
then add .tw-hidden to #actions-bar
|
||||||
then remove .slide-in-bottom-reverse
|
then remove .slide-in-bottom-reverse
|
||||||
|
end
|
||||||
else
|
else
|
||||||
|
if #actions-bar
|
||||||
remove .tw-hidden from #actions-bar
|
remove .tw-hidden from #actions-bar
|
||||||
then trigger selected_transactions_updated
|
then trigger selected_transactions_updated
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end">
|
end">
|
||||||
<div class="card slide-in-bottom">
|
<div class="card slide-in-bottom">
|
||||||
<div class="card-body p-2 d-flex justify-content-between align-items-center gap-3">
|
<div class="card-body p-2 d-flex justify-content-between align-items-center gap-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user