fix
This commit is contained in:
parent
0c31bd4783
commit
7fc7e8a272
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import { initializeBootstrap } from '/assets/js/modules/initializeBootstrap.js';
|
||||
|
||||
function loadMore(pid,sort,offset,id, trigger) {
|
||||
function loadMore(pid,sort,offset,id,trigger) {
|
||||
const btn = document.getElementById(trigger) // trigger button
|
||||
const el = document.getElementById(id) // target element to populate
|
||||
const form = new FormData();
|
||||
|
|
|
@ -523,7 +523,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if offset %}
|
||||
<button class="mt-2 w-full btn btn-gray" id="load-more-button" onclick="loadMore({{pid}},'{{sort}}',{{offset}},'comment-section', this.id); this.disabled = true;">
|
||||
<button class="mt-2 w-full btn btn-gray" id="load-more-button" onclick="loadMore({{pid}},'{{sort}}',{{offset}},'comment-section',this.id); this.disabled = true;">
|
||||
Load more comments
|
||||
</button>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue