Save collects info about a thing and saves it with other updated things for eventual download.
selected & metadetails are global and current
on draw click if !selected.drawing return if selected.thing move thing.dot save metadetails
on dit click if selected.thing preload status open dialog
on dialog save if !dialog.name exit as cancel if !selected.thing if metadata has dialog.name thing = metadetails else metadata = {} if !match selected.name and dialog.name delete selected.name rename as dialog.name revise thing from dialog on dialog delete if match dialog.name selected.name delete name deselect