Lack of interest Add 'remove' as option to handleSwitchResponse

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Jon W

Well-known member
It is currently possible to add/remove a class, change text, flash a message and redirect after submitting a form in an overlay.

What I would love to be able to do is to remove the original element completely and not just add a class that hides it.

The following code in XF.handleSwitchResponse would be great:

JavaScript:
if (data.remove) {
    $target.remove();
}
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom