Open managed threads from a double-click
This commit is contained in:
parent
55d58515b8
commit
033eb4924a
@ -36,7 +36,7 @@
|
||||
<ul class="list-unstyled ps-3 mb-2">
|
||||
@foreach (var thread in threads[line.PlotLineID])
|
||||
{
|
||||
<li>
|
||||
<li data-planning-thread>
|
||||
<span class="colour-swatch" style="background-color:@line.Colour" aria-hidden="true"></span>
|
||||
<a asp-controller="PlotThreads" asp-action="Edit" asp-route-id="@thread.PlotThreadID">@thread.ThreadTitle</a>
|
||||
</li>
|
||||
|
||||
@ -14,4 +14,11 @@
|
||||
});
|
||||
summary.addEventListener("dblclick", () => window.location.assign(editUrl));
|
||||
});
|
||||
|
||||
document.querySelectorAll("[data-planning-thread]").forEach(row => {
|
||||
const editLink = row.querySelector("a");
|
||||
row.addEventListener("dblclick", event => {
|
||||
if (!event.target.closest("a")) window.location.assign(editLink.href);
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user