fix bug with edit modal and remove depricated ready_to_sprint status

This commit is contained in:
Robin Olsen
2026-03-24 12:33:24 +01:00
parent 6808ed3bbe
commit e4880279c4
15 changed files with 127 additions and 123 deletions

View File

@@ -1,19 +0,0 @@
/**
* Open edit-issue modal when double-clicking a row in the issue list (list view).
* Uses event delegation and preventDefault so double-click doesn't select text.
*/
(function () {
document.addEventListener("dblclick", function (e) {
var row = e.target.closest("tr[data-issue-id]");
if (!row) return;
e.preventDefault();
var id = row.getAttribute("data-issue-id");
if (!id) return;
if (typeof htmx !== "undefined") {
htmx.ajax("GET", "/issues/" + id + "/edit", {
target: "#modal-container",
swap: "innerHTML",
});
}
});
})();