fix(project): 타임라인 드래그를 날짜 칸 단위로(반나절에 걸리던 문제) — snap 을 가장 가까운 날 0시로
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929f" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
|
||||
<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=20260929f" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
|
||||
<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=20260929f" defer></script>
|
||||
<script src="/static/project.js?v=20260929g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929f" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
|
||||
<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=20260929f" defer></script>
|
||||
<script src="/static/project.js?v=20260929g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929f" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — 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=20260929f" defer></script>
|
||||
<script src="/static/project.js?v=20260929g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929f" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
|
||||
<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=20260929f" defer></script>
|
||||
<script src="/static/project.js?v=20260929g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -3385,6 +3385,13 @@
|
||||
margin: { item: Math.round(8 * tz) },
|
||||
// 먼저 눌러 선택하지 않아도 바로 끌어서 옮긴다(vis 기본은 선택된 것만 끌림).
|
||||
itemsAlwaysDraggable: { item: canManage, range: canManage },
|
||||
// 끌 때 날짜 칸 단위로만 움직인다 — 가장 가까운 날 0시에 붙인다(vis 기본은 반나절 단위라
|
||||
// 칸 가운데에 걸렸다가 놓으면 다음 날로 넘어갔다). 저장도 onMove 가 일 단위로 한다.
|
||||
snap: function (date) {
|
||||
const d = new Date(new Date(date).getTime() + 12 * 3600000);
|
||||
d.setHours(0, 0, 0, 0);
|
||||
return d;
|
||||
},
|
||||
format: {
|
||||
minorLabels: function (date, scale) {
|
||||
const d = new Date(date.valueOf());
|
||||
|
||||
Reference in New Issue
Block a user