www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit f23c26fd9b60977b33bbcc3cf6501c3522b61f47
parent cc1ad4d482f8b92b57df5f054d67050201ee3422
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 15 Oct 2024 13:49:45 -0700

Hide and show door swing button as appropriate

Reload the selection toolbar item when pointmap type is changed.

Diffstat:
Mfiles/floorplans/floorplan/main.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -249,6 +249,10 @@ function selectHandler(event, editor, state) { let c = document.createElement("li") c.setAttribute("id", "selOps") + const refresh = function() { + selectHandler(event, editor, state) + } + c.appendChild(document.createTextNode("Selection: ")) c.append(ui.input("Delete", "Delete selected objects", { attributes: { type: "button", value: "Delete" }, @@ -309,6 +313,7 @@ function selectHandler(event, editor, state) { editor.mapPoints({ type: newvalue }, id) } editor.finishAction() + return refresh() } let current