79292564

Date: 2024-12-18 21:45:22
Score: 0.5
Natty:
Report link

For beforeClose you need to check X was clicked or it will be triggered for Ok button too, source.

beforeClose: function (e, ui) {
    if ($(e.currentTarget).hasClass('ui-dialog-titlebar-close'))
        e.preventDefault();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: estinamir