修复评论按钮多次点击导致的BUG

This commit is contained in:
Meekdai 2024-11-12 09:04:07 +08:00
parent 35263fd99d
commit ac556c5cba
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ document.getElementById("pathHome").setAttribute("d",IconList["home"]);
function openComments(){ function openComments(){
cm=document.getElementById("comments"); cm=document.getElementById("comments");
cmButton=document.getElementById("cmButton"); cmButton=document.getElementById("cmButton");
cmButton.disabled=true;
cmButton.innerHTML="loading"; cmButton.innerHTML="loading";
span=document.createElement("span"); span=document.createElement("span");
span.setAttribute("class","AnimatedEllipsis"); span.setAttribute("class","AnimatedEllipsis");