diff --git a/files/assets/js/viewmore.js b/files/assets/js/viewmore.js deleted file mode 100644 index 0331eb8ef..000000000 --- a/files/assets/js/viewmore.js +++ /dev/null @@ -1,17 +0,0 @@ -function viewmore(pid,sort,offset,ids) { - btn = document.getElementById("viewbtn"); - btn.disabled = true; - btn.innerHTML = "Requesting..."; - var form = new FormData(); - const xhr = new XMLHttpRequest(); - xhr.open("get", `/viewmore/${pid}/${sort}/${offset}?ids=${ids}`); - xhr.setRequestHeader('xhr', 'xhr'); - xhr.onload=function(){ - if (xhr.status==200) { - document.getElementById(`viewmore-${offset}`).innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, ''); - bs_trigger() - } - btn.disabled = false; - } - xhr.send(form) -} \ No newline at end of file diff --git a/files/templates/comments.html b/files/templates/comments.html index 97c54fbe4..fd9c7f18c 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -887,25 +887,10 @@ -{% endif %} -{% if offset %} - {% if p %} - {% set pid = p.id %} - {% endif %} -
-
-{% endif %} - -{% if p %} {% endif %} +{% if offset %} + {% if p %} + {% set pid = p.id %} + {% endif %} +
+
+{% endif %} + \ No newline at end of file diff --git a/files/templates/submission.html b/files/templates/submission.html index c711c3a89..134c024ec 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -978,7 +978,38 @@ {% if offset %} - + {% endif %} {% elif not p.replies and p.deleted_utc == 0 %}