Add javascript marquee effect for overflowing text on card badge names
This commit is contained in:
parent
262f0ea190
commit
e37731b74d
7 changed files with 47 additions and 48 deletions
|
|
@ -20,7 +20,10 @@
|
|||
document.activeElement.blur();
|
||||
fetch(`{% url 'cards:card_trade_offer_have_list' card.pk %}?order=` + this.order + '&page=' + this.page)
|
||||
.then(response => response.text())
|
||||
.then(html => { this.$refs.offerList.innerHTML = html; });
|
||||
.then(html => {
|
||||
this.$refs.offerList.innerHTML = html;
|
||||
window.processMarqueeElements && window.processMarqueeElements();
|
||||
});
|
||||
}
|
||||
}"
|
||||
x-init="loadOffers()"
|
||||
|
|
@ -60,7 +63,10 @@
|
|||
loadOffers() {
|
||||
fetch(`{% url 'cards:card_trade_offer_want_list' card.pk %}?order=` + this.order + '&page=' + this.page)
|
||||
.then(response => response.text())
|
||||
.then(html => { this.$refs.offerList.innerHTML = html; });
|
||||
.then(html => {
|
||||
this.$refs.offerList.innerHTML = html;
|
||||
window.processMarqueeElements && window.processMarqueeElements();
|
||||
});
|
||||
}
|
||||
}"
|
||||
x-init="loadOffers()"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,10 @@
|
|||
let url = window.location.pathname + '?order=' + this.order + '&group_by=' + groupParam + '&page=' + this.page;
|
||||
fetch(url, { headers: { 'x-requested-with': 'XMLHttpRequest' } })
|
||||
.then(response => response.text())
|
||||
.then(html => { this.$refs.cardList.innerHTML = html; });
|
||||
.then(html => {
|
||||
this.$refs.cardList.innerHTML = html;
|
||||
window.processMarqueeElements && window.processMarqueeElements();
|
||||
});
|
||||
}
|
||||
}"
|
||||
x-on:change-page.window="page = $event.detail.page; loadCards()">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue