$("#termSheetPrinted").dialog({
autoOpen: false,
resizable: true,
height: 800,
width: 950,
position: 'center',
title: 'Term Sheet',
modal: true,
buttons: {
"Print": function() {
$("#termSheetPrinted").jqprint();
},
"Cancel": function() {
$("#termSheetPrinted").html('');
$(this).dialog("close");
}
}
});
이 대화 상자는 창 상단에 'x'와 함께 나타나 대화 상자를 닫습니다. 'Cancel'버튼과 마찬가지로 'x'를 클릭하면 $(this).dialog("close");
이 실행되기를 원합니다.JQuery 대화 상자가 'x'로 닫는 것과 같은 방법으로 취소합니다.
어떻게하면됩니까?