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
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