tag deletion works but requires page refresh #801
Labels
bug
the issue is regarding one of our programs which faces problems when a certain task is executed
help wanted
requires help by anyone willing to contribute
JavaScript
What happened just before the problem occurred
I deleted a tag, like on this page: https://publiclab.org/wiki/kits#Tags
Tagging deletion triggers a jQuery event called
ajax:success
which is handled here: https://github.com/publiclab/plots2/blob/master/app/assets/javascripts/tagging.js#L51-L55but doesn't seem to work; needs some debugging. I think that has to go inside this block: https://github.com/publiclab/plots2/blob/master/app/assets/javascripts/tagging.js#L25
and use
tag.id
instead oftid
. We should also grey out the tag while the request is pending, using a different event:https://api.jquery.com/Ajax_Events/
The text was updated successfully, but these errors were encountered: