Addon Development Help - Update Setting via Anchor, Refresh View
I'm developing my first plugin (Yay!) and I've found some other plugins that have been very helpful in figuring things out. There's one thing I can't seem to find a reference of anywhere or documentation of.
I have added a "Hide" link to comments and discussions, allowing people to collapse comments. I've got the code and table set up, and it handles the clicks properly, but it doesn't work how I want. I want it so when you click "Hide", it fires off to the handler (right now it goes to /discussion/hide/--etc) and then either refreshes the page so the comment hides (not ideal) or hides the comment and changes "Hide" to "Show".