我最近将jquery-confirm从v2更新到了v3。就这么简单,我只是重新排列了按钮的代码,然后...我的回调停止了工作。我只按确认,什么都没发生,对话框不断显示。
$(".confirm").confirm(
{
text: "Are you sure you want to create new instance?",
title: "Confirmation required",
buttons: {
Confirm: function () {
//$(this).dialog("close");
__doPostBack('Copy', '');
},
Cancel: function () {
//$(this).dialog("close");
},
}
});