Help me understand. What was broken?
When you edit the metadata of a ticket (tag, assignee), the notifications are sent via SSE to the users viewing the page, but the JS code responsible for updating the UI based on these information is just not working with the new UI.
With these commits, it works well except for blocking/depending tickets
To expand a little more: There are two states for the metadata on a ticket:
The view mode works well for all items (tags, assignee, depending tickets...)
The edit mode almost works for depending tickets and blocking tickets. Using selectize @ryanlerch made things pretty but kinda hard to manipulate. selectize at first take the options from the input field and make them pretty. In the case of depending/blocking tickets, via this JS, I managed to add/remove the ticket id in the input field but not to update the selectize object for them. So if you add a depending ticket X, view mode will show it, edit mode won't but if you click on 'Update' at least you won't remove the dependency on ticket X. I know it's kinda of confusing, but that's the best I managed to do that a) updates the view mode correctly and b) doesn't undo someone's work when someone else update the page elsewhere.
I'm still hoping to fix this correctly one day, but I spent two days on this and I want to fix the view mode sooner rather than later.
I understand. That's the kind of explanation I was hoping for. Thanks!
Not something that has to change, (this works and is valid javascript..) but I really like using $.each(collection, function); from jquery for doing loops in javascript whenever I can.
$.each(collection, function);
:+1: to merge.
Thanks!