This commit is contained in:
kek7198 2021-12-05 20:02:01 -06:00
parent 0c31bd4783
commit 7fc7e8a272
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import { initializeBootstrap } from '/assets/js/modules/initializeBootstrap.js'; 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 btn = document.getElementById(trigger) // trigger button
const el = document.getElementById(id) // target element to populate const el = document.getElementById(id) // target element to populate
const form = new FormData(); const form = new FormData();

View file

@ -523,7 +523,7 @@
{% endif %} {% endif %}
{% if offset %} {% 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 Load more comments
</button> </button>
{% endif %} {% endif %}