forked from MarseyWorld/MarseyWorld
fix view more comments
parent
dd3dfa5197
commit
096ec92350
|
@ -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(){
|
||||||
|
|
Loading…
Reference in New Issue