fix(project): 타임라인이 통째로 안 보이던 문제 + 정적 파일 캐시 버전 올림

- vis 는 첫 rangechanged 뒤의 changed 에서야 타임라인을 보이게 하는데, changed 안에서 setWindow 한
  범위의 rangechanged 가 비동기로 늦게 와 다시 그리지 않아 visibility:hidden 로 남던 문제 —
  rangechanged 에서 아직 숨어 있으면 redraw()
- project.js/css 캐시 버전(?v=)을 20260929e 로 — 그동안 파일을 고치고도 올리지 않아
  브라우저가 예전 파일을 쓸 수 있었다

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-29 14:29:37 +09:00
parent 72c23011fe
commit d2a65e5c37
7 changed files with 21 additions and 9 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929c" />
<link rel="stylesheet" href="/static/project.css?v=20260929e" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929c" />
<link rel="stylesheet" href="/static/project.css?v=20260929e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -104,5 +104,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260929d" defer></script>
<script src="/static/project.js?v=20260929e" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929c" />
<link rel="stylesheet" href="/static/project.css?v=20260929e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20260929d" defer></script>
<script src="/static/project.js?v=20260929e" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929c" />
<link rel="stylesheet" href="/static/project.css?v=20260929e" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -491,5 +491,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260929d" defer></script>
<script src="/static/project.js?v=20260929e" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929c" />
<link rel="stylesheet" href="/static/project.css?v=20260929e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260929d" defer></script>
<script src="/static/project.js?v=20260929e" defer></script>
{% endblock %}
+8
View File
@@ -3533,6 +3533,14 @@
}
fitted = true;
});
// 첫 표시 보장 — vis 는 "changed" 때 첫 범위 변경(rangechanged)이 끝났는지 보고서야
// 타임라인을 보이게 한다(그 전엔 visibility:hidden). 위에서 바꾼 범위의 rangechanged 는
// 비동기로 늦게 오고, 첫 그리기 전이라 vis 가 다시 그리지 않아 다음 changed 가 없으면
// 타임라인이 통째로 안 보인다. rangechanged 뒤에도 숨어 있으면 한 번 더 그린다.
timeline.on("rangechanged", function () {
const root = node.querySelector(".vis-timeline");
if (timeline && root && root.style.visibility === "hidden") timeline.redraw();
});
}
tlToggleSubs = function (id) {
const parent = itemsDS.get(id);