]> git.openstreetmap.org Git - rails.git/commit
Convert newHalo() to addHalo() and removeHalo()
authorAnton Khorev <tony29@yandex.ru>
Wed, 25 Dec 2024 01:38:23 +0000 (04:38 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 31 Dec 2024 22:53:55 +0000 (01:53 +0300)
commit4ea6077ddb297bc56ce75bc62d7f371b80544166
tree76f0d73e00b19873ff919b88f9e15cc56403a53e
parentf1835c914ccfad59e7f0a38abb9a55bbe008cdeb
Convert newHalo() to addHalo() and removeHalo()

newHalo() wasn't always creating new halos. It had an event type argument that was checked against drag event. Depending on this check, newHalo() could remove the halo.
app/assets/javascripts/index/new_note.js