I have the following code which notifies the user when something happens:
window.parent.$(".Toast").html('Successfully Did Something!').fadeOut(9000);
It works great the first time, but then, of course, the element is still set to hidden and has the same text. So when the user triggers it again, nothing happens. I’ve tried immediately setting the html() to empty and showing it, but that happens immediately, so you never see the text. I suppose I could make it “reset” when they open the edit dialog, but I’m sure someone has a simple way around this.
Use
.show()just before.fadeOut():To cancel the current animation, use
.stop(true, true):