Is it possible (in a reasonalbe way) to have a jQuery UI dialog closed with different animations depending on which button that is clicked?
$( "#dialog" ).dialog({
autoOpen: false,
show: "blind",
hide: "explode"
buttons: {
"Delete": function () {
... one animation here ...
$(this).dialog("close");
},
"Cancel" : function () {
... another here ...
$(this).dialog("close");
}
}
});
Yep.
Live example: http://jsfiddle.net/GLUHa/2/