ユーザーがボタンを押してダイアログを閉じたときに通知を受け取りたいのですが。次のことを試しましたが、機能しません。
<div id="TestDialog"/>
$("#TestDialog").dialog({
autoOpen: true,
resizable: true,
modal: true,
position: ['middle', 'middle'],
savePushed: function() {
alert('save pushed');
},
closePushed: function() {
alert('save pushed');
},
buttons: {
"Save": function() {
// alert('save');
savePushed();
$(this).dialog("close");
},
Close: function() {
//alert('close');
closePushed();
$(this).dialog("close");
}
}
});
他のアイデアはありますか?