2回目のクリックでjQuery関数の実行を無視してパススルーを作成できるかどうか疑問に思っていましたが、ユーザーが確認クリックで「はい」をクリックした場合のみです。確認ボックスが表示されていますが、これを行う方法がわかりません。
$(function()
{
$(".msgbox-confirm").live("click", function(e)
{
e.preventDefault();
$.msgbox("Are you sure you want to permanently delete this element?", {
type: "confirm",
buttons: [
{ type: "submit", value: "Yes" },
{ type: "submit", value: "No" }
]
}, function(result)
{
if (result == "Yes") {
// passthrough code goes here!
}
});
});
});