fix view more comments

master
Aevann 2023-01-01 17:26:38 +02:00
parent dd3dfa5197
commit 096ec92350
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ function view_more(pid,sort,offset,ids) {
btn.innerHTML = "Requesting..."; btn.innerHTML = "Requesting...";
const form = new FormData(); const form = new FormData();
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
ids = ids.replace(/[\[\]]/g, '')
xhr.open("get", `/view_more/${pid}/${sort}/${offset}?ids=${ids}`); xhr.open("get", `/view_more/${pid}/${sort}/${offset}?ids=${ids}`);
xhr.setRequestHeader('xhr', 'xhr'); xhr.setRequestHeader('xhr', 'xhr');
xhr.onload=function(){ xhr.onload=function(){