www.spaceplanner.app

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

commit 4f24e993bec795957abd07c19008595c52f035e6
parent c22ffbb4a693b1e47c02302d21a0497fc5571140
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 15 Oct 2024 23:35:12 -0700

Add reselect event

This gets fired instead of select when the same exact selection
would be made. (It could have instead included another field in the
detail, but I think I want to do it this way.)

Diffstat:
Mfiles/floorplans/floorplan/editor.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -39,7 +39,7 @@ SVG.extend(SVG.Svg, { console.debug("Svg.select", list) if (list && list.sameElements(this.find(".selected"))) { - console.debug("SVG.select", "Already selected; not reselecting") + this.fire("reselect", { selected: this.find(".selected") }) return list }