Solved. I achieved what I needed with the following code:
Extended the dialog definition with
$('.ui-dialog-buttonpane button:contains("Default")').attr("id", "dialog_default-button");
And the showConfirm function needs this code before opening the dialog:
$("#dialog_default-button").unbind("click").click(
function () {
document.form.submit();
}
)