79602496

Date: 2025-05-01 20:33:43
Score: 1.5
Natty:
Report link

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();        
    }
 )
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user9671207