Created by: jonathaningram
Basically, I have alerts in my app that are contained within a fixed layout - when closing the alert I need a hook so that I can remove a class from my fixed layout to "shift" it up by 30px or so to account for the space created when the alert is no longer there. FYI, the actual listener I use is this:
$(".alert-message").bind("closed", function() {
if ($(this).hasClass("flash")) {
$(".with-flashes").each(function(i, item) {
$(item).removeClass("with-flashes");
});
}
});