fix: 자동갱신 틱마다 새로고침 아이콘 빨갛게 깜빡이던 것 제거
load()에 추가했던 .refresh spinning(빨강) 제거 — 자동갱신마다 빨간 깜빡임 거슬림. 내용은 여전히 클리어 없이 swap. 수동 새로고침(↻)의 빨간 스핀은 manualRefresh가 그대로 유지. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -6434,8 +6434,6 @@ def render_html() -> str:
|
||||
'if(lastLoadAt&&(Date.now()-lastLoadAt)>STALE_MS){owner=null;}'
|
||||
'var key=owner||"all";'
|
||||
'if(!fresh&&inFlight[key])return inFlight[key];'
|
||||
# 로딩 표시는 새로고침 아이콘 스핀으로만 (내용은 그대로 보임).
|
||||
'var rb=document.querySelector("a.refresh");if(rb)rb.classList.add("spinning");'
|
||||
'var qs=[];if(owner)qs.push("owner="+encodeURIComponent(owner));if(fresh)qs.push("fresh=1");'
|
||||
'var cd=chartDays();if(cd!==null)qs.push("chart_days="+cd);'
|
||||
'var cu=chartUnit();if(cu!==null)qs.push("chart_unit="+cu);'
|
||||
@@ -6446,7 +6444,7 @@ def render_html() -> str:
|
||||
'.then(function(r){if(!r.ok)throw new Error("HTTP "+r.status);return r.json();})'
|
||||
'.then(function(j){apply(j);lastLoadAt=Date.now();})'
|
||||
'.catch(function(){failVisible("갱신 실패 — 다시 시도해주세요");});'
|
||||
'var done=function(){if(!fresh)delete inFlight[key];if(rb&&!Object.keys(inFlight).length)rb.classList.remove("spinning");};'
|
||||
'var done=function(){if(!fresh)delete inFlight[key];};'
|
||||
'pr.finally?pr.finally(done):pr.then(done,done);'
|
||||
'if(!fresh)inFlight[key]=pr;'
|
||||
'return pr;'
|
||||
|
||||
Reference in New Issue
Block a user